ClassesClassesClassesClasses | | | | Operators

gen_struct_elementsgen_struct_elementsGenStructElementsgen_struct_elementsGenStructElementsGenStructElements (Operator)


gen_struct_elementsgen_struct_elementsGenStructElementsgen_struct_elementsGenStructElementsGenStructElements — Generate standard structuring 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)

Herror gen_struct_elements(Hobject* StructElements, const HTuple& Type, const HTuple& Row, const HTuple& Column)

HRegion HRegion::GenStructElements(const HTuple& Type, const HTuple& Row, const HTuple& Column)

HRegionArray HRegionArray::GenStructElements(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 HOperatorSetX.GenStructElements(
[out] IHUntypedObjectX*StructElements, [in] VARIANT Type, [in] VARIANT Row, [in] VARIANT Column)

void HRegionX.GenStructElements(
[in] BSTR Type, [in] Hlong Row, [in] Hlong Column)

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

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


gen_struct_elementsgen_struct_elementsGenStructElementsgen_struct_elementsGenStructElementsGenStructElements 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



StructElementsStructElementsStructElementsStructElementsStructElementsstructElements (output_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject *

Generated structuring elements.

TypeTypeTypeTypeTypetype (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (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 HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (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 HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (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_elementsGenStructElementsgen_struct_elementsGenStructElementsGenStructElements returns 2 (H_MSG_TRUE) if all parameters are correct. Otherwise, an exception is raised.

Possible Successors

fittingfittingFittingfittingFittingFitting, hit_or_misshit_or_missHitOrMisshit_or_missHitOrMissHitOrMiss, openingopeningOpeningopeningOpeningOpening, closingclosingClosingclosingClosingClosing, erosion2erosion2Erosion2erosion2Erosion2Erosion2, dilation2dilation2Dilation2dilation2Dilation2Dilation2

See also




ClassesClassesClassesClasses | | | | Operators