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

Dženan Zukić dzenanz at gmail.com
Sun Jan 1 10:44:36 EST 2017


Hi Leon,

have you tried using RegionOfInterest
<https://itk.org/Doxygen/html/classitk_1_1RegionOfInterestImageFilter.html>
instead of ExtractImageFilter? Extract is used for changing image
dimension, e.g. extracting a 2D slice from a 3D volume.

Regards,
Dženan

On Sun, Jan 1, 2017 at 4:38 AM, Y T <magicimaging at gmail.com> wrote:

> 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.22837
>> 40.n2.nabble.com/what-is-the-best-way-to-do-TriangleMeshToB
>> inaryImageFilter-on-a-region-tp7589525.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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170101/d6dab9e8/attachment-0001.html>
-------------- next part --------------
_____________________________________
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