Smoothing with gaussian kernel

조회 수: 5 (최근 30일)
Omim
Omim 2016년 5월 30일
답변: Image Analyst 2016년 5월 30일
Hi. I need some help. I have a histogram realized with next function:
[n xout]= hist (imag(:), -2:0.001:2)
(this is a log-ratio image) I have to smooth this with a gaussian kernel (or something else) until it has 2 or less peaks. how can I do that? Thanks a lot!

답변 (1개)

Image Analyst
Image Analyst 2016년 5월 30일
Try imgaussfilt()
n = imgaussfilt(n, sigma); % Smooth counts array.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by