how can i identify the damaged portion in the matrix?

suppose i initialize an image in a ex:-a=imread(obj.gif); after that i cropped the image by using b=imcrop(a); now i want to identify the damaged portion and want to apply some operation on it,so please tell me how i can perform this?

Answers (1)

What do you mean by "damaged portion" imcrop() optionally returns additional outputs like the cropping rectangle as well as the X-data and Y-data

6 Comments

actually sir,i am doing project on image inpainting so there is need for identify the portion of an image which are not completely visible or any scratches on it.
RAVI, you cannot do that without additional information about how to distinguish areas that are scratched or not completely visible.
sir,how i can got the additional information about how to distinguish areas that are scratched or not completely visible.
sir actually i am newer in matlab & i m starting it with zero,so plz help me.
What characterizes a "scratch" ? What characterizes an area "not completely visible" ?
RAVI, why are you not uploading an image like I suggested way up at the top? As you can imagine, if people are asked for advice on image processing, it helps to have an image. Otherwise all I can say is "threshold then call regionprops() and good luck."

This question is closed.

Asked:

on 22 Sep 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!