transpose_regiontranspose_regionTransposeRegionTransposeRegiontranspose_region (Operator)


transpose_regiontranspose_regionTransposeRegionTransposeRegiontranspose_region — Reflect a region about a point.


transpose_region(Region : Transposed : Row, Column : )

Herror transpose_region(const Hobject Region, Hobject* Transposed, const Hlong Row, const Hlong Column)

Herror T_transpose_region(const Hobject Region, Hobject* Transposed, const Htuple Row, const Htuple Column)

void TransposeRegion(const HObject& Region, HObject* Transposed, const HTuple& Row, const HTuple& Column)

HRegion HRegion::TransposeRegion(Hlong Row, Hlong Column) const

static void HOperatorSet.TransposeRegion(HObject region, out HObject transposed, HTuple row, HTuple column)

HRegion HRegion.TransposeRegion(int row, int column)

def transpose_region(region: HObject, row: int, column: int) -> HObject


transpose_regiontranspose_regionTransposeRegionTransposeRegionTransposeRegiontranspose_region reflects a region about a point. The fixed point is given by ColumnColumnColumnColumncolumncolumn and RowRowRowRowrowrow. The image P' of a point P is determined by the following requirement:

If P = S, then P' = S, i.e., the point S is the fixed point of the mapping. If , S is the center point of a line segment connecting P and P'. Therefore, the following equations result: If RowRowRowRowrowrow and ColumnColumnColumnColumncolumncolumn are set to the origin, the in morphology often used transposition results. Hence transpose_regiontranspose_regionTransposeRegionTransposeRegionTransposeRegiontranspose_region is often used to reflect (transpose) a structuring element.

Execution Information


RegionRegionRegionRegionregionregion (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Region to be reflected.

TransposedTransposedTransposedTransposedtransposedtransposed (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Transposed region.

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

Row coordinate of the reference point.

Default value: 0

Suggested values: 0, 64, 128, 256, 512

Typical range of values: 0 ≤ Row Row Row Row row row ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

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

Column coordinate of the reference point.

Default value: 0

Suggested values: 0, 64, 128, 256, 512

Typical range of values: 0 ≤ Column Column Column Column column column ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1


Let F be the area of the input region. Then the runtime complexity for one region is


transpose_regiontranspose_regionTransposeRegionTransposeRegionTransposeRegiontranspose_region returns TRUE if all parameters are correct. The behavior in case of empty or no input region can be set via:

Otherwise, an exception is raised.

Possible Successors

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

See also

dilation1dilation1Dilation1Dilation1Dilation1dilation1, openingopeningOpeningOpeningOpeningopening, closingclosingClosingClosingClosingclosing