Hi, Thanks for your email. Does your code not compile or do you not get the effect that you expected? Please give more details for us to understand your intention.
Thanks, Mathias PS: Please always CC the MITK mailing list so that others may follow the discussion -- Dr. Mathias Seitel German Cancer Research Center (Deutsches Krebsforschungszentrum) Member of the Helmholtz Association Div. Medical and Biological Informatics E130 Im Neuenheimer Feld 280 D-69120 Heidelberg Phone: +49-(0)6221-42-2328 Fax: +49-(0)6221-42-2345 E-Mail: [email protected]<mailto:[email protected]> Web: www.dkfz.de<http://www.dkfz.de> Confidentiality Note: This message is intended only for the use of the named recipient(s) and may obtain confidential and/or privileged information. If you are not the intended recipient, please contact the sender and delete the message. Any unauthorized use of the information contained in this message is prohibited. Von: 杨东 [mailto:[email protected]] Gesendet: Donnerstag, 9. September 2010 11:37 An: Seitel Mathias Betreff: About the Curved Planar Reformation in MITK Hi Mathias, Sorry to trouble you, but I really get some trouble during using MITK. I have read the paper 《Curved reformations using the MITK》,SPIE,2005 by Ivo Wolf and the discussion about CPR int mailing-list,in the link http://sourceforge.net/mailarchive/message.php?msg_id=C7516F922A3E594F86C1BA662B797254BE079E3F93%40DEFTHW99E15MSX.ww902.siemens.net. But I can't understand some of it. Now I want to get the CPR view of ribs and I have get the center-line of a rib. The following is the code in my plugin: // read the points of the center-line of a rib string pointFilePathName="E:/work/RibThin.txt"; mitk::PointSet::Pointer m_PointSet = mitk::PointSet::New(); fstream fs(pointFilePathName.c_str(), ios::in); int a, b, c, d; while(!fs.eof()) { fs >>a >>b >>c >>d; unsigned int position(a); mitk::Point3D point; mitk::FillVector3D(point,b,c,d); m_PointSet->SetPoint(position, point, 0); } if ( m_PointSet->GetSize() == 0 ) { // no points set. return return; } mitk::PlaneGeometry::Pointer sphereParameterPlane = mitk::PlaneGeometry::New(); mitk::ScalarType origin[3] = {r, 0, 0}; mitk::ScalarType right[3] = {0, 0, 2*vnl_math::pi}; mitk::ScalarType down[3] = {0, vnl_math::pi, 0}; sphereParameterPlane->InitializeStandardPlane(right,down); sphereParameterPlane->SetOrigin(origin); mitk::SphereLandmarkProjector::Pointer sphereLandmarkProjector = mitk::SphereLandmarkProjector::New(); // setup TPS transform mitk::ThinPlateSplineCurvedGeometry::Pointer pTPS = mitk::ThinPlateSplineCurvedGeometry::New(); pTPS->SetTargetLandmarks(m_PointSet->GetPointSet()->GetPoints()); pTPS->SetLandmarkProjector(sphereLandmarkProjector); // get renderer mitk::BaseRenderer::Pointer pMappingRenderer = mitk::BaseRenderer::GetInstance(m_MultiWidget->mitkWidget4->GetRenderWindow()); // set image geometry and switch to 2D view pMappingRenderer->SetWorldGeometry(pTPS); pMappingRenderer->SetMapperID(mitk::BaseRenderer::Standard2D); I am a new student in MITK. Can you help me to complete my code in details?
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
