why this code is not working?
이전 댓글 표시
i have code which is perfectly working fine with cameraman.tif but with other images its not ..what is wrong in the code?
[X,Y,Z] = peaks(200);
I = double(imread('cameraman.tif'));
figure;
mesh(X, Y, Z, I);
colormap jet;
above one is working fine
but this one not .i have to generate surf and mesh images kindly suggest what is wrong
clc
close all
clear all
% a=VideoReader('C:\Users\tce21\Downloads\test.mp4'); % Read a video
% b = read(a,1); % Read 1st frame
% c=rgb2gray(b);
% [X,Y,Z] = peaks(200); % surface
I = double(c);
figure;
mesh(X, Y, Z, I); % overlay image as texture
colormap jet;
image s attached
i want same output as cameraman but with mesh grid lines with the figure attached
as 1st images.
help is really appreciated
댓글 수: 4
ramya
2018년 4월 19일
Because question is vague.....you asked how to make a mesh of image almost thrice.....those questions itself were not clear and you have not accepted the answers so far nor the discussion is closed. This question too is almost the same. It is not clear what you are trying to do and what error you have....:|
Image Analyst
2018년 4월 19일
This:
[X,Y,Z] = peaks(200);
I = double(imread('cameraman.tif'));
figure;
mesh(X, Y, Z, I);
colormap jet;
does not work fine. It generates error
Warning: Error creating or updating Surface
Error in value of property CData
Array is wrong shape or size
At that point, I quit working on this question.
KSSV
2018년 4월 19일
Yes....true Image Analyst. There were two or three questions on how to mesh a image by the user which were not closed by the user so far.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Blue에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
