Saturday, 25 May 2013
 
  Home arrow FAQs arrow How do I extract data from a data set?
template designed by Joomla-templates.com
 
Main Menu
Home
News
Search
FAQs
File Download Area
wiki
Forums
How do I extract data from a data set? PDF Print E-mail
Written by Administrator   
Wednesday, 12 May 2004

Like this:

using namespace dicom;
std::string getPatientName(DataSet& data)
{
  std::string name;
  data(TAG_PAT_NAME) >> name;
  return name;
}

DICOMLIB maps VRs to C++ data types, in VR.hpp.  So in this case, a value with VR 'PN' can be extracted onto a string. 

 

Last Updated ( Tuesday, 26 June 2007 )
 
< Prev

© 2013 DICOMLIB
Joomla! is Free Software released under the GNU/GPL License.

Get The Best Free Joomla Templates at www.joomla-templates.com