I'm trying to read a number of Siemens DICOM images with DCMTK, some of which are mosaic images. I'm looking for a quick way to find those.
What I can see with mosaic images is that this is specified in the ImageType tag, e.g.
$ dcmdump ${im0} | grep ImageType
(0008,0008) CS [ORIGINAL\PRIMARY\ASL\NONE\ND\NORM\MOSAIC] # 40, 7 ImageType
Most of the tags are easily read with findAndGetOFString()
(or similar for floats etc), but if I do
tmpdata->findAndGetOFString(DCM_ImageType, tmpstring);
std::cout << "image type: " << tmpstring << "\n";
for DcmDataset* tmpdata
and OFString tmpstring
, then the content of tmpstring
is only ORIGINAL
so the rest of the value is never printed.
In dcmdump it is printed, but there the value of DCM_ImageType
never seems to be stored in a string, which I do need it to be.
Would there be a similar command to findAndGetOFString()
for 'code strings'? Maybe I'm missing something obvious!