Size of image scattering coefficients
returns the scattering coefficient sizes for the wavelet image scattering network,
sz = coefficientSize(
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].
Scattering Coefficient Sizes for Image Scattering Network
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
Introduced in R2019a