Filtering a 2D plot from pcolor

8 次查看(过去 30 天)
Hello, just wondering what a good way to filter a plot obtained from a matrix of values, M, when using pcolor(m) with shading interp.
I attached a png of what I have. There seems to be good filters but for grey scale and I want to keep the color scheme shown. Any help would be appreciated! Been on this project for sometime and it turns out my math, physics and code is ok, and it all has to do with filtering the signal.
  2 个评论
Image Analyst
Image Analyst 2020-8-24
Uh, you do know that there are a bazillion ways to filter an image or array, don't you? What filter are you thinking of? Enhance edges? Blur it? Remove noise? Clip values? Erase values? There is no generic mind-reading filter.
Marcus Rosales
Marcus Rosales 2020-8-24
To remove noise. Honestly the snarky answer is not needed! I am not an expert in matlab and in my field of study (physics) filter means exactly this.... I accidentally used jargon I am used to.
The purpose of the forum is to help; I was not born knowing all the filters in matlab. I've been on java, c, and python forums and for whatever reason mathworks takes the cake for condescending answers. Thanks for making this a toxic environment!

请先登录,再进行评论。

回答(1 个)

Kiran Felix Robert
Kiran Felix Robert 2020-8-28
Hi Marcus,
Refer to the documentation of imfilter and fspecial functions for filtering Color images.
Also refer to this document for a use case.
Kiran Felix Robert
  1 个评论
Marcus Rosales
Marcus Rosales 2020-8-29
Hi Kiran,
I took a look at these, but they seemed to blur rather than make the image sharper.
I can give a quick eample of something I already did. I attached a screen shot of a spectral function; all you need to see is how noisy the original one was (small plot). I used a Guassian filter to smooth out the plot so that I get a resonably well behaved curve (big plot).
I believe my 2D plot is suffering a similar problem. Is there a filter more inline with this?
Thanks!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by