image fusion

조회 수: 7 (최근 30일)
lakshmi
lakshmi 2011년 10월 3일
댓글: akhil eswar 2018년 7월 20일
am doing a project in image fusion. am using this code
clear all
a=imread('peppers.png');//input image
h = fspecial('motion', 50, 45);//motion blur
b = imfilter(a, h);//blurred image
c=imresize(a,[256,256]);
d=imresize(b,[256,256]);
f=wfusimg(c,d,'db12',10,'min','max');
subplot(221),subimage(a);
subplot(222),subimage(b);
subplot(223),subimage(c);
subplot(221),subimage(c);
subplot(222),subimage(d);
subplot(223),subimage(f);
but am not getting the exact output..
i donno why is it not coming ..
i guess it may be due to the db and levels used ..
pls help me out
  댓글 수: 5
sujith mv
sujith mv 2015년 1월 2일
check whether the matrix are equal size also the output if double then convert to uint8
akhil eswar
akhil eswar 2018년 7월 20일
https://in.mathworks.com/matlabcentral/answers/17366-image-fusion#comment_38456 hi Walter Roberson i am get error for this program also and output is not coming properly it is showing error as a wfusmat

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

답변 (1개)

Walter Roberson
Walter Roberson 2011년 10월 3일
The above code is not executable in MATLAB, as // is not a valid MATLAB operator.
Consider using a function instead of using "clear all". "clear all" within a program is almost always a mistake or a misunderstanding of MATLAB.

카테고리

Help CenterFile Exchange에서 Image Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by