[ITK] [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.
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list