灰度图矩阵拟合制作三维曲面

我用fgb2gray函数制作了灰度图,但由于灰度是按每个像素点分布的,并不连续。我现在想用灰度图矩阵拟合成三维曲面。
以x为列向量列数y为行向量行数z为灰度值,拟合为三维曲面?
该如何应用和设置程序?

댓글 수: 1

Image Analyst
Image Analyst 2018년 12월 21일
Google Translation:
I used the rgb2gray() function to create a grayscale image, but since the grayscale is distributed per pixel, it is not continuous. I now want to fit a 3D surface with a matrix of grayscales.
Let x be the column vector number of columns y for the row vector row number z is the gray value, fit to a three-dimensional surface?
How to apply and set up the program?

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

답변 (1개)

Image Analyst
Image Analyst 2018년 12월 21일

0 개 추천

Use the surf():
surf(grayImage);

제품

질문:

2018년 12월 21일

답변:

2018년 12월 21일

Community Treasure Hunt

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

Start Hunting!