Remove line object from the image

4 ビュー (過去 30 日間)
Sanzhar Askaruly
Sanzhar Askaruly 2018 年 5 月 29 日
編集済み: KSSV 2018 年 5 月 29 日
I must remove this red part from the image. How can I do that in MATLAB, anyone has ideas? Please help :)
  1 件のコメント
KSSV
KSSV 2018 年 5 月 29 日
Select the part manually...and fill the values? Did you try this?

サインインしてコメントする。

回答 (1 件)

KSSV
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 ;

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by