从矢量生成图像,无法显示图像(generate an image from a vector, can't display the image)

编程入门 行业动态 更新时间:2024-10-23 22:33:18
从矢量生成图像,无法显示图像(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

更多推荐

本文发布于:2023-07-23 00:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1225147.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图像   矢量   generate   display   vector

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!