How to determine which boundaries are rough and smooth?

2 vues (au cours des 30 derniers jours)
asdf
asdf le 27 Fév 2019
Commenté : Image Analyst le 2 Mar 2019
How can Matlab determine the roughness along the boundary of an edge? For example, how can Matlab determine that the 1st image is smooth and the 2nd one is rough?
smooth.png
rough.png

Réponses (1)

Image Analyst
Image Analyst le 27 Fév 2019
Several ways, like smooth the boundary and find the residuals between the original coordinates and the smoothed coordinates. See attached demo for a start.
Or you could smooth the image with activecontour() or blurring and thresholding or using imclose(), then using xor() on the smoothed and original image and summing the white pixels in the result with bwarea() or sum().
Pick one and give it a try.

Catégories

En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by