How to remove a part of image?
10 views (last 30 days)
I want to work with an image, but the problem is - how to remove a part of it? Is there any way to remove (or replace with black color) a rectangular place from image? I tried imcrop a rectangle, but I don't know how to use the rest of image (I only know how to edit the rectangle).
Thanks a lot.
Thomas Koelen on 13 Apr 2015
Edited: Thomas Koelen on 13 Apr 2015
run this, it will let you create a draggable square, select the part of the image that you want to make black and then double click on the square, it will save your updated image to testimage. you can also set the 0 to something like mean2(testimage) so it's not completely black.