็็How can I delete shadow in this picture
4 ビュー (過去 30 日間)
古いコメントを表示
I have ROI pill image but this image have some shadow I want to delete it. How can I do
I attached 2 imgae
1 Black white image
2RGB image
i dont sure if i want deleate that shadow what file it work so I attached 2 image
0 件のコメント
回答 (1 件)
Image Analyst
2023 年 4 月 10 日
You're best off using a different lighting geometry so that you don't have the shadow in the first place. But if you must have the light on the left so that shadow is on the right, you can do
mask = bwareafilt(mask, 1); % Take largest blob, which will not be the shadow.
or you can label and take the first (left-most) label.
mask = ismember(bwlabe(mask), 1);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!