gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElements (Operator)

Name

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElements — Generate standard structuring elements.

Warning

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

Signature

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)

Description

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElements serves to generate eight structuring elements normally used in the operator fittingfittingFittingFittingFitting. The default value 'noise'"noise""noise""noise""noise" of the parameter TypeTypeTypeTypetype 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

Parameters

StructElementsStructElementsStructElementsStructElementsstructElements (output_object)  region(-array) objectHRegionHRegionHobject *

Generated structuring elements.

TypeTypeTypeTypetype (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Type of structuring element to generate.

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

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

RowRowRowRowrow (input_control)  point.y HTupleHTupleHtuple (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 (lin)

ColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleHtuple (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 (lin)

Result

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElements returns 2 (H_MSG_TRUE) if all parameters are correct. Otherwise, an exception is raised.

Possible Successors

fittingfittingFittingFittingFitting, hit_or_misshit_or_missHitOrMissHitOrMissHitOrMiss, openingopeningOpeningOpeningOpening, closingclosingClosingClosingClosing, erosion2erosion2Erosion2Erosion2Erosion2, dilation2dilation2Dilation2Dilation2Dilation2

See also

golay_elementsgolay_elementsGolayElementsGolayElementsGolayElements

Module

Foundation