How to delete selective part of image?

29 ビュー (過去 30 日間)
Madhura Bombatkar
Madhura Bombatkar 2014 年 9 月 15 日
コメント済み: Image Analyst 2020 年 11 月 13 日
I am working on a project part of which requires removal of certain part of the image can anyone please help me with that ???? The input image is a front view of a face(does not contain any disguise)I want to delete its eyes. Is that possible??

採用された回答

Image Analyst
Image Analyst 2014 年 9 月 15 日
You can't have "holes" in the image - it must remain rectangular. Like David says, you can replace with zeros or some value but you can't have just null/nothing. imcrop() will produce a separate smaller image with the original left intact, unless the output of imcrop is also the original image.
  6 件のコメント
Ali Gouhar
Ali Gouhar 2020 年 11 月 13 日
How to remove a single horizontal line and diagonal lines that is imposed on a image
Image Analyst
Image Analyst 2020 年 11 月 13 日
You asked this before somewhere and I told you to use a modified median filter.
Please post this as a new question (not here) and if you can't figure it out, I'll give you a complete demo.

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

その他の回答 (1 件)

Rushikesh Tade
Rushikesh Tade 2014 年 9 月 15 日
By removing if you mean crop then,
Image(row_start:row_end,col_start:col_end)=[];
  5 件のコメント
Madhura Bombatkar
Madhura Bombatkar 2014 年 9 月 16 日
Its a syntax David you'll have to go through the help column to know how to make it work.
Image Analyst
Image Analyst 2014 年 9 月 16 日
Let's make it crystal clear: You flat out cannot do what Rushikesh said in general. Just try it and see. The only way to get it to work is like David said and if those indexes indicate an entire row or column, meaning the start has to be 1 and the ends have to be "end".
What you can do is what I said, and that is to create new, smaller images where you've identified the rectangles in the image and used imcrop() to crop those out, thus forming the new images but leaving the original image intact.

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

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by