📄 centroid.m
字号:
%
% function [posi]=centroid(region): find the central point for a given
% region
%
%
% Input: part -- N*2 matrix, contain all points in this region
%
% Output: center -- position vector of a point in 2D image
%
function center = centroid(part)
center = mean(part);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -