Main Content

coefficientSize

Size of image scattering coefficients

Description

example

sz = coefficientSize(sf) returns the scattering coefficient sizes for the wavelet image scattering network, 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 network.

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

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

    16     8

Create a second wavelet image scattering network with an image size of 128-by-64 and an oversampling factor equal to 1. Obtain the coefficient sizes of the network. Since the oversampling factor is equal to 1, the scattering transform of the second network 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

Wavelet image scattering network, specified as a waveletScattering2 object.

Version History

Introduced in R2019a