フィルターのクリア

How to smoothing a image by image rows and columns based ?

10 ビュー (過去 30 日間)
Selva Karna
Selva Karna 2017 年 8 月 11 日
回答済み: Image Analyst 2017 年 8 月 18 日
How to smoothing a image by image rows and columns based ?

回答 (2 件)

Kushagr Gupta
Kushagr Gupta 2017 年 8 月 18 日
From the limited amount of information provided in the question I am assuming you want to know how to filter (eg. smoothen) images.
Have a look at the functions ' imfilter ' and ' fspecial ' in the Image Processing Toolbox within MATLAB that can be used for performing smoothing.
Smoothing in general is a low pass operation and hence using a 'Gaussian' filter is a good way to start doing so. Play around with the kernel sizes and different types of filter to come up with something that suits your requirements.

Image Analyst
Image Analyst 2017 年 8 月 18 日
Here's one way, with a moving mean "box" filter
windowWidth = 31; % Whatever. Bigger number for smoother images.
kernel = ones(windowWidth) / windowWidth^2;
blurredImage = conv2(double(grayImage), kernel, 'same');
imshow(blurredImage, []);
Or you could use imfilter(), gaussfilt(), nlfilter(), etc.

カテゴリ

Help Center および File ExchangeImage Filtering and Enhancement についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by