Logo Search packages:      
Sourcecode: gdcm version File versions

bool gdcm::MediaStorage::IsImage ( MSType  ts  )  [static]

Returns whether DICOM has a Pixel Data element (7fe0,0010)

Warning:
MRSpectroscopyStorage could be image but are not

Definition at line 148 of file gdcmMediaStorage.cxx.

Referenced by gdcm::ImageReader::Read().

{
  if ( ms == MS_END // most frequent first
    // lexicographical order then...
    || ms == BasicVoiceAudioWaveformStorage
    || ms == CSANonImageStorage
    || ms == HemodynamicWaveformStorage
    || ms == MediaStorageDirectoryStorage
    || ms == RTPlanStorage
    || ms == GrayscaleSoftcopyPresentationStateStorageSOPClass
    || ms == CardiacElectrophysiologyWaveformStorage
    || ms == ToshibaPrivateDataStorage // not an image I think...
    || ms == EnhancedSR
    || ms == BasicTextSR
    || ms == ComprehensiveSR
    || ms == StudyComponentManagementSOPClass
    || ms == DetachedVisitManagementSOPClass
    || ms == DetachedStudyManagementSOPClass
    || ms == EncapsulatedPDFStorage
    || ms == KeyObjectSelectionDocument
    || ms == HangingProtocolStorage
    || ms == MRSpectroscopyStorage
    || ms == ModalityPerformedProcedureStepSOPClass
    || ms == RTStructureSetStorage )
    {
    return false;
    }
  return true;
}


Generated by  Doxygen 1.6.0   Back to index