image fusion

7 Ansichten (letzte 30 Tage)
lakshmi
lakshmi am 3 Okt. 2011
Kommentiert: akhil eswar am 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 Kommentare
sujith mv
sujith mv am 2 Jan. 2015
check whether the matrix are equal size also the output if double then convert to uint8
akhil eswar
akhil eswar am 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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 3 Okt. 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.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by