Main Content

Gaussian Pyramid

Perform Gaussian pyramid decomposition

  • 库:
  • Computer Vision Toolbox / Transforms

  • Gaussian Pyramid block

Description

TheGaussian Pyramidblock computes Gaussian pyramid reduction or expansion to resize an image. The image reduction process involves lowpass filtering and then downsampling the image pixels. The image expansion process involves upsampling and then lowpass filtering the image pixels. You can also use this block to build a Laplacian pyramid.

Ports

Input

expand all

Input image, specified as a scalar, a vector, anM-by-Nmatrix, or anM-by-N-by-Carray.Cis the number of color channels in the input image. To specify this input as a scalar or vector, you must set theOperationparameter toExpand.

Data Types:single|double|int8|int16|int32|uint8|uint16|uint32|fixed point

Output

expand all

Output image, returned as a scalar, a vector, a matrix, or an array. The dimensions of the output image are determined by theOperationandPyramid levelparameter values. For this port to return a scalar or vector, you must set theOperationparameter toReduce.

Data Types:single|double|int8|int16|int32|uint8|uint16|uint32|Boolean|fixed point

Parameters

expand all

Select the Gaussian pyramid operation as one of these methods:

  • Reduce— The block applies a lowpass filter and then downsamples the input image.

  • Expand— The block upsamples and then applies a lowpass filter to the input image.

Specify the factor of 2 by which to upsample or downsample each dimension of the image.

For anM-by-Ninput image, if you set theOperationparameter toReduceand thePyramid levelto1, the dimensions of the output image areceil(M/2)-by-ceil(N/2).

For anM-by-Ninput image, if you set theOperationparameter toExpand, the dimensions of the output image are [(M-1)2l+1]-by-[(N-1)2l+1], where thePyramid levelparameterlmust be a positive integer.

Specify the lowpass filter coefficient source asDefault separable filter [1/4-a/2 1/4 a 1/4 1/4-a/2]orSpecify via dialog.

Specify the separable filter coefficients as a vector.

Specify the hidden separable filter coefficients as a vector.

Block Characteristics

Data Types

double|fixed point|integer|single

Multidimensional Signals

yes

Variable-Size Signals

yes

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

版本History

Introduced before R2006a

See Also

Blocks