gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsgen_struct_elements (Operator)


gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsgen_struct_elements — Generate standard structuring elements.


gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElementsgen_struct_elements is obsolete and is only provided for reasons of backward compatibility.


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

Execution Information


StructElementsStructElementsStructElementsStructElementsstructElementsstruct_elements (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Generated structuring elements.

TypeTypeTypeTypetypetype (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Type of structuring element to generate.

Default value: 'noise' "noise" "noise" "noise" "noise" "noise"

List of values: 'noise'"noise""noise""noise""noise""noise"

RowRowRowRowrowrow (input_control)  point.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row coordinate of the reference point.

Default value: 1

Suggested values: 0, 1, 10, 50, 100, 200, 300, 400

Typical range of values: Row Row Row Row row row (lin)

ColumnColumnColumnColumncolumncolumn (input_control)  point.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column coordinate of the reference point.

Default value: 1

Suggested values: 0, 1, 10, 50, 100, 200, 300, 400

Typical range of values: Column Column Column Column column column (lin)


gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElementsgen_struct_elements returns TRUE if all parameters are correct. Otherwise, an exception is raised.

Possible Successors

fittingfittingFittingFittingFittingfitting, hit_or_misshit_or_missHitOrMissHitOrMissHitOrMisshit_or_miss, openingopeningOpeningOpeningOpeningopening, closingclosingClosingClosingClosingclosing, erosion2erosion2Erosion2Erosion2Erosion2erosion2, dilation2dilation2Dilation2Dilation2Dilation2dilation2

See also