필터 지우기
필터 지우기

How to remove the found image from the original image?

조회 수: 1 (최근 30일)
ZWY
ZWY 2022년 6월 3일
댓글: ZWY 2022년 6월 5일
Hi, I am a beginner to MATLAB image processing.
I have an original fundus image as shown. And i have found the vessel tree as attached which I need to remove from the fundus image.
My question is how can I remove the vessel tree from the original image?
Thank you.

채택된 답변

Image Analyst
Image Analyst 2022년 6월 3일
You can invert the mask to get everything except the vessels, then mask:
% Get fundus mask, which is the opposite of the vessel mask
mask = ~vesselMask;
% Mask image by multiplying each channel by the mask.
maskedRgbImage = rgbImage .* cast(mask, 'like', rgbImage); % R2016b or later. Works for gray scale as well as RGB Color images.
% For R2016a or earlier, mask the image using bsxfun() function to multiply the mask by each channel individually. Works for gray scale as well as RGB Color images.
% maskedRgbImage = bsxfun(@times, rgbImage, cast(mask, 'like', rgbImage)); % R2016a or earlier.
  댓글 수: 5
Image Analyst
Image Analyst 2022년 6월 4일
If you want to "fill in" the vessels with the weighted average of the nearby non-vessel gray levels, you can use regionfill.
ZWY
ZWY 2022년 6월 5일
Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by