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 Center および File ExchangeImage Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by