image fusion

7 views (last 30 days)
lakshmi
lakshmi on 3 Oct 2011
Commented: akhil eswar on 20 Jul 2018
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 Comments
sujith mv
sujith mv on 2 Jan 2015
check whether the matrix are equal size also the output if double then convert to uint8
akhil eswar
akhil eswar on 20 Jul 2018
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

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 3 Oct 2011
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.

Products

Community Treasure Hunt

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

Start Hunting!