필터 지우기
필터 지우기

fill ciolor inside boundary of image

조회 수: 5 (최근 30일)
mukesh bisht
mukesh bisht 2019년 12월 16일
편집: KALYAN ACHARJYA 2019년 12월 17일
i have the outline of image as binary image. Now i want to fill a color inside to boundary to make it like a solid particle. How to do it?
2019-12-17.png

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 12월 17일
편집: KALYAN ACHARJYA 2019년 12월 17일
Steps:
  1. Get the Centre Blobs
  2. Make it color as per your requirements, please note that resultant color image will be RGB image, not binary
Here, bwImage represents the binary image
bwImage=bwareafilt(~bwImage,1);
bChannel=255*uint8(bwImage);
gChannel=255*ones(size(bwImage),'uint8');
colorImage=cat(3,bChannel,gChannel,gChannel);
imshow(colorImage);
61.png
Hope it Helps!

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by