KlassenKlassenKlassenKlassen | | | | Operatoren

crop_partcrop_partCropPartcrop_partCropPartCropPart (Operator)

Name

crop_partcrop_partCropPartcrop_partCropPartCropPart — Ausschneiden eines rechteckigen Bildausschnittes.

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)

Herror crop_part(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

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

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

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

void HOperatorSetX.CropPart(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImagePart, [in] VARIANT Row, [in] VARIANT Column, [in] VARIANT Width, [in] VARIANT Height)

IHImageX* HImageX.CropPart(
[in] Hlong Row, [in] Hlong Column, [in] Hlong Width, [in] Hlong Height)

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

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

Beschreibung

crop_partcrop_partCropPartcrop_partCropPartCropPart schneidet aus den Eingabebildern einen rechteckigen Ausschnitt aus. Der Ausschnitt wird durch die Koordinaten des linken oberen Ecks und die Größe des Rechtecks beschrieben. Das linke obere Eck des Auschnitts muss innerhalb des Bildes liegen. Rechts und unten darf das Rechteck aus dem Bild herausragen, allerdings wird der Definitionsbereich des Ausgabebildes so gesetzt, dass nur der Teil enthalten ist, der aus dem Eingabebild stammt. Liegt der rechteckige Ausschnitt komplett im Eingabebild, hat die neue Bildmatrix die Größe des angegebenen Rechtecks.

Parallelisierung

Parameter

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

Eingabebild.

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

Bildauschnitt.

RowRowRowRowRowrow (input_control)  rectangle.origin.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Zeilenindex des linken oberen Ecks des Bildauschnittes.

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 HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Spaltenindex des linken oberen Ecks des Bildauschnittes.

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 HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (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 HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (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_imageDispImagedisp_imageDispImageDispImage

Alternativen

crop_rectangle1crop_rectangle1CropRectangle1crop_rectangle1CropRectangle1CropRectangle1, crop_domaincrop_domainCropDomaincrop_domainCropDomainCropDomain, change_formatchange_formatChangeFormatchange_formatChangeFormatChangeFormat, reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain

Siehe auch

zoom_image_sizezoom_image_sizeZoomImageSizezoom_image_sizeZoomImageSizeZoomImageSize, zoom_image_factorzoom_image_factorZoomImageFactorzoom_image_factorZoomImageFactorZoomImageFactor

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren