[IGSTK-Users] Some prolems about the needlebiospy example.

Lin Qi lqi at ee.cuhk.edu.hk
Thu Nov 5 02:29:38 EST 2009


Hi, all

I am learning the demo application NeedleBioSpy from the IGSTK 4.2. I
removed the spatial objects of the needle and needle tip  and set the
world reference to be visual. The  ImageSpatialObject, read from the
CT DICOM files, was attached to the WorldReference by identity matrix
transform:

 m_ImageSpatialObject->RequestSetTransformAndParent(transform,
m_WorldReference );

The result can be shown in the attachment. it seems that the origin of
the  ImageSpatialObject  is far from the physical image volume.
Thus when the worldReference, which is an axesobject, is set in the
center of the view, the image volume would be pushed to the side or
out of range of the view.  How can i get the information of the image
reference frame, especiall the physical image volume from the
m_ImageSpatialObject?  And i try to modified the transform to move the
images to the center of the view.

Besides, when i exit the NeedleBioSpy, there would pop up the error
message "ChoosePixelFormat error" and "vtkDebugLeaks has detected
Leaks", i searched the error message in the mailing list, and upgraded
my opengl, but this didn't help. Any suggestion?

Thanks and Regards

Lin Qi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Visual world reference.png
Type: image/png
Size: 109879 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20091105/e9e5671f/attachment-0002.png>


More information about the IGSTK-Users mailing list