vertex_at.m

来自「mean shift」· M 代码 · 共 8 行

M
8
字号
function Vertex_coords = Vertex_at (Region)
% tells where on the plane to place the corresponding to the region vertex
% will assume for the time being that regions are represented as 
% objects with various characteristics - Boundary, Matrix, Inner pt, etc.
% this function could be overwritten, but should be based on the same props.

Vertex_coords = round(mean(Region.Boundary, 2));  % take the gravicenter

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?