matlab code for image fusion using pca
#1

Plz, help me with the PCA code for doing image fusion. i need the program with an example. i tried for cameraman image but getting the output as complete black. i blurred it at two different places so i hav i1 n i2 which are blurred images which i converted to zero mean images i_1 n i_2.This is my program. what to do next?

clc;
close all;
clear all;
f1=imread('cameraman.tif');
figure(1);
imshow(f1);
[m n]=size(f1);
f1=im2double(f1);
level=input('enter the level of blur');
degradation=fspecial('average',[2*level 2*level]);
i1=f1;
i1(10:floor(n/3),30:floor(4*m/5))=imfilter(f1(10:floor(n/3),30:floor(4*m/5)),degradation,'replicate');
figure(2);
imshow(i1);
m1=mean(mean(i1));
i_1=i1-m1;
i_1=im2double(i_1);
i1t=i_1.';
i1t=im2double(i1t);
[p q]=size(i_1);
N=p*q;
cov=0;
cov=cov+((1/N)*(i_1*i1t));
[a,b]=eig(cov);
eigenval=diag(b);
[eigenval,ind]=sort(eigenval,'descend');
eigenvec=a(:,ind);
eigenval=eigenval(1:250);
eigenvec=eigenvec(:,1:250);
figure(5);
imshow(eigenvec);
% Computing the transformation matrix
A=eigenvec(:,1:250)';
figure(6);
imshow(A);
i2=f1;
i2(floor(n/2):floor(7*n/8),floor(m/3):floor(9*m/10))=imfilter(f1(floor(n/2):floor(7*n/8),floor(m/3):floor(9*m/10)),degradation,'replicate');
figure(3);
imshow(i2);
m2=mean(mean(i2));
i_2=i2-m2;
i_2=im2double(i_2);
i2t=i_2.';
i2t=im2double(i2t);
[u v]=size(i_2);
M=u*v;
cov1=0;
cov1=cov1+((1/M)*(i_2*i2t));
[a1,b1]=eig(cov1);
eigenval1=diag(b);
[eigenval1,ind1]=sort(eigenval1,'descend');
eigenvec1=a1(:,ind1);
eigenval1=eigenval1(1:250);
eigenvec1=eigenvec1(:,1:250);
figure(7);
imshow(eigenvec1);
% Computing the transformation matrix
A1=eigenvec1(:,1:250)';
figure(8);
imshow(A1);
fu=0;
fu=fu+((A*i_1)+(A1*i_2));
figure(4);
imshow(fu);

Reply
#2
please contact me on bhavsar_atish[at]rediffmail.com
I developed very short & simple matlab code for image fusion using PCA.
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: image fusion matlab code gui, iris recognition using pca matlab code, pca image compression n decmpression source code free download, pca image fusion matlab code, pca for video watermarking in matlab, image fusion using matlab, ihs image fusion wavelet matlab free source code,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  how to calculate distance in heed protocol by using matlab 1 1,873 15-06-2018, 03:54 PM
Last Post: Guest
  program code of solar tracking system using 8051 microcontroller 6 23,219 03-05-2018, 09:30 PM
Last Post: Guest
  matlab code for incremental conductance mppt 1 1,415 02-05-2018, 02:28 PM
Last Post: eksi
  anomaly detection code in matlab 3 2,082 23-04-2018, 12:04 AM
Last Post: Guest
  matlab code for liver tumor segmentation 2 1,580 01-04-2018, 06:29 PM
Last Post: [email protected]
  matlab code for vehicle tracking using unscented kalman filter 3 16,740 26-03-2018, 08:57 PM
Last Post: fodayj
  dwt code in java for image 2 6,343 24-03-2018, 10:06 PM
Last Post: Guest
  matlab code for facial expression recognition using frequency domain 1 2,671 19-02-2018, 06:03 PM
Last Post: Guest
  matlab code shadow detection and removal in colour images using matlab 2 2,246 12-01-2018, 01:24 PM
Last Post: dhanabhagya
  simulink matlab model upqc mdl 3 6,770 18-12-2017, 09:08 AM
Last Post: jaseela123d

Forum Jump: