This example shows how to obtain and display the Littlewood-Paley sum of an image scattering network.
Create a scattering network with two filter banks and quality factors of 2 and 1, respectively.
sf = waveletScattering2(QualityFactors=[2 1]);
Obtain the Littlewood-Paley sums and spatial frequencies of the two filter banks. Display the maximum value of the sums. Since the scattering transform is contractive, the sums do not exceed 1.
Display the Littlewood-Paley sum of the second filter bank with the zero frequency centered. Note the 2-D Morlet filter bank used in the scattering transform is not designed to capture the highest spatial frequencies jointly in the x- and y-directions.
Wavelet image scattering network, specified as a waveletScattering2 object.
Filter bank indices in the image scattering network, specified as a positive integer
or vector of positive integers between 1 and
numfilterbanks(sf) inclusive. The number of
filter banks in sf is equal to the number of specified
QualityFactors in sf.
Littlewood-Paley sum for the filter banks in the image scattering network
sf, returned as a real-valued 3-D array.
lpsum is an
M-by-N-by-L array, where
M-by-N is the matrix size of the padded filters
and L does not exceed the number of filter banks in
sf. If you specify indices fb,
L is the number of unique elements in fb.
Otherwise, L is the number of filter banks.
Since R2024a
Spatial frequencies for the Littlewood-Paley sum, returned as a pair of real-valued
vectors. fx and fy are the spatial frequencies
in the x- and y- dimensions, respectively.
Frequencies are in cycles per pixel. In this convention, the Fourier transform is
1-periodic in both Fourier variables.
The littlewoodPaleySum function syntax has changed. The function
now returns the spatial frequencies of the Littlewood-Paley sum in the x-
and y-directions as separate vectors. Previously, the function returned
the spatial frequencies as a two-column matrix, where the first and second columns were the
spatial frequencies in the x- and y-directions,
respectively. Because of this change, the function now supports 2-D wavelet scattering
networks configured with a non-square image size.
Original Code in R2023b or Earlier
Result
Updated Code in R2024a
[lpsum,f] = littlewoodPaleySum(sf)
Runs but the second output argument has a different interpretation.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.