[Insight-users] Contour generation based on binary images

Dženan Zukić dzenanz at gmail.com
Sat Nov 10 03:02:20 EST 2012


You should do an XOR of image with the mask and you will get regular binary
image which you can supply to marching cubes.


On Fri, Nov 9, 2012 at 3:00 PM, wydesenej <wydesenej at gmail.com> wrote:

> Hi.
>
> I have very specific image to describe structures in other image.
> Scalar value of each pixel consits of N-bits.
> Each bit represents some structure in image.
>
> Some examples:
> Pixel value = 11010000 -> means that this pixel is in stuctures 1, 2 and 4
> Pixel value = 01010000 -> means that this pixel is in stuctures 2 and 4
> Pixel value = 00001000 -> means that this pixel is in stucture 5
> Pixel value = 00000000 -> means that this pixel is not in any structure
> etc..
>
> Now I need to find contours of these structures.
> I need to use some contour filter. Problem is that filters uses as input
> scalar value for contour but i want to set "mask value".
>
> Example what i need:
>
> someFilter filter;
> filter->SetInput( mySpecialBinaryImage );
> filter->SetValueMask( 00100000 );    -> This function is not presented in
> filter. I want that this means: contour for me structure num3 ie. contour
> pixels with bit3 == 1.
> filter->Update();
> filter->GetOutput(); -> There i get my countour. (if image is 2d i got
> polygon if 3d i got surface...)
>
> Please any ideas how to do this stuff?
>
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/Contour-generation-based-on-binary-images-tp7581588.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://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121110/33a55665/attachment.htm>


More information about the Insight-users mailing list