MATLAB中mesh函数的使用:基于像素强度画3D密度图(create a 3D density plot based on the pixel intensity:mesh function)

时间:2022-05-18 06:29:09

所用的函数非常简单,只需要用到mesh函数,示例代码如下:

Ima=imread('F:\pathto\test.jpg');
surf_ima = surf(rgb2gray(Ima)); %黑色的3D图
title('3D')
mesh_ima = mesh(rgb2gray(Ima)); %有色彩的3D图

  MATLAB中mesh函数的使用:基于像素强度画3D密度图(create a 3D density plot based on the pixel intensity:mesh function)

MATLAB中mesh函数的使用:基于像素强度画3D密度图(create a 3D density plot based on the pixel intensity:mesh function)

MATLAB中mesh函数的使用:基于像素强度画3D密度图(create a 3D density plot based on the pixel intensity:mesh function)

参考链接:https://cn.mathworks.com/matlabcentral/answers/17998-image-processing-how-can-i-create-a-3d-density-plot-based-on-the-pixel-intensity