Sharpen Image After Interpolation
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I have a matrix/image with interpolation applied. The image consist of "box" regions of same values. At the edge of two box regions, the values are interpolated. Is there a way to remove the interpolation and assign the edges the value of the nearest neighboring box? So in the end the image will look sharp without interpolated values.
e.g. In the example image, the top and bottom data dots belong to different "boxes". At the edge that separate the "boxes", values are interpolated, the middle dot has a value somewhere in beween the top and bottom data dots. I want to replace the middle dot with its nearest neigboring value that was not interpolated.

Original Image

What I want the image to look like (roughly treated with Photoshop)
0 件のコメント
採用された回答
Image Analyst
2018 年 12 月 21 日
If you want to get rid of antialiased values and get sharper edges with no in between values, you can try a median filter with medfilt2(), or imquantize().
Or you can try a fancier thing like a Kuwahara filter.
Or you could try a mean shift filter.
If you want blurred lines, which has MORE colors instead of fewer, you can use imfilter() or conv2() or imgaussfilt() to blur the image.
1 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
