Skip to content

crop_domainCropDomainCropDomaincrop_domaincrop_domain🔗

Short description🔗

crop_domainCropDomainCropDomaincrop_domaincrop_domain — Cut out of defined gray values.

Signature🔗

crop_domain( image Image, out image ImagePart )void CropDomain( const HObject& Image, HObject* ImagePart )static void HOperatorSet.CropDomain( HObject image, out HObject imagePart )def crop_domain( image: HObject ) -> HObject

Herror crop_domain( const Hobject Image, Hobject* ImagePart )

Herror T_crop_domain( const Hobject Image, Hobject* ImagePart )

HImage HImage::CropDomain( ) const

HImage HImage.CropDomain( )

Description🔗

The operator crop_domainCropDomain cuts a rectangular area from the input images. This rectangle is the smallest surrounding rectangle of the domain of the input image. The new image matrix has the size of the rectangle.

Execution information🔗

Execution information
  • Supports OpenCL 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*)HObject (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*)HImage (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*)HObject (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*)Hobject (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*) *allowed for compute devices

Input image.

ImagePartimagePartimage_part (output_object) (multichannel-)image(-array) → object (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*)HObject (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*)HImage (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*)HObject (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*)Hobject * (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*) *allowed for compute devices

Image area.

Combinations with other operators🔗

Combinations

Possible successors

disp_imageDispImage

Alternatives

crop_partCropPart, crop_rectangle1CropRectangle1, change_formatChangeFormat, reduce_domainReduceDomain

See also

zoom_image_sizeZoomImageSize, zoom_image_factorZoomImageFactor

Module🔗

Foundation