Skip to content

clip_contours_xldClipContoursXldClipContoursXldclip_contours_xldclip_contours_xld🔗

Short description🔗

clip_contours_xldClipContoursXldClipContoursXldclip_contours_xldclip_contours_xld — Clip an XLD contour.

Signature🔗

clip_contours_xld( xld_cont Contours, out xld_cont ClippedContours, rectangle.origin.y Row1, rectangle.origin.x Column1, rectangle.corner.y Row2, rectangle.corner.x Column2 )void ClipContoursXld( const HObject& Contours, HObject* ClippedContours, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2 )static void HOperatorSet.ClipContoursXld( HObject contours, out HObject clippedContours, HTuple row1, HTuple column1, HTuple row2, HTuple column2 )def clip_contours_xld( contours: HObject, row_1: int, column_1: int, row_2: int, column_2: int ) -> HObject

Herror clip_contours_xld( const Hobject Contours, Hobject* ClippedContours, const Hlong Row1, const Hlong Column1, const Hlong Row2, const Hlong Column2 )

Herror T_clip_contours_xld( const Hobject Contours, Hobject* ClippedContours, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2 )

HXLDCont HXLDCont::ClipContoursXld( Hlong Row1, Hlong Column1, Hlong Row2, Hlong Column2 ) const

HXLDCont HXLDCont.ClipContoursXld( int row1, int column1, int row2, int column2 )

Description🔗

clip_contours_xldClipContoursXld clips all XLD contours given in Contourscontourscontours, i.e., only contour points contained in the rectangle given by Row1row1row_1, Column1column1column_1, Row2row2row_2, and Column2column2column_2 are returned on output. Note, that the rectangle behaves like a region, i.e., the rectangle encloses the pixels completely. If necessary, contours are split, and several new contours are produced. The resulting contours are returned in ClippedContoursclippedContoursclipped_contours.

Execution information🔗

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🔗

Contourscontourscontours (input_object) xld_cont(-array) → objectHObjectHXLDContHObjectHobject

Contours to be clipped.

ClippedContoursclippedContoursclipped_contours (output_object) xld_cont(-array) → objectHObjectHXLDContHObjectHobject *

Clipped contours.

Row1row1row_1 (input_control) rectangle.origin.y → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Row coordinate of the upper left corner of the clip rectangle.

Default: 00
Suggested values: 0, 500, 1000, 1500, 20000, 500, 1000, 1500, 2000

Column1column1column_1 (input_control) rectangle.origin.x → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Column coordinate of the upper left corner of the clip rectangle.

Default: 00
Suggested values: 0, 500, 1000, 1500, 20000, 500, 1000, 1500, 2000

Row2row2row_2 (input_control) rectangle.corner.y → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Row coordinate of the lower right corner of the clip rectangle.

Default: 512512
Suggested values: 512, 1024, 1536, 2048512, 1024, 1536, 2048

Column2column2column_2 (input_control) rectangle.corner.x → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Column coordinate of the lower right corner of the clip rectangle.

Default: 512512
Suggested values: 512, 1024, 1536, 2048512, 1024, 1536, 2048

Combinations with other operators🔗

Combinations

Possible predecessors

gen_contours_skeleton_xldGenContoursSkeletonXld, lines_gaussLinesGauss, lines_facetLinesFacet, edges_sub_pixEdgesSubPix

Possible successors

gen_polygons_xldGenPolygonsXld

Alternatives

crop_contours_xldCropContoursXld

See also

clip_regionClipRegion, crop_partCropPart, crop_contours_xldCropContoursXld

Module🔗

Foundation