Display each object in a binary image separately
이전 댓글 표시
Hello everybody,
I have an image, with undefined number of objects, just like the image below.

I want to create an image for each one of the objects. For this case, I want to create 4 images each one with only one object. The new images should have the same size as the original image.
Is there anyone who could help me?
Cheers,
Joaquim
댓글 수: 3
Rik
2017년 3월 23일
You can look into regionprops. This will identify the number of objects and give you an idea about how to proceed. If you can't make sense of the usage of this function, do get back and we will try to help you.
Joaquim
2017년 3월 23일
Rik
2017년 3월 23일
As long as it gets the job done it usually doesn't matter how efficient your code is in terms of memory (in most of my cases anyway).
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
