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_bands
concerns the cube where each layer correspond to a undecimated band. We can have multiple bands per scale, which lead tonb_scale * nb_band_per_scale
for 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_bands
concerns 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 thev
andh
bands 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_bands
concerns 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_vector
concerns thecurvelet-cube
where 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_feauveau
concern 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_bands
concerns the vector where each layer correspond to a undecimated band. We can have multiple bands per scale, which lead tonb_scale * nb_band_per_scale
for 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_bands
concerns 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 thev
andh
bands 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_bands
concern 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_vector
concerns the vector where it’s encode a curvelet.- Returns
The unflattened cube
- Return type