gen_gauss_pyramidgen_gauss_pyramidGenGaussPyramidGenGaussPyramidgen_gauss_pyramid (Operator)

Name

gen_gauss_pyramidgen_gauss_pyramidGenGaussPyramidGenGaussPyramidgen_gauss_pyramid — Berechnung einer Gauß-Pyramide.

Signatur

gen_gauss_pyramid(Image : ImagePyramid : Mode, Scale : )

Herror gen_gauss_pyramid(const Hobject Image, Hobject* ImagePyramid, const char* Mode, double Scale)

Herror T_gen_gauss_pyramid(const Hobject Image, Hobject* ImagePyramid, const Htuple Mode, const Htuple Scale)

void GenGaussPyramid(const HObject& Image, HObject* ImagePyramid, const HTuple& Mode, const HTuple& Scale)

HImage HImage::GenGaussPyramid(const HString& Mode, double Scale) const

HImage HImage::GenGaussPyramid(const char* Mode, double Scale) const

HImage HImage::GenGaussPyramid(const wchar_t* Mode, double Scale) const   (Nur Windows)

static void HOperatorSet.GenGaussPyramid(HObject image, out HObject imagePyramid, HTuple mode, HTuple scale)

HImage HImage.GenGaussPyramid(string mode, double scale)

def gen_gauss_pyramid(image: HObject, mode: str, scale: float) -> HObject

Beschreibung

gen_gauss_pyramidgen_gauss_pyramidGenGaussPyramidGenGaussPyramidGenGaussPyramidgen_gauss_pyramid berechnet eine Pyramide von verkleinerten Bildern. Das Maß, um das jedes Nachfolgerbild verkleinert wird, gibt der Parameter ScaleScaleScaleScalescalescale an. Beispielsweise wird mit einem Wert von 0.5 für ScaleScaleScaleScalescalescale die Kantenlänge von ImageImageImageImageimageimage auf die Hälfte verkürzt. Dies entspricht gerade der „normalen“ Pyramide.

Der Parameter ModeModeModeModemodemode gibt die Art der Mittelung an. Eine Beschreibung hierzu ist bei affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImageaffine_trans_image zu finden. Für den Fall, dass ScaleScaleScaleScalescalescale gleich 0.5 ist, stehen zusätzlich die Werte 'min'"min""min""min""min""min" und 'max'"max""max""max""max""max" zu Verfügung. Hierbei wird das Minimum bzw. das Maximum der vier Punkte verwendet.

Es ist zu beachten, dass jede Ebene als ein eigenes Bild, d.h als eigenständiges Bildobjekt mit einer Matrix und eigenem Definitionsbereich ausgegeben wird. Einzelne oder mehrere Ebenen können mit select_objselect_objSelectObjSelectObjSelectObjselect_obj bzw. copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj selektiert werden.

Ausführungsinformationen

Parameter

ImageImageImageImageimageimage (input_object)  (multichannel-)image objectHImageHObjectHImageHobject (byte / uint2 / real)

Eingabebild.

ImagePyramidImagePyramidImagePyramidImagePyramidimagePyramidimage_pyramid (output_object)  (multichannel-)image-array objectHImageHObjectHImageHobject * (byte / uint2 / real)

Ausgabebilder.

Parameteranzahl: ImagePyramid > Image

ModeModeModeModemodemode (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Art der Filtermaske.

Defaultwert: 'weighted' "weighted" "weighted" "weighted" "weighted" "weighted"

Werteliste: 'constant'"constant""constant""constant""constant""constant", 'max'"max""max""max""max""max", 'min'"min""min""min""min""min", 'nearest_neighbor'"nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor", 'weighted'"weighted""weighted""weighted""weighted""weighted"

ScaleScaleScaleScalescalescale (input_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Verkleinerungsfaktor.

Defaultwert: 0.5

Wertevorschläge: 0.2, 0.3, 0.4, 0.5, 0.6

Typischer Wertebereich: 0.001 ≤ Scale Scale Scale Scale scale scale ≤ 0.9

Empfohlene Schrittweite: 0.1

Beispiel (C)

gen_gauss_pyramid(Image,Pyramid,"weighted",0.5);
count_obj(Pyramid,&num);
for (i=1; i<=num; i++)
{
  select_obj(Pyramid,&Single,i);
  disp_image(Single,WindowHandle);
  clear(Single);
}

Nachfolger

image_to_channelsimage_to_channelsImageToChannelsImageToChannelsImageToChannelsimage_to_channels, count_objcount_objCountObjCountObjCountObjcount_obj, select_objselect_objSelectObjSelectObjSelectObjselect_obj, copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj

Alternativen

zoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSizeZoomImageSizezoom_image_size, zoom_image_factorzoom_image_factorZoomImageFactorZoomImageFactorZoomImageFactorzoom_image_factor

Siehe auch

affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImageaffine_trans_image

Modul

Foundation