- Get the Centre Blobs
- Make it color as per your requirements, please note that resultant color image will be RGB image, not binary
fill ciolor inside boundary of image
2 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2019 年 12 月 17 日
編集済み: KALYAN ACHARJYA
2019 年 12 月 17 日
Steps:
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);
Hope it Helps!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!