็็How can I delete shadow in this picture

4 Ansichten (letzte 30 Tage)
Warisa Theerathamtada
Warisa Theerathamtada am 10 Apr. 2023
Beantwortet: Image Analyst am 10 Apr. 2023
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

Antworten (1)

Image Analyst
Image Analyst am 10 Apr. 2023
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);

Community Treasure Hunt

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

Start Hunting!

Translated by