moments_gray_plane moments_gray_plane MomentsGrayPlane MomentsGrayPlane moments_gray_plane (算子名称)
名称
moments_gray_plane moments_gray_plane MomentsGrayPlane MomentsGrayPlane moments_gray_plane — Calculate gray value moments and approximation by a plane.
参数签名
Herror moments_gray_plane (const Hobject 区域 , const Hobject Image , double* MRow , double* MCol , double* Alpha , double* Beta , double* Mean )
Herror T_moments_gray_plane (const Hobject 区域 , const Hobject Image , Htuple* MRow , Htuple* MCol , Htuple* Alpha , Htuple* Beta , Htuple* Mean )
void MomentsGrayPlane (const HObject& 区域 , const HObject& Image , HTuple* MRow , HTuple* MCol , HTuple* Alpha , HTuple* Beta , HTuple* Mean )
void HImage ::MomentsGrayPlane (const HRegion& 区域 , HTuple* MRow , HTuple* MCol , HTuple* Alpha , HTuple* Beta , HTuple* Mean ) const
void HImage ::MomentsGrayPlane (const HRegion& 区域 , double* MRow , double* MCol , double* Alpha , double* Beta , double* Mean ) const
void HRegion ::MomentsGrayPlane (const HImage& Image , HTuple* MRow , HTuple* MCol , HTuple* Alpha , HTuple* Beta , HTuple* Mean ) const
void HRegion ::MomentsGrayPlane (const HImage& Image , double* MRow , double* MCol , double* Alpha , double* Beta , double* Mean ) const
static void HOperatorSet .MomentsGrayPlane (HObject 区域 , HObject image , out HTuple MRow , out HTuple MCol , out HTuple alpha , out HTuple beta , out HTuple mean )
void HImage .MomentsGrayPlane (HRegion 区域 , out HTuple MRow , out HTuple MCol , out HTuple alpha , out HTuple beta , out HTuple mean )
void HImage .MomentsGrayPlane (HRegion 区域 , out double MRow , out double MCol , out double alpha , out double beta , out double mean )
void HRegion .MomentsGrayPlane (HImage image , out HTuple MRow , out HTuple MCol , out HTuple alpha , out HTuple beta , out HTuple mean )
void HRegion .MomentsGrayPlane (HImage image , out double MRow , out double MCol , out double alpha , out double beta , out double mean )
def moments_gray_plane (区域 : HObject, image : HObject) -> Tuple[Sequence[float], Sequence[float], Sequence[float], Sequence[float], Sequence[float]]
def moments_gray_plane_s (区域 : HObject, image : HObject) -> Tuple[float, float, float, float, float]
描述
该算子 moments_gray_plane moments_gray_plane MomentsGrayPlane MomentsGrayPlane MomentsGrayPlane moments_gray_plane calculates the gray value
moments and the parameters of the approximation of the gray values
by a plane. The calculation is carried out according to the
following formula:
where
is the plane,
,
the center, and
,
, and
the scaled moments of 区域 区域 区域 区域 区域 区域 .
The parameters Alpha Alpha Alpha Alpha alpha alpha , Beta Beta Beta Beta beta beta and
Mean Mean Mean Mean mean mean describe a plane above the region:
Thus Alpha Alpha Alpha Alpha alpha alpha indicates the gradient in the direction of the
line axis (“down”), Beta Beta Beta Beta beta beta the gradient in the direction
of the column axis (to the “right”).
注意
Note that 该算子 moments_gray_plane moments_gray_plane MomentsGrayPlane MomentsGrayPlane MomentsGrayPlane moments_gray_plane only considers
the given 区域 区域 区域 区域 区域 区域 and ignores any previously set domain
of the input image Image Image Image Image image image .
运行信息
多线程类型:可重入(与非独占操作符并行运行)。
多线程作用域:全局(可以从任何线程调用)。
在元组级别自动并行化。
参数表
区域 区域 区域 区域 区域 区域 (input_object) region(-array) → object HRegion HObject HRegion Hobject
Regions to be checked.
Image Image Image Image image image (input_object) singlechannelimage → object HImage HObject HImage Hobject (byte / direction / cyclic / uint2 / real)
Corresponding gray values.
MRow MRow MRow MRow MRow mrow (output_control) real(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Mixed moments along a line.
MCol MCol MCol MCol MCol mcol (output_control) real(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Mixed moments along a column.
Alpha Alpha Alpha Alpha alpha alpha (output_control) real(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Parameter Alpha of the approximating plane.
Beta Beta Beta Beta beta beta (output_control) real(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Parameter Beta of the approximating plane.
Mean Mean Mean Mean mean mean (output_control) real(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Mean gray value.
结果
该算子 moments_gray_plane moments_gray_plane MomentsGrayPlane MomentsGrayPlane MomentsGrayPlane moments_gray_plane 返回值 2 (
H_MSG_TRUE )
if an
image with the defined gray values ('byte' "byte" "byte" "byte" "byte" "byte" ) is entered and
the parameters are correct. The behavior in case of empty input (no
input images available) is set via 该算子
set_system(::'no_object_result',<Result>:) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) set_system("no_object_result",<Result>) , the behavior
in case of empty region is set via
set_system(::'empty_region_result',<Result>:) set_system("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) set_system("empty_region_result",<Result>) .
If necessary an exception is raised.
可能的前置算子
draw_region draw_region DrawRegion DrawRegion DrawRegion draw_region ,
gen_circle gen_circle GenCircle GenCircle GenCircle gen_circle ,
gen_ellipse gen_ellipse GenEllipse GenEllipse GenEllipse gen_ellipse ,
gen_rectangle1 gen_rectangle1 GenRectangle1 GenRectangle1 GenRectangle1 gen_rectangle1 ,
gen_rectangle2 gen_rectangle2 GenRectangle2 GenRectangle2 GenRectangle2 gen_rectangle2 ,
threshold threshold Threshold Threshold Threshold threshold ,
regiongrowing regiongrowing Regiongrowing Regiongrowing Regiongrowing regiongrowing
参考其它
intensity intensity Intensity Intensity Intensity intensity ,
moments_region_2nd moments_region_2nd MomentsRegion2nd MomentsRegion2nd MomentsRegion2nd moments_region_2nd
References
R. Haralick, L. Shapiro; “Computer and Robot Vision”;
Addison-Wesley, 1992, pp 75-76
模块
Foundation