gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsgen_struct_elements (算子)

名称

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsgen_struct_elements — 生成标准结构元素。

警告

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElementsgen_struct_elements 已过时,仅出于向后兼容性考虑而保留。

签名

gen_struct_elements( : StructElements : Type, Row, Column : )

Herror gen_struct_elements(Hobject* StructElements, const char* Type, const Hlong Row, const Hlong Column)

Herror T_gen_struct_elements(Hobject* StructElements, const Htuple Type, const Htuple Row, const Htuple Column)

void GenStructElements(HObject* StructElements, const HTuple& Type, const HTuple& Row, const HTuple& Column)

void HRegion::GenStructElements(const HString& Type, Hlong Row, Hlong Column)

void HRegion::GenStructElements(const char* Type, Hlong Row, Hlong Column)

void HRegion::GenStructElements(const wchar_t* Type, Hlong Row, Hlong Column)   ( Windows only)

static void HOperatorSet.GenStructElements(out HObject structElements, HTuple type, HTuple row, HTuple column)

void HRegion.GenStructElements(string type, int row, int column)

def gen_struct_elements(type: str, row: int, column: int) -> HObject

描述

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElementsgen_struct_elements serves to generate eight structuring elements normally used in the operator fittingfittingFittingFittingFittingfitting。The default value 'noise'"noise""noise""noise""noise""noise" of the parameter TypeTypeTypeTypetypetype generates elements especially suited for the elimination of noise. o o o o * o o o * * o o o o o o o o o * o o * o * * * o * o o * o o * o * * o o * * * * o o * * o o o o * o * o o o o * o * o o * o o o o o o o M1 M2 M3 M4 M5 M6 M7 M8

执行信息

参数

StructElementsStructElementsStructElementsStructElementsstructElementsstruct_elements (输出对象)  region(-array) objectHRegionHObjectHRegionHobject *

Generated structuring elements.

TypeTypeTypeTypetypetype (输入控制)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Type of structuring element to generate.

默认值: 'noise' "noise" "noise" "noise" "noise" "noise"

值列表: 'noise'"noise""noise""noise""noise""noise"

RowRowRowRowrowrow (输入控制)  point.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row coordinate of the reference point.

默认值: 1

建议值: 0, 1, 10, 50, 100, 200, 300, 400

值范围: Row Row Row Row row row (lin)

ColumnColumnColumnColumncolumncolumn (输入控制)  point.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column coordinate of the reference point.

默认值: 1

建议值: 0, 1, 10, 50, 100, 200, 300, 400

值范围: Column Column Column Column column column (lin)

结果

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElementsgen_struct_elements 在所有参数正确时返回 2 ( H_MSG_TRUE )。否则,将抛出异常。

可能的后继

fittingfittingFittingFittingFittingfitting, hit_or_misshit_or_missHitOrMissHitOrMissHitOrMisshit_or_miss, openingopeningOpeningOpeningOpeningopening, closingclosingClosingClosingClosingclosing, erosion2erosion2Erosion2Erosion2Erosion2erosion2, dilation2dilation2Dilation2Dilation2Dilation2dilation2

另见

golay_elementsgolay_elementsGolayElementsGolayElementsGolayElementsgolay_elements

模块

基础