dicom - itk dcmtk how to read multiframe images -


i trying read multi-frame dicom image (single file multiple frames inside) itkdcmtkimageio class. sample code can seen below:

typedef char                                pixeltype; const unsigned int                          dimension = 3; typedef itk::image< pixeltype, dimension >  imagetype; // image reader typedef itk::imagefilereader< imagetype >   readertype; readertype::pointer reader = readertype::new(); typedef itk::dcmtkimageio                   imageiotype; imageiotype::pointer dicomio = imageiotype::new();  try {     reader->setfilename( m_path.c_str() );     reader->setimageio( dicomio );     reader->update();  } 

i can read single frame dicom images code can not multi-frame ones. when call reader->update() gives me error says:

itk::exceptionobject (0x964c108) location: "unknown"  file: /usr/local/include/itk-4.3/itkmatrix.h line: 240 description: itk::error: singular matrix. determinant 0. 

beside if use itkgdcmimageio works. wonder if knows if itk/dcmtk support multi-frame images , can provide example code so.

thanks.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -