Skip to content

rectangle1_domainRectangle1DomainRectangle1Domainrectangle1_domainrectangle1_domain🔗

Short description🔗

rectangle1_domainRectangle1DomainRectangle1Domainrectangle1_domainrectangle1_domain — Reduce the domain of an image to a rectangle.

Signature🔗

rectangle1_domain( image Image, out image ImageReduced, rectangle.origin.y Row1, rectangle.origin.x Column1, rectangle.origin.y Row2, rectangle.origin.x Column2 )void Rectangle1Domain( const HObject& Image, HObject* ImageReduced, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2 )static void HOperatorSet.Rectangle1Domain( HObject image, out HObject imageReduced, HTuple row1, HTuple column1, HTuple row2, HTuple column2 )def rectangle1_domain( image: HObject, row_1: int, column_1: int, row_2: int, column_2: int ) -> HObject

Herror rectangle1_domain( const Hobject Image, Hobject* ImageReduced, const Hlong Row1, const Hlong Column1, const Hlong Row2, const Hlong Column2 )

Herror T_rectangle1_domain( const Hobject Image, Hobject* ImageReduced, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2 )

HImage HImage::Rectangle1Domain( Hlong Row1, Hlong Column1, Hlong Row2, Hlong Column2 ) const

HImage HImage.Rectangle1Domain( int row1, int column1, int row2, int column2 )

Description🔗

The operator rectangle1_domainRectangle1Domain reduces the definition domain of the given image to the specified rectangle. The size of the matrix is not changed.

Execution information🔗

Execution information
  • Supports objects on compute devices.

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Automatically parallelized on tuple level.

Parameters🔗

Imageimageimage (input_object) (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)Hobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Input image.

ImageReducedimageReducedimage_reduced (output_object) (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)Hobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Image with reduced definition domain.

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

Line index of upper left corner of image area.

Default: 100100
Suggested values: 10, 20, 50, 100, 200, 300, 50010, 20, 50, 100, 200, 300, 500
Value range: 0 ≤ Row1 ≤ 1024

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

Column index of upper left corner of image area.

Default: 100100
Suggested values: 10, 20, 50, 100, 200, 300, 50010, 20, 50, 100, 200, 300, 500
Value range: 0 ≤ Column1 ≤ 1024

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

Line index of lower right corner of image area.

Default: 200200
Suggested values: 10, 20, 50, 100, 200, 300, 50010, 20, 50, 100, 200, 300, 500
Value range: 0 ≤ Row2 ≤ 1024

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

Column index of lower right corner of image area.

Default: 200200
Suggested values: 10, 20, 50, 100, 200, 300, 50010, 20, 50, 100, 200, 300, 500
Value range: 0 ≤ Column2 ≤ 1024

Combinations with other operators🔗

Combinations

Possible predecessors

get_domainGetDomain

Alternatives

change_domainChangeDomain, reduce_domainReduceDomain, add_channelsAddChannels

See also

full_domainFullDomain, get_domainGetDomain, intersectionIntersection

Module🔗

Foundation