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

Y T magicimaging at gmail.com
Sun Jan 1 04:38:40 EST 2017


Subject: what is the best way to do TriangleMeshToBinaryImageFilter on a
region
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

On Sat, Dec 31, 2016 at 10:55 AM, <insight-users-owner at itk.org> wrote:

> You are not allowed to post to this mailing list, and your message has
> been automatically rejected. This mailing list requires subscription
> before you can post any messages. For subscription information, go to:
> http://www.itk.org/mailman/listinfo/insight-users
>
> If you think that your messages are being rejected in error, contact
> the mailing list owner at insight-users-owner at itk.org.
>
>
>
> ---------- Forwarded message ----------
> From: Leon Tan <magicimaging at gmail.com>
> To: insight-users at itk.org
> Cc:
> Date: Sat, 31 Dec 2016 08:55:26 -0700 (MST)
> Subject: what is the best way to do TriangleMeshToBinaryImageFilter on a
> region
> 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-tp7589525.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20170101/7094d541/attachment.html>


More information about the Insight-users mailing list