[ITK-users] what is the best way to do TriangleMeshToBinaryImageFilter on a region

Young Lee questionleon at gmail.com
Sun Jan 1 05:12:39 EST 2017


I want to show a small local mesh in a big volume, but I encounter following
issue 

when  Info Image is big (meshCastFilter->SetInfoImage(meshVisualInfor) =
512x512x1300)  even the mesh is a small locally generated mesh (100x50x50),
the TriangleMeshToBinaryImageFilter   filter take ~1 second to finish.       

If try following ExtractImageFilter code to get a small region of original
full volume (meshVisualInfor) TriangleMeshToBinaryImageFilter  will crash at    
m_InfoImage->Update();   

Is there good way to do regional TriangleMeshToBinaryImageFilter ? 
Thanks and happy 2017! 


typedef itk::ExtractImageFilter< OutputImageType, OutputImageType >
ExtractImageFilter; 
ExtractImageFilter::Pointer roifilter = ExtractImageFilter::New(); 
roifilter->SetDirectionCollapseToSubmatrix(); 
roifilter->SetInput(meshVisualInfor); 
roifilter->SetExtractionRegion(region); 
roifilter->Update(); 
meshCastFilter->SetInfoImage(roifilter->GetOutput()); //meshVisualInfor work
but take ~1 second



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/what-is-the-best-way-to-do-TriangleMeshToBinaryImageFilter-on-a-region-tp7589527.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list