crop_partcrop_partCropPartCropPartcrop_part (Operator)

Name

crop_partcrop_partCropPartCropPartcrop_part — Ausschneiden eines oder mehrerer rechteckiger Bildausschnitte.

Signatur

crop_part(Image : ImagePart : Row, Column, Width, Height : )

Herror crop_part(const Hobject Image, Hobject* ImagePart, const Hlong Row, const Hlong Column, const Hlong Width, const Hlong Height)

Herror T_crop_part(const Hobject Image, Hobject* ImagePart, const Htuple Row, const Htuple Column, const Htuple Width, const Htuple Height)

void CropPart(const HObject& Image, HObject* ImagePart, const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height)

HImage HImage::CropPart(const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height) const

HImage HImage::CropPart(Hlong Row, Hlong Column, Hlong Width, Hlong Height) const

static void HOperatorSet.CropPart(HObject image, out HObject imagePart, HTuple row, HTuple column, HTuple width, HTuple height)

HImage HImage.CropPart(HTuple row, HTuple column, HTuple width, HTuple height)

HImage HImage.CropPart(int row, int column, int width, int height)

def crop_part(image: HObject, row: MaybeSequence[int], column: MaybeSequence[int], width: MaybeSequence[int], height: MaybeSequence[int]) -> HObject

Beschreibung

crop_partcrop_partCropPartCropPartCropPartcrop_part schneidet aus den Eingabebildern einen oder mehrere rechteckige Ausschnitte aus. Die Ausschnitte werden durch die Koordinaten der linken oberen Ecken und den Größen der Rechtecke beschrieben. Die linken oberen Ecken der Ausschnitte müssen innerhalb des Bildes liegen. Rechts und unten dürfen die Rechtecke aus dem Bild herausragen, allerdings wird der Definitionsbereich des entsprechenden Ausgabebildes so gesetzt, dass nur der Teil enthalten ist, der aus dem Eingabebild stammt. Liegen die rechteckigen Ausschnitte komplett im Eingabebild, hat jedes resultierende Bild die Größe des entsprechenden Rechtecks.

Ausführungsinformationen

Parameter

ImageImageImageImageimageimage (input_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*) *erlaubt für Compute Devices

Eingabebild.

ImagePartImagePartImagePartImagePartimagePartimage_part (output_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject * (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*) *erlaubt für Compute Devices

Bildausschnitt.

RowRowRowRowrowrow (input_control)  rectangle.origin.y(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeilenindex der linken oberen Ecke des Bildausschnittes.

Defaultwert: 100

Wertevorschläge: 10, 20, 50, 100, 200, 300, 500

Typischer Wertebereich: 0 ≤ Row Row Row Row row row ≤ 1024

ColumnColumnColumnColumncolumncolumn (input_control)  rectangle.origin.x(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Spaltenindex der linken oberen Ecke des Bildausschnittes.

Defaultwert: 100

Wertevorschläge: 10, 20, 50, 100, 200, 300, 500

Typischer Wertebereich: 0 ≤ Column Column Column Column column column ≤ 1024

WidthWidthWidthWidthwidthwidth (input_control)  rectangle.extent.x(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Breite des neuen Bildes.

Defaultwert: 128

Wertevorschläge: 32, 64, 128, 256, 512, 768

Typischer Wertebereich: 0 ≤ Width Width Width Width width width ≤ 1024

HeightHeightHeightHeightheightheight (input_control)  rectangle.extent.y(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Höhe des neuen Bildes.

Defaultwert: 128

Wertevorschläge: 32, 64, 128, 256, 512, 525

Typischer Wertebereich: 0 ≤ Height Height Height Height height height ≤ 1024

Nachfolger

disp_imagedisp_imageDispImageDispImageDispImagedisp_image

Alternativen

crop_rectangle1crop_rectangle1CropRectangle1CropRectangle1CropRectangle1crop_rectangle1, crop_domaincrop_domainCropDomainCropDomainCropDomaincrop_domain, change_formatchange_formatChangeFormatChangeFormatChangeFormatchange_format, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain

Siehe auch

zoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSizeZoomImageSizezoom_image_size, zoom_image_factorzoom_image_factorZoomImageFactorZoomImageFactorZoomImageFactorzoom_image_factor

Modul

Foundation