Operator Reference

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsgen_struct_elements (Operator)

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsgen_struct_elements — Generate standard structuring elements.

Warning

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsgen_struct_elements 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)

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

Description

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsgen_struct_elements 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

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Processed without parallelization.

Parameters

StructElementsStructElementsStructElementsstructElementsstruct_elements (output_object)  region(-array) objectHRegionHObjectHObjectHobject *

Generated structuring elements.

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

Type of structuring element to generate.

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

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

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

Row coordinate of the reference point.

Default: 1

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

Value range: Row Row Row row row (lin)

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

Column coordinate of the reference point.

Default: 1

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

Value range: Column Column Column column column (lin)

Result

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

Possible Successors

fittingfittingFittingFittingfitting, hit_or_misshit_or_missHitOrMissHitOrMisshit_or_miss, openingopeningOpeningOpeningopening, closingclosingClosingClosingclosing, erosion2erosion2Erosion2Erosion2erosion2, dilation2dilation2Dilation2Dilation2dilation2

See also

golay_elementsgolay_elementsGolayElementsGolayElementsgolay_elements

Module

Foundation