필터 지우기
필터 지우기

How does the function "mesh" work?

조회 수: 2 (최근 30일)
sana3 sal
sana3 sal 2019년 9월 8일
댓글: sana3 sal 2019년 9월 8일
Hi,
I have the following code,
my question is, what is the algorithm that the function mesh works on?
I have got great results after exporting the mesh into an obj file, so I need an explanation for that.
clear all
a = imread('spect2.jpg');
imshow(a);
f = ones(5) * 1/25;
a = imfilter(a, f, "symmetric");
b = rgb2gray(a);
b = im2double(b);
imshow(b);
shading interp
colormap(hot)
FV=mesh(b);
  댓글 수: 1
dpb
dpb 2019년 9월 8일
Precisely is proprietary to TMW and so isn't documented (nor will TMW comment if you ask).
A tutorial presentation of what is behind the idea is at Drawing-lines-triangles a graphics coding tutorial (one of a series).

댓글을 달려면 로그인하십시오.

답변 (1개)

darova
darova 2019년 9월 8일
Since you didn't specify X and Y for mesh()
[m,n] = size(b);
[X,Y] = meshgrid(1:m,1:n);
mesh(X,Y,b)
Is that you wanted to know?
  댓글 수: 1
sana3 sal
sana3 sal 2019년 9월 8일
No i need only the idea of the algorithm inside the function "mesh"

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by