gen_gauss_pyramid — 计算高斯金字塔。
gen_gauss_pyramid(Image : ImagePyramid : Mode, Scale : )
算子 gen_gauss_pyramid calculates a pyramid of
scaled down images. The scale by which the next image will be
reduced is determined by the parameter Scale. For instance,
a value of 0.5 for Scale will shorten the edge length of
Image by 50%. This is exactly equivalent to the “normal”
pyramid.
The parameter Mode determines the way of averaging. For a
more detailed description concerning this parameter see also
affine_trans_image。In the case that Scale is
equal 0.5 there are the additional modes 'min' and
'max' available. In this case the minimum or the maximum
of the four neighboring pixels is selected.
Please note that each level will be returned as an individual image,
i.e., as one iconic object, with one matrix and its own domain.
Single or multiple levels can be selected by using
select_obj or copy_obj, respectively.
Image (输入对象) (multichannel-)image → object (byte / uint2 / real)
输入图像。
ImagePyramid (输出对象) (multichannel-)image-array → object (byte / uint2 / real)
输出图像。
元素数量: ImagePyramid > Image
Mode (输入控制) string → (string)
Kind of filter mask.
默认值: 'weighted'
值列表: 'constant', 'max', 'min', 'nearest_neighbor', 'weighted'
Scale (输入控制) real → (real)
Factor for scaling down.
默认值: 0.5
建议值: 0.2, 0.3, 0.4, 0.5, 0.6
值范围:
0.001
≤
Scale
≤
0.9
建议增量: 0.1
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);
}
image_to_channels,
count_obj,
select_obj,
copy_obj
zoom_image_size,
zoom_image_factor
基础