필터 지우기
필터 지우기

any one can solve the code of image inpaintig that i have attatched

조회 수: 1 (최근 30일)
hello please check the attached code in that code it only run for the one image which i have attached. so please checked it and make it run for any images

채택된 답변

Image Analyst
Image Analyst 2014년 5월 4일
Like I said in your duplicate post, that's not a good or efficient method. See my better method, attached as test.m. Even if you did want to use convolution, you wouldn't do it like you did it for reasons I gave in your duplicate post. My method uses roifill(), the inpainting method built in to the Image Processing Toolbox.
  댓글 수: 13
asthana
asthana 2014년 5월 7일
hello please tell me what is the meaning of mask = redChannel <= 20 & greenChannel <= 20 & blueChannel <= 20; in the program test.m
Image Analyst
Image Analyst 2014년 5월 7일
It gets pixels that are black in all three color channels. So if RGB = (0,0,0) it would get that, but if the pixel is (0,2,0) it would not consider that as black because it's not pure black in the green.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by