MATLAB Answers


How can I reconstruct an RBG image?

Asked by Muhamed Sewidan on 17 Sep 2019
Latest activity Commented on by Muhamed Sewidan on 19 Sep 2019
I have the following image. Is there any way to reconstruct this image without all the noise and the blurring in it (with the same color of each fringe)?
In other words, I want to make these colored fringes on a black ground.


Sign in to comment.

1 Answer

Answer by Image Analyst
on 18 Sep 2019

How about this, using the attached data in answers.mat:
s = load('answers.mat')
red = repmat(, [1699, 1]);
green = repmat(, [1699, 1]);
blue = repmat(, [1699, 1]);
rgbImage = uint8(cat(3, red, green, blue));
axis('on', 'image');
0000 Screenshot.png


Show 1 older comment
Excuse me but could you please tell how did you generate the answers file with the red, green and blue values?
I took the average profile over a section of "good" rows in original image, then replicated it for the entire height of the image.
I assume the glitches were noise that you said you did not want, so I ignored them.
If you just want simple noise reduction, maybe you should try something like medfilt2() to do a median filter.
How can I take the average profile (exuse me as I'm a beginner)? could you please tell me how to do it?
Acutally the shift in every fringe is the cornerstone of my image, therefore I want to neglect all the features of the image excpet every fringe and its shift. In other words, in my work i took images that have some problems such as noise, blurring and some unwanted objects (scratches on the slide of the specimen or dust particles). I had an idea that I can reconstruct the damaged image to create new one with the main features of the original image and without these problems.

Sign in to comment.