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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -