Can someone help me to remove small region area with regionprops?

16 vues (au cours des 30 derniers jours)
Quah Yi Hang
Quah Yi Hang le 14 Mar 2022
Modifié(e) : Quah Yi Hang le 14 Mar 2022
I wish to remove the small region area with regionprops but I quiet new to matlab and image processing. The pixel intensity is 0 and 1, should i change to 0 and 255? Can anyone help me?

Réponse acceptée

AndresVar
AndresVar le 14 Mar 2022
Modifié(e) : AndresVar le 14 Mar 2022
There is an example in the documentation.
If you scroll down to the end it shows how it uses regionprops internally.
I suppose binary image [0 1] works best.
  1 commentaire
Quah Yi Hang
Quah Yi Hang le 14 Mar 2022
Modifié(e) : Quah Yi Hang le 14 Mar 2022
This method is very helpful, thanks a lot. I will try to apply this method.

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 14 Mar 2022
bwareafilt can be used to select areas by size
  1 commentaire
Quah Yi Hang
Quah Yi Hang le 14 Mar 2022
This suggestion is very useful, thanks a lot. I will try it.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by