vector_field_lengthvector_field_lengthVectorFieldLengthVectorFieldLengthvector_field_length (算子名称)
名称
vector_field_lengthvector_field_lengthVectorFieldLengthVectorFieldLengthvector_field_length — Compute the length of the vectors of a vector field.
参数签名
描述
vector_field_lengthvector_field_lengthVectorFieldLengthVectorFieldLengthVectorFieldLengthvector_field_length compute the length of the vectors of the
vector field VectorFieldVectorFieldVectorFieldVectorFieldvectorFieldvector_field and returns them in
LengthLengthLengthLengthlengthlength. vector_field_lengthvector_field_lengthVectorFieldLengthVectorFieldLengthVectorFieldLengthvector_field_length only accepts vector fields of
the semantic type vector_field_relative.
The parameter ModeModeModeModemodemode can
be used to specify how the lengths are computed. For ModeModeModeModemodemode =
'length'"length""length""length""length""length", the Euclidean length of the vectors is computed.
For ModeModeModeModemodemode = 'squared_length'"squared_length""squared_length""squared_length""squared_length""squared_length", the square of the
length of the vectors is computed. This avoids having to compute a
square root internally, which is a costly operation on many
processors, and hence saves runtime on these processors. Note that the
VectorFieldVectorFieldVectorFieldVectorFieldvectorFieldvector_field must be in relative coordinates as returned by
optical_flow_mgoptical_flow_mgOpticalFlowMgOpticalFlowMgOpticalFlowMgoptical_flow_mg.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- Automatically parallelized on domain level.
- 在元组级别自动并行化。
参数表
VectorFieldVectorFieldVectorFieldVectorFieldvectorFieldvector_field (input_object) singlechannelimage(-array) → objectHImageHObjectHImageHobject (vector_field)
Input vector field
LengthLengthLengthLengthlengthlength (output_object) singlechannelimage(-array) → objectHImageHObjectHImageHobject * (real)
Length of the vectors of the vector field.
ModeModeModeModemodemode (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Mode for computing the length of the vectors.
Default:
'length'
"length"
"length"
"length"
"length"
"length"
List of values:
'length'"length""length""length""length""length", 'squared_length'"squared_length""squared_length""squared_length""squared_length""squared_length"
结果
If the parameter values are correct, 该算子
vector_field_lengthvector_field_lengthVectorFieldLengthVectorFieldLengthVectorFieldLengthvector_field_length 返回值 2 (
H_MSG_TRUE)
. If the input is
empty (no input images are available) the behavior can be 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>). If necessary, an
exception is raised.
可能的前置算子
optical_flow_mgoptical_flow_mgOpticalFlowMgOpticalFlowMgOpticalFlowMgoptical_flow_mg
可能的后置算子
thresholdthresholdThresholdThresholdThresholdthreshold
模块
Foundation