Hi,

I have a problem in mis-alignment of generated surface model with image volume.
I found out that this happens with only some of DICOM data I have.
It seems like depending on DICOM data.

For generating surface model, I used the same code from tutorial 7.
Is there any one has idea on this?

/hm

        AccessByItk_1(m_FirstImage, RegionGrowing, this);

        if(m_ResultImage.IsNotNull())
        {
                m_ResultNode->SetProperty("volumerendering", 
mitk::BoolProperty::New(true));

                vtkMarchingCubes* surfaceCreator = vtkMarchingCubes::New();
                surfaceCreator->SetInput(m_ResultImage->GetVtkImageData());
                surfaceCreator->SetValue(0, 1);

                mitk::Surface::Pointer surface = mitk::Surface::New();
                surface->SetVtkPolyData(surfaceCreator->GetOutput());

                mitk::DataNode::Pointer surfaceNode = mitk::DataNode::New();
                surfaceNode->SetData(surface);

                m_DataStorage->Add(surfaceNode);

                surfaceCreator->Delete();
        }

        mitk::RenderingManager::GetInstance()->RequestUpdateAll();

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to