I have this image and when I'm trying to generate it into the 3D surface it appears some noises in the graph.
Can anyone help me with some noise removal suggestion?

 採用された回答

Akira Agata
Akira Agata 2020 年 8 月 10 日

1 投票

How about applying median filter?
The following is an example:
% Read the image and convert it to grya-scale
I = imread('gray.png');
Igray = rgb2gray(I);
% Apply median filter to the image
Igray2 = medfilt2(Igray,[7 7]);
% Show the result
figure
imshowpair(Igray,Igray2,'montage')

7 件のコメント

agung pratama
agung pratama 2020 年 8 月 12 日
Thanks Mr Akira Agata,
Can you explain to me about medfilt and what is [ 7 7 ] standfor?
I'm a newbie in matlab.
Akira Agata
Akira Agata 2020 年 8 月 13 日
It represents the size of the median filter.
When setting [n m], medfilt calculates median value in the m-by-n neighborhood around the corresponding pixel in the input image.
For more details, please reffer to the documentation page.
FYI:
In addition, you can find some other noise removal techniques in the documentation page.
agung pratama
agung pratama 2020 年 8 月 14 日
I get this when i create the 3D surface of the image
How i can get the x,y,z value in mm?
Akira Agata
Akira Agata 2020 年 8 月 15 日
To obtain the x,y,z value in mm, we need to know "pixels per mm" value for x,y,z.
So, if possible, could you provide these values?
agung pratama
agung pratama 2020 年 8 月 15 日
編集済み: agung pratama 2020 年 8 月 15 日
Im using a 270 ppi and 48 mp camera but i cut the original image, does it matter? this the image properties
Image Analyst
Image Analyst 2020 年 8 月 15 日
That's not enough. That gives you the field of view in pixels, but not in microns or mm. By the way, a 1154 x 1152 image is 1.3 megapixels, far from 48 megapixels - not even close.
agung pratama
agung pratama 2020 年 8 月 15 日
I search from some paper about fringe pattern they using fast fourier transform and get the value of x,y,z axis in mm

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by