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:
이전 댓글 표시
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
Geoff Hayes
2014년 11월 15일
Tanvi - is your question related to "why" you are observing a white image? What is the above code doing? Please provide some comments so that we can try to understand what it is you are trying to do with the code.
Tanvi
2014년 11월 15일
Geoff Hayes
2014년 11월 15일
When you run the code, are you observing any errors?
답변 (1개)
Siam
2014년 11월 15일
1 개 추천
You need to work with pb,qb,sb. Did you check what pb, qb and sb gives you?
댓글 수: 4
Tanvi
2014년 11월 15일
Siam
2014년 11월 15일
That is what your code is doing. you can use imresize() for pb,qb and sb. It will probably fix the issue for white image for pb, qb and sb. you need to work with
x=a1*double(s1);
lastly to get the result.
Tanvi
2014년 11월 15일
Siam
2014년 11월 15일
Glad to hear that your issue has been fixed.
카테고리
도움말 센터 및 File Exchange에서 Image Transforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!