image fusion

7 vues (au cours des 30 derniers jours)
lakshmi
lakshmi le 3 Oct 2011
Commenté : akhil eswar le 20 Juil 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 commentaires
sujith mv
sujith mv le 2 Jan 2015
check whether the matrix are equal size also the output if double then convert to uint8
akhil eswar
akhil eswar le 20 Juil 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

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 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.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by