Main Content

coefficientSize

Size of image scattering coefficients

Description

example

sz = coefficientSize(sf) returns the scattering coefficient sizes for the wavelet image scattering framework, sf. The output sz is a two-element row vector that gives the scattering coefficient output size in the row and column dimensions. For an RGB image, the actual output size is [sz(1) sz(2) 3].

Examples

collapse all

This example shows how to determine the scattering coefficient sizes of an image scattering framework.

Create a wavelet image scattering framework with an image size of 128-by-64. Obtain the coefficient sizes of the framework.

sf = waveletScattering2('ImageSize',[128 64]);
sz = coefficientSize(sf)
sz = 1×2

    16     8

Create a second wavelet image scattering framework with an image size of 128-by-64 and an oversampling factor equal to 1. Obtain the coefficient sizes of the framework. Since the oversampling factor is equal to 1, the scattering transform of the second framework returns 2-by-2-by-P as many coefficients for each scattering path with respect to the critically sampled number.

sf2 = waveletScattering2('ImageSize',[128 64],'OversamplingFactor',1);
sz = coefficientSize(sf2)
sz = 1×2

    32    16

Input Arguments

collapse all

Scattering decomposition framework, specified as a waveletScattering2 object.

Introduced in R2019a