Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image processing/restoration in Matlab

I have several images that i would like to correct from artifacts. They show different animals but they appear to look like they were folded (look at the image attached). The folds are straight and they go through the wings as well, they are just hard to see but they are there. I would like to remove the folds but at the same time preserve the information from the picture (structure and color of the wings). I am using MATLAB right now and i have tried several methods but nothing seems to work.

Initially i tried to see if i can see anything by using an FFT but i do not see a structure in the spectrum that i can remove. I tried to use several edge detection methods (like Sobel, etc) but the problem is that the edge detection always finds the edges of the wings (because they are stronger) rather than the straight lines. I was wondering if anyone has any ideas about how to proceed with this problem? I am not attaching any code because none of the methods i have tried (and described) are working.

Thank you for the help in advance.

Example

like image 336
AL B Avatar asked Mar 01 '18 17:03

AL B


People also ask

What is image restoration in Matlab?

To restore extremely blurred or degraded image. Images blurred due to many factors like relative motion between camera and a moving car (eg. Image of a speeding car). Inverse filter, Wiener filter & Lucy-Richardson filters are used to restore images.

What is image restoration in image processing?

Image restoration is the process of recovering an image from a degraded version—usually a blurred and noisy image. Image restoration is a fundamental problem in image processing, and it also provides a testbed for more general inverse problems.

What are the different types of restoration in image processing?

There are three types of Restoration Filters: Inverse Filter, Pseudo Inverse Filter, and Wiener Filter.

What is image processing in Matlab?

Digital image processing is the use of computer algorithms to create, process, communicate, and display digital images. Digital image processing algorithms can be used to: Convert signals from an image sensor into digital images. Improve clarity, and remove noise and other artifacts.


1 Answers

I'll leave this bit here for anyone that knows how to erase those lines without affecting the quality of the image:

a = imread('https://i.stack.imgur.com/WpFAA.jpg');
b = abs(diff(a,1,2));
b = max(b,[],3);
c = imerode(b,strel('rectangle',[200,1]));

enter image description here

like image 153
Cris Luengo Avatar answered Oct 18 '22 02:10

Cris Luengo