pysap.extensions.formating
pysap.extensions.formating#
This module contains all the function to flatten properly the cube from a ISAP .fits raw data.
- flatten_undecimated_n_bands(cube, trf)[source]#
Flatten the decomposition coefficients from a cube to a vector.
flatten_undecimated_n_bandsconcerns the cube where each layer correspond to a undecimated band. We can have multiple bands per scale, which lead tonb_scale * nb_band_per_scalefor one dimension.- Parameters
cube (numpy.ndarray) – The cube that contains the decomposition coefficients
- Returns
The flattened cube
- Return type
- flatten_decimated_1_bands(cube, trf)[source]#
Flatten the decomposition coefficients from a cube to a vector.
flatten_decimated_1_bandsconcerns the cube where it’s actually a 2d-array like the classic wavelet 2d-transform of 1 bands. It has the same formating than the 3 bands but thevandhbands or set to0.- Parameters
cube (numpy.ndarray) – The cube that contains the decomposition coefficients
- Returns
The flattened cube
- Return type
- flatten_decimated_3_bands(cube, trf)[source]#
Flatten the decomposition coefficients from a cube to a vector.
flatten_decimated_3_bandsconcerns the cube where it’s actually a 2d-array like the classic wavelet 2d-transform of 3 bands.- Parameters
cube (numpy.ndarray) – The cube that containes the decomposition coefficients
- Returns
The flattened cube
- Return type
- flatten_vector(cube, trf)[source]#
Flatten the decomposition coefficients from a cube to a vector.
flatten_vectorconcerns thecurvelet-cubewhere it’s already a vector.- Parameters
cube (numpy.ndarray) – The cube that containes the decomposition coefficients
- Returns
The flattened cube
- Return type
- flatten_decimated_feauveau(cube, trf)[source]#
Flatten decomposition coefficients from a cube to a vector.
flatten_decimated_feauveauconcern the cube where it’s the Feauveau decimated.- Parameters
cube (numpy.ndarray) – The cube that containes the decomposition coefficients
- Returns
The flattened cube
- Return type
- inflated_undecimated_n_bands(trf)[source]#
Inflated the decomposition coefficients from a vector to a cube.
inflated_undecimated_n_bandsconcerns the vector where each layer correspond to a undecimated band. We can have multiple bands per scale, which lead tonb_scale * nb_band_per_scalefor one dimension.- Returns
The unflattened cube
- Return type
- inflated_decimated_1_bands(trf)[source]#
Inflated the decomposition coefficients from a vector to a cube.
inflated_decimated_1_bandsconcerns the vector where it’s actually a 2d-array like the classic wavelet 2d-transform of 1 bands. It has the same formating than the 3 bands but thevandhbands or set to0.- Returns
The unflattened cube
- Return type
- inflated_decimated_3_bands(trf)[source]#
Inflated the decomposition coefficients from a vector to a cube.
inflated_decimated_3_bandsconcern the vector where it’s actually a 2d-array like the classic wavelet 2d-transform of 3 bands.- Returns
The unflattened cube
- Return type
- inflated_vector(trf)[source]#
Inflated the decomposition coefficients from a vector to a cube.
inflated_vectorconcerns the vector where it’s encode a curvelet.- Returns
The unflattened cube
- Return type