Alex
Alex

Reputation: 329

Find area and perimeters of labeled segments for binary image in Julia

I try to calculate area and perimeters of labeled regions of binary image in Julia.

For example:

using Images, ImageView, ImageSegmentation, 
TestImages, IndirectArrays, ImageMorphology
img = testimage("blobs")
# f = AdaptiveThreshold(window_size = 512)
f = Otsu()
imgbin = binarize(img, f);

seg = fast_scanning(imgbin, 0.2);
labels_map(seg);

Maybe, this question is trivial, but in offical docs and other post in stackoverflow I couldn’t find answer of this topic.

How to evalute this regions geometrical propertires?

References for libs in Julia:

Images https://juliaimages.org/stable/function_reference/#ImageSegmentation.watershed

ImageMorphology https://juliaimages.org/ImageMorphology.jl/stable/

Upvotes: 0

Views: 43

Answers (0)

Related Questions