get_generic_shape_model_resultT_get_generic_shape_model_resultGetGenericShapeModelResultGetGenericShapeModelResultget_generic_shape_model_result (算子)

名称

get_generic_shape_model_resultT_get_generic_shape_model_resultGetGenericShapeModelResultGetGenericShapeModelResultget_generic_shape_model_result — 从形状匹配结果中获取字母数字值。

签名

get_generic_shape_model_result( : : MatchResultID, MatchSelector, GenParamName : GenParamValue)

Herror T_get_generic_shape_model_result(const Htuple MatchResultID, const Htuple MatchSelector, const Htuple GenParamName, Htuple* GenParamValue)

void GetGenericShapeModelResult(const HTuple& MatchResultID, const HTuple& MatchSelector, const HTuple& GenParamName, HTuple* GenParamValue)

HTuple HGenericShapeModelResult::GetGenericShapeModelResult(const HTuple& MatchSelector, const HString& GenParamName) const

HTuple HGenericShapeModelResult::GetGenericShapeModelResult(const HTuple& MatchSelector, const char* GenParamName) const

HTuple HGenericShapeModelResult::GetGenericShapeModelResult(const HTuple& MatchSelector, const wchar_t* GenParamName) const   ( Windows only)

static void HOperatorSet.GetGenericShapeModelResult(HTuple matchResultID, HTuple matchSelector, HTuple genParamName, out HTuple genParamValue)

HTuple HGenericShapeModelResult.GetGenericShapeModelResult(HTuple matchSelector, string genParamName)

def get_generic_shape_model_result(match_result_id: HHandle, match_selector: Sequence[Union[str, int]], gen_param_name: str) -> Sequence[Union[int, float, str]]

描述

get_generic_shape_model_resultget_generic_shape_model_resultGetGenericShapeModelResultGetGenericShapeModelResultGetGenericShapeModelResultget_generic_shape_model_result returns alphanumerical results of shape-based matching in GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value. The matches are contained in MatchResultIDMatchResultIDMatchResultIDMatchResultIDmatchResultIDmatch_result_id and sorted by descending score.

The parameter MatchSelectorMatchSelectorMatchSelectorMatchSelectormatchSelectormatch_selector is used to select from which matches the result values shall be returned. The sorting remains according to their score. Hence, it is independent of the order of the selection criteria passed in MatchSelectorMatchSelectorMatchSelectorMatchSelectormatchSelectormatch_selector. Furthermore, a matching result is only returned once even if it meets more than one selection criterion.

MatchSelectorMatchSelectorMatchSelectorMatchSelectormatchSelectormatch_selector processes selection criteria of the following types or combinations of them:

If MatchSelectorMatchSelectorMatchSelectorMatchSelectormatchSelectormatch_selector is no valid selection criterion, an exception is raised.

GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name specifies which alphanumerical result value will be returned. The following values are possible:

Note that for values regarding the location of the matches coordinates are given as edge centered coordinates. For more information on edge centered coordinates see the chapter 变换 / 二维变换

执行信息

参数

MatchResultIDMatchResultIDMatchResultIDMatchResultIDmatchResultIDmatch_result_id (输入控制)  generic_shape_model_result HGenericShapeModelResult, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the shape model matches.

MatchSelectorMatchSelectorMatchSelectorMatchSelectormatchSelectormatch_selector (输入控制)  string-array HTupleSequence[Union[str, int]]HTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)

Selector for the matching results to be queried.

默认值: 'all' "all" "all" "all" "all" "all"

值列表: 'all'"all""all""all""all""all", 'best'"best""best""best""best""best"

GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (输入控制)  attribute.name HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name of the queried result parameter.

默认值: 'score' "score" "score" "score" "score" "score"

值列表: 'angle'"angle""angle""angle""angle""angle", 'clutter_hom_mat_2d'"clutter_hom_mat_2d""clutter_hom_mat_2d""clutter_hom_mat_2d""clutter_hom_mat_2d""clutter_hom_mat_2d", 'clutter_score'"clutter_score""clutter_score""clutter_score""clutter_score""clutter_score", 'column'"column""column""column""column""column", 'hom_mat_2d'"hom_mat_2d""hom_mat_2d""hom_mat_2d""hom_mat_2d""hom_mat_2d", 'match'"match""match""match""match""match", 'model_identifier'"model_identifier""model_identifier""model_identifier""model_identifier""model_identifier", 'num_match_result'"num_match_result""num_match_result""num_match_result""num_match_result""num_match_result", 'row'"row""row""row""row""row", 'scale_column'"scale_column""scale_column""scale_column""scale_column""scale_column", 'scale_row'"scale_row""scale_row""scale_row""scale_row""scale_row", 'score'"score""score""score""score""score", 'time_measurement'"time_measurement""time_measurement""time_measurement""time_measurement""time_measurement"

GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (输出控制)  attribute.value-array HTupleSequence[Union[int, float, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Value of the queried result parameter.

结果

如果参数有效,算子 get_generic_shape_model_resultget_generic_shape_model_resultGetGenericShapeModelResultGetGenericShapeModelResultGetGenericShapeModelResultget_generic_shape_model_result 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

find_generic_shape_modelfind_generic_shape_modelFindGenericShapeModelFindGenericShapeModelFindGenericShapeModelfind_generic_shape_model

模块

匹配