필터 지우기
필터 지우기

How to get smoothed edges afeter background removal ?

조회 수: 3 (최근 30일)
voxey
voxey 2019년 12월 31일
답변: Image Analyst 2019년 12월 31일
How to get smoothed edges afeter background removal ? from below file exchange ?
My resutlts :
resultimage.png
  댓글 수: 1
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 12월 31일
편집: KALYAN ACHARJYA 2019년 12월 31일
There complete background is not yet remove. After only you should proceed for make smooth boundary.

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

답변 (1개)

Image Analyst
Image Analyst 2019년 12월 31일
Take your binary image and smooth it then threshold at 0.5 and apply it.
windowSize = 9; % An odd number. Bigger = more smoothing.
kernel = ones(windowSize)/windowSize^2;
blurryMask = conv2(mask, kernel, 'same') > 0.5;
% Mask the image using bsxfun() function to multiply the mask by each channel individually.
maskedRgbImage = bsxfun(@times, rgbImage, cast(blurryMask, 'like', rgbImage));

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by