[Rtk-users] how to assign itk::image object as projections

naved chaudhri naved.chaudhri at gmail.com
Fri Mar 18 13:55:28 EDT 2016


Hi,

I'm integrating RTK in an application that reads the raw projections from a
dicom file. After reading dicom I have the data as itk::image object.  At
this point, I am facing difficulty in finding a way to assign the
itk::image to rtk::ConstantImageSource or rtk::ProjectionsReader or not
getting the way to rtk::FDKConeBeamReconstructionFilter for the
reconstruction.

All the application examples I went through were projections as stack
based.

Following are few lines I have written.
//
typedef itk::Image<float, 3> InImageType;
InImageType::Pointer Img3DFloat = InImageType::New();

mitk::CastToItkImage(image, Img3DFloat); //Works (I use MITK for reading
and visualization)

typename ConstantImageSourceType::Pointer iFilter =
ConstantImageSourceType::New();
//iFilter->SetInformationFromImage( Img3DFloat ); // No compilation error
but Empty Reconstruction
iFilter->SetInput(Img3DFloat ); //Compilation Error

CbctGenerator.cpp:1338: error: no matching function for call to
'rtk::ConstantImageSource<itk::Image<float, 3u>
>::SetInput(itk::Image<float, 3u>::Pointer&)'
     iFilter->SetInput(Img3DFloat ); // produces compilation error
                                  ^
//

Thanks in advance for any hint.

Bests,

Naved
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20160318/8c84902b/attachment-0009.html>


More information about the Rtk-users mailing list