フィルターのクリア

currently i am doing project on secured image compression using independent component analysis and neural network... so as a resultant i am getting white image. my code is as follows:

2 ビュー (過去 30 日間)
Tanvi
Tanvi 2014 年 11 月 15 日
コメント済み: Siam 2014 年 11 月 15 日
clc;
clear all;
i1=imread('t1.jpg');
i2=rgb2gray(i1);
p=imresize(i2, ([256 256]));
subplot(3,3,1)
imshow(p);
pa=p(:);
pb=pa';
k1=kurtosis(double(pb(:)));
i3=imread('t2.jpg');
i4=rgb2gray(i3);
q=imresize(i4, ([256 256]));
subplot(3,3,2)
imshow(q);
qa=q(:);
qb=qa';
k2=kurtosis(double(qb(:)));
i5=imread('t3.jpg');
i6=rgb2gray(i5);
s=imresize(i6,([256 256]));
subplot(3,3,3)
imshow(s);
sa=s(:);
sb=sa';
k3=kurtosis(double(sb(:)));
k=[k1 k2 k3];
s1=[pb;qb;sb];
a=5; b=10;
a1=unifrnd(a,b,3,3);
x=a1*double(s1);
figure(2)
imshow(x)
  3 件のコメント
Tanvi
Tanvi 2014 年 11 月 15 日
basically , i am trying to multiply an image with a randomly generated matrix. but in this case, instead of getting mixed image i am getting a white image. and also when i am doing imshow(a1) where a1 is randomly generated matrix is coming white. so please help me out with this.
Geoff Hayes
Geoff Hayes 2014 年 11 月 15 日
When you run the code, are you observing any errors?

サインインしてコメントする。

回答 (1 件)

Siam
Siam 2014 年 11 月 15 日
You need to work with pb,qb,sb. Did you check what pb, qb and sb gives you?
  4 件のコメント
Tanvi
Tanvi 2014 年 11 月 15 日
ok.. thank you... my problem is resolved now..
Siam
Siam 2014 年 11 月 15 日
Glad to hear that your issue has been fixed.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by