[ITK] Determine surface area of certain region in image

Lowekamp, Bradley (NIH/NLM/LHC) [C] blowekamp at mail.nih.gov
Tue Aug 9 11:58:56 EDT 2016


Hello,

You should look into the label map framework [1]. In particular the LabelImageToShapeLabelMapFilter[2] and the Perimeter attribute [3] [4].

HTH,
Brad

[1] http://hdl.handle.net/1926/584
[2] https://itk.org/Doxygen/html/classitk_1_1LabelImageToShapeLabelMapFilter.html
[3] https://itk.org/Doxygen/html/classitk_1_1ShapeLabelObject.html#aff1209e925293c15775520ef89e97afb
[4] http://hdl.handle.net/10380/3342

On Aug 9, 2016, at 11:50 AM, Matthias B <matthias.b at hotmail.com<mailto:matthias.b at hotmail.com>> wrote:

Hello ITK-community,

At the moment I'm working with 3D Images with following structure: 100x80x3. Every pixel contains a X,Y,Z value.
I want to calculate the surface area of a certain region that I have defined with a boolean 2D-Image (100x80).
The surface area should only be calculated with the X,Y-data.

In Matlab I have experience with this by using the function bwboundaries on the boolean image. This function determines the indices of the the boundaries in clockwise direction.  Next I take the corresponding X,Y values of the indices so I can calculate the surface area with the function polyarea.

Is this possbile with the ITK-library?

Thank you for your help guys.

[https://ipmcdn.avast.com/images/2016/icons/icon-envelope-tick-round-orange_184x116-v1.png]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>        Virusvrij. www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<x-msg://6/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
Community mailing list
Community at itk.org<mailto:Community at itk.org>
http://public.kitware.com/mailman/listinfo/community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160809/d83e3fc5/attachment.html>


More information about the Community mailing list