Dear users,
I have a problem of geometry with the new mitk 0.12. I'm doing a tool to do
region of interests on reoriented planes.
I extract a 2d slice from a 3d volume and then copy the ROI on it. After, I'm
trying to copy the pixels from the 2d slice back to the 3d volume. I have the
geometry of both and basically do:
sliceGeometry->IndexToWorld( sliceIndex, worldPoint);
volumeGeometry->WorldToIndex( worldPoint, volumeIndex);
volume->SetPixel( volumeIndex, sliceIndexPixelValue );
This was working with mitk 0.9 but now that I did the update I have a strange
shift. The painted voxels are shifted compared to the axis of the slice which
results in gaps (non selected voxels) in my region of interest when I would
like it to be without gaps. I get close to no gaps when I add a shift in the
worldPoint of half a voxel spacing but cannot find the correct shift.
I wonder if it is related to the "MITK and ITK coordinate system changes /
backward compatibility" changes? Could the geometry of the slice be not correct
or slightly shifted?
Regards,
Yves
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users