从矢量生成图像,无法显示图像(generate an image from a vector, can't display the image)
我在file.modQDH中有一个图像描述符,我需要显示这个图像
这是我的代码
imagefiles = dir('*.modQDH'); nfiles = length(imagefiles); % Number of files found fprintf('number est '); fprintf('%d ',nfiles ); fprintf('%n'); A = importdata('obj1__0.modQDH'); disp(A);当我使用disp(a)时,结果是我的vetcor
但我需要与此向量对应的图像
我使用过图像(A)和imshow(A),但它不起作用
i have an image descriptor in a file.modQDH i need to display this image
this is my code
imagefiles = dir('*.modQDH'); nfiles = length(imagefiles); % Number of files found fprintf('number est '); fprintf('%d ',nfiles ); fprintf('%n'); A = importdata('obj1__0.modQDH'); disp(A);when i use disp(a) the result is my vetcor
but me i need the image corresponding to this vector
i have used image(A) and imshow (A) but it doesn't works
最满意答案
disp显示变量的值,它不会创建图像渲染
请参阅http://www.mathworks.com/help/matlab/ref/disp.html
尝试使用imagesc尝试处理一些扩展问题
disp shows the value of a variable, it does not create an image rendering
see http://www.mathworks.com/help/matlab/ref/disp.html
try using imagesc which attempts to take care of some of the scaling issues
更多推荐
发布评论