KlassenKlassenKlassenKlassen | | | | Operatoren

crop_domain_relcrop_domain_relCropDomainRelcrop_domain_relCropDomainRelCropDomainRel (Operator)

Name

crop_domain_relcrop_domain_relCropDomainRelcrop_domain_relCropDomainRelCropDomainRel — Ausschneiden eines Bildausschnittes um den Definitionsbereich.

Signatur

crop_domain_rel(Image : ImagePart : Top, Left, Bottom, Right : )

Herror crop_domain_rel(const Hobject Image, Hobject* ImagePart, const Hlong Top, const Hlong Left, const Hlong Bottom, const Hlong Right)

Herror T_crop_domain_rel(const Hobject Image, Hobject* ImagePart, const Htuple Top, const Htuple Left, const Htuple Bottom, const Htuple Right)

Herror crop_domain_rel(Hobject Image, Hobject* ImagePart, const HTuple& Top, const HTuple& Left, const HTuple& Bottom, const HTuple& Right)

HImage HImage::CropDomainRel(const HTuple& Top, const HTuple& Left, const HTuple& Bottom, const HTuple& Right) const

HImageArray HImageArray::CropDomainRel(const HTuple& Top, const HTuple& Left, const HTuple& Bottom, const HTuple& Right) const

void CropDomainRel(const HObject& Image, HObject* ImagePart, const HTuple& Top, const HTuple& Left, const HTuple& Bottom, const HTuple& Right)

HImage HImage::CropDomainRel(Hlong Top, Hlong Left, Hlong Bottom, Hlong Right) const

void HOperatorSetX.CropDomainRel(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImagePart, [in] VARIANT Top, [in] VARIANT Left, [in] VARIANT Bottom, [in] VARIANT Right)

IHImageX* HImageX.CropDomainRel(
[in] Hlong Top, [in] Hlong Left, [in] Hlong Bottom, [in] Hlong Right)

static void HOperatorSet.CropDomainRel(HObject image, out HObject imagePart, HTuple top, HTuple left, HTuple bottom, HTuple right)

HImage HImage.CropDomainRel(int top, int left, int bottom, int right)

Beschreibung

crop_domain_relcrop_domain_relCropDomainRelcrop_domain_relCropDomainRelCropDomainRel schneidet aus den Eingabebildern einen rechteckigen Ausschnitt aus. Der Ausschitt wird durch das umschließende Rechteck des Definitionsbereiches bestimmt. Das Rechteck kann durch die Steuerparameter oben (TopTopTopTopToptop), links (LeftLeftLeftLeftLeftleft), unten (BottomBottomBottomBottomBottombottom) oder rechts (RightRightRightRightRightright) verändert werden. Positive Werte bewirken eine Verkleinerung, negative Zahlen bewirken eine Vergrößerung. Sind alle Parameter gleich Null, dann bleibt das Rechteck unverändert.

Parallelisierung

Parameter

ImageImageImageImageImageimage (input_object)  (multichannel-)image(-array) objectHImageHImageHImageHImageXHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

Eingabebild.

ImagePartImagePartImagePartImagePartImagePartimagePart (output_object)  (multichannel-)image(-array) objectHImageHImageHImageHImageXHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

Bildauschnitt.

TopTopTopTopToptop (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Anzahl Zeilen die „oben“ abgeschnitten werden.

Defaultwert: -1

Wertevorschläge: -20, -10, -5, -3, -2, -1, 0, 1, 2, 3, 4, 5, 10, 20

LeftLeftLeftLeftLeftleft (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Anzahl Spalten die „links“ abgeschnitten werden.

Defaultwert: -1

Wertevorschläge: -20, -10, -5, -3, -2, -1, 0, 1, 2, 3, 4, 5, 10, 20

BottomBottomBottomBottomBottombottom (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Anzahl Zeilen die „unten“ abgeschnitten werden.

Defaultwert: -1

Wertevorschläge: -20, -10, -5, -3, -2, -1, 0, 1, 2, 3, 4, 5, 10, 20

RightRightRightRightRightright (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Anzahl Zeilen die „rechts“ abgeschnitten werden.

Defaultwert: -1

Wertevorschläge: -20, -10, -5, -3, -2, -1, 0, 1, 2, 3, 4, 5, 10, 20

Ergebnis

crop_domain_relcrop_domain_relCropDomainRelcrop_domain_relCropDomainRelCropDomainRel liefert den Wert 2 (H_MSG_TRUE), falls die Parameter korrekt sind. Das Verhalten bei leerer Eingabe (keine Eingaberegionen vorhanden) lässt sich mittels set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>), das bei leerer Region mit set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>) festlegen. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain, thresholdthresholdThresholdthresholdThresholdThreshold, connectionconnectionConnectionconnectionConnectionConnection, regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing, pouringpouringPouringpouringPouringPouring

Alternativen

crop_domaincrop_domainCropDomaincrop_domainCropDomainCropDomain, crop_rectangle1crop_rectangle1CropRectangle1crop_rectangle1CropRectangle1CropRectangle1

Siehe auch

smallest_rectangle1smallest_rectangle1SmallestRectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1, intersectionintersectionIntersectionintersectionIntersectionIntersection, gen_rectangle1gen_rectangle1GenRectangle1gen_rectangle1GenRectangle1GenRectangle1, clip_regionclip_regionClipRegionclip_regionClipRegionClipRegion

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren