필터 지우기
필터 지우기

High pass filter in MATLAB

조회 수: 7 (최근 30일)
Yvonne
Yvonne 2012년 7월 23일
Hi,
I understand that high pass filter is essentially, orignal image - low pass filter.
I attempted the following but gotten a black screen. Anyone knows what when wrong? Thanks lots!
--CODE-
A=imread('image.jpg');
G=fspecial('gaussian', [50 50], 5);
Ig=imfilter(A,G,'same');
JK=A-Ig;
S=imshow(JK) >>> the output here is black image.

채택된 답변

Christian Lenz
Christian Lenz 2012년 7월 23일
normalize image...
A = double( imread('image.jpg'));
A = A./max(max(max(A)));
keep the rest.
  댓글 수: 5
Christian Lenz
Christian Lenz 2012년 7월 23일
Or play with your parameters (thresholding)
Yvonne
Yvonne 2012년 7월 24일
Thanks! I need to do mat2gray as well =)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by