[IGSTK-Users] How to integrate DRR to IGSTK?
ding jienan
dingjienantju at gmail.com
Thu Sep 6 11:17:57 EDT 2007
Dear IGSTK-developer:
I am trying to implement (Digital reconstruction radiograph) DRR feature
in IGSTK.
Now I find one DRR example in ITK.
Insight/Examples/Filtering/
DigitallyReconstructedRadiograph1.cxx
What I need to do is just integrate it to IGSTK. Here is my initial idea to
implement this feature.
1. Make use one part code in DeckofCard robot example to load ITK image
to igstkspatialobject.
a. First, we need to use the igstkObserverConstObjectMacro to define
the observer:
igstkObserverConstObjectMacro(
ITKImage,ImageSpatialObjectType::ITKImageModifiedEvent,ITKImageType)
b.instantiate the observer, and tell the observer to catch the event
from the IGSTK image spatial object using the AddObserver function.
ITKImageObserver::Pointer itkImageObserver = ITKImageObserver::New();
m_ImageSpatialObject->AddObserver(ImageSpatialObjectType::ITKImageModifiedEvent(),itkImageObserver
);
C. You will need to call the RequestGetITKImage method to cause the
IGSTK image spatial object class to send out the event carrying the ITK
image.
m_ImageSpatialObject->RequestGetITKImage();
2. Make use ITK filter to deal with the image. And then output the DRR
image in ITK image format.
3. Now the question is how to rendering the DRR image(ITK image format)
in IGSTK? Do I have to reconstruct my own representation to rendering it?
Or maybe just render it in FLTK directly?
BTW, what do your guys think about of this way to solve this problem? Is
there any better way to solve this problem?
Thanks.
Jayson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20070906/8d8f1d97/attachment-0002.html>
More information about the IGSTK-Users
mailing list