how to extract binary images

1 Ansicht (letzte 30 Tage)
Rahmat Anbi Ancing
Rahmat Anbi Ancing am 1 Okt. 2023
Kommentiert: Image Analyst am 8 Okt. 2023
I want to extract a white image (circled in red) and display it alone.
please help.

Antworten (1)

Image Analyst
Image Analyst am 1 Okt. 2023
You can use drawfreehand to hand trace around all the blobs you want to retain. See attached freehand_masking_demo.m. I've attached other demos for other shapes and ways of drawing.
  12 Kommentare
Rahmat Anbi Ancing
Rahmat Anbi Ancing am 8 Okt. 2023
I have tried, and it is correct to remove (the one inside the red line) manually, but how to remove it automatically? Should I define the x, y, width, and height values that I want to remove?
Image Analyst
Image Analyst am 8 Okt. 2023
The rows and columns are the same as for your image.
The x and y are the borders of the blobs you want to fill. You can use bwboundaries, but first you have to identify which blobs are to be filled and which are not, and like I said, I don't know how you're deciding that. If you can spell out some criteria, then it might be possible to do it automatically, but if you can't, then you'll have to do it manually. Since I mentioned earlier that I was not sure what the criteria for filling and not filling were, and you didn't answer that, I'm assuming that there is no repeatable definition, so in that case you have to do it manually.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by