error occurring stating that image is too big to fit on screen, displaying at resolution 1%

currently i am doing project on secured image compression using independent component analysis and neural network.. so my code was i took 5 images and i multiply them with a random matrix when i tried to show its resultant using imshow then error occurred stating image is too big to fit on screen

 采纳的回答

You can use resize() if it is too big.

7 个评论

thank you.. can you please tell me how to concatenate 6 image of size 1x49152 to a matrix having size 6x49152
A good idea will be to resize the images first and then execute the program.
As for example if the image size is 512 x 512 and you want to make it 150 x 150
resized_image = imresize(input_image, [150 150]);
clc; clear all; i1=imread('gn1.jpg'); p=imresize(i1, ([224 276])); subplot(6,6,1) imshow(p); pa=p(:); pb=pa'; k1=kurtosis(double(pb(:))); i2=imread('gn2.jpg'); q=imresize(i2, ([224 276])); subplot(6,6,2) imshow(q); qa=q(:); qb=qa'; k2=kurtosis(double(qb(:))); i3=imread('rose.jpg'); s=imresize(i3,([224 276])); subplot(6,6,3) imshow(s); sa=s(:); sb=sa'; k3=kurtosis(double(sb(:))); i4=imread('images.jpg'); t=imresize(i4,([224 276])); subplot(6,6,4) imshow(t); ta=t(:); tb=ta'; k4=kurtosis(double(tb(:))); i5=imread('puppy.jpg'); u=imresize(i5,([224 276])); subplot(6,6,5) imshow(u); ua=u(:); ub=ua'; k5=kurtosis(double(ub(:))); i6=imread('img2.jpg'); v=imresize(i6,([224 276])); subplot(6,6,6) imshow(v); va=v(:); vb=va'; k6=kurtosis(double(vb(:))); k=[k1 k2 k3 k4 k5 k6]; s1=[pb; qb; sb; tb; ub; vb]; a=5; b=10; a1=unifrnd(a,b,6,6); x=a1*double(s1); figure(2) imshow(x)
can you please help me... as a resultant i am getting white image in figure(2) which is wrong output.
You can resize the resultant image as well.
x=imresize(x,([224 276]));
figure(2); imshow(x);
It will fix your image window problem.
sorry to disturb you again.. but my problem is not resolved with this solution. still i am getting white image as a resultant.
Did it not resolve the window size??? You need to open a new question for your new issue.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by