Hi Li, if you set up the geometry of the 2D slice of the corresponding renderer correctly (see mitk::BaseRenderer::SetCurrentWorldGeometry2D(Geometry2D* geometry2d )), the current implementation of the ImageVtkMapper2D will compute the extent for your arbitrary slice internally. This happens in the method CalculateClippedPlaneBounds.
Note: I would rather not recommend to use this mapper, which is meant for rendering, as a filter. We are currently working on a filter class performing arbitrary reslicing. It is almost ready for being merged into the master. Regards, Thomas ________________________________________ Von: Liu, Li [[email protected]] Gesendet: Dienstag, 24. April 2012 01:01 An: [email protected] Betreff: [mitk-users] spatial placement of slice in mitk::ImageVtkMapper2D Hi All, I am trying to use ImageVtkMapper2D to cut a 2D slice from 3D volume data. But I got a question here after quickly browsing the ImageVtkMapper2D::GenerateDataForRenderer, it seems this function requires user to set up the 2D geometry of slice, like extent, origin, plane vector etc. In contrast, the vtkImageReslice only needs user inputs the vector of plane and a point that the plane passes through in its example code. If I don't compute slice extent, I think the ImageVtkMapper2D can not work like I expect. If slice vector is aligned to axial, coronal or sagittal direction, it is easy to know the extent of slice, but for any others, it needs additional coding to get extent. My question is if MITK can get 2D slice that is bounded by 3D volume geometry when only imputing plane vector and a point that plane passes through? Thanks. Li ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
