Remove line object from the image
조회 수: 7 (최근 30일)
이전 댓글 표시

I must remove this red part from the image. How can I do that in MATLAB, anyone has ideas? Please help :)
댓글 수: 1
답변 (1개)
KSSV
2018년 5월 29일
편집: KSSV
2018년 5월 29일
I = imread('wrong_part.jpg') ;
[J,rect] = imcrop(I) ; % select the part you want to remove when image pops
x0 = round(rect(1)) ; x1 = x0+round(rect(3)) ;
y0 = round(rect(2)) ; y1 = y0+round(rect(4)) ;
x = x0:x1 ;
y = y0:y1 ;
[X,Y] = meshgrid(y,x) ;
I(X,Y,:) = 0 ;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Install Products에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!