isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
isce3::signal::Looks< class > Class Template Reference

Public Member Functions

 Looks (size_t colsLooks, size_t rowsLooks)
 Constructor with multi-looking factor. More...
 
void multilook (isce3::io::Raster &input_raster, isce3::io::Raster &output_raster, int exponent=0)
 Multi-looking with rasters. More...
 
void multilook (std::valarray< T > &input, std::valarray< T > &output)
 Multi-looking an array of real data. More...
 
void multilook (std::valarray< T > &input, std::valarray< T > &output, T noDataValue)
 Multi-looking an array of real data (excluding noData values) More...
 
void multilook (std::valarray< T > &input, std::valarray< bool > &mask, std::valarray< T > &output)
 Multi-looking an array of real data. More...
 
void multilook (std::valarray< T > &input, std::valarray< T > &weights, std::valarray< T > &output)
 Multi-looking an array of real data (a weighted averaging) More...
 
void multilook (std::valarray< std::complex< T >> &input, std::valarray< std::complex< T >> &output)
 Multi-looking an array of complex data. More...
 
void multilook (std::valarray< std::complex< T >> &input, std::valarray< std::complex< T >> &output, std::complex< T > noDataValue)
 Multi-looking an array of complex data (excluding noData values) More...
 
void multilook (std::valarray< std::complex< T >> &input, std::valarray< bool > &mask, std::valarray< std::complex< T >> &output)
 Multi-looking an array of complex data. More...
 
void multilook (std::valarray< std::complex< T >> &input, std::valarray< T > &weights, std::valarray< std::complex< T >> &output)
 Multi-looking an array of complex data. More...
 
void multilook (std::valarray< std::complex< T >> &input, std::valarray< T > &output, int exponent)
 Multi-looking amplitude of an array of complex data. More...
 
void nrows (int)
 Set number of rows in the data before multi-looking. More...
 
void ncols (int)
 Set number of columns in the data before multi-looking. More...
 
void rowsLooks (int)
 Set number of looks to be taken on rows. More...
 
void colsLooks (int)
 Set number of looks to be taken on columns. More...
 
void nrowsLooked (int)
 Set number rows after mult-looking. More...
 
void ncolsLooked (int)
 Set number of columns after multi-looking. More...
 

Constructor & Destructor Documentation

template<class T >
isce3::signal::Looks< T >::Looks ( size_t  colsLooks,
size_t  rowsLooks 
)
inline

Constructor with multi-looking factor.

Parameters
[in]colsLooksnumber of looks in the range direction (columns)
[in]rowsLooksnumber of looks in the azimuth direction (rows)

Member Function Documentation

template<class T >
void isce3::signal::Looks< T >::colsLooks ( int  numLooksCol)
inline

Set number of looks to be taken on columns.

Parameters
[in]numLooksColnumber of looks to be taken on columns
template<class T >
void isce3::signal::Looks< T >::multilook ( isce3::io::Raster input_raster,
isce3::io::Raster output_raster,
int  exponent = 0 
)

Multi-looking with rasters.

Parameters
[in]input_rasterinput raster
[out]outputraster
[in]exponentthe power to which the absolute of complex data are raisen to before multi-looking. If exponent = 0, the default exponent is used, i.e. exponent = 1 (linear) for float-to-float or complex-to-complex multilooking; or exponent = 2 (squared) for complex-to-float multilooking.
template<class T >
void isce3::signal::Looks< T >::multilook ( std::valarray< T > &  input,
std::valarray< T > &  output 
)

Multi-looking an array of real data.

  • Parameters
    [in]inputinput array to be multi-looked
  • Parameters
    [out]outputoutput multilooked and downsampled array
template<class T >
void isce3::signal::Looks< T >::multilook ( std::valarray< T > &  input,
std::valarray< T > &  output,
noDataValue 
)

Multi-looking an array of real data (excluding noData values)

Parameters
[in]inputinput array to be multi-looked
[out]outputoutput multilooked and downsampled array
[in]noDataValueinvalid data which will be excluded when multi-looking
template<class T >
void isce3::signal::Looks< T >::multilook ( std::valarray< T > &  input,
std::valarray< bool > &  mask,
std::valarray< T > &  output 
)

Multi-looking an array of real data.

A binary mask is used to mask the data before multilooking

Parameters
[in]inputinput array to be multi-looked
[in]maskinput boolean mask array to mask the input array before multi-looking
[out]outputoutput multilooked and downsampled array
template<class T >
void isce3::signal::Looks< T >::multilook ( std::valarray< T > &  input,
std::valarray< T > &  weights,
std::valarray< T > &  output 
)

Multi-looking an array of real data (a weighted averaging)

Parameters
[in]inputinput array to be multi-looked
[in]weightsinput weight array to weight the input array for multi-looking
[out]outputoutput multilooked and downsampled array
template<class T >
void isce3::signal::Looks< T >::multilook ( std::valarray< std::complex< T >> &  input,
std::valarray< std::complex< T >> &  output 
)

Multi-looking an array of complex data.

Parameters
[in]inputinput array of complex data to be multi-looked
[out]outputoutput multilooked and downsampled array of complex data
template<class T >
void isce3::signal::Looks< T >::multilook ( std::valarray< std::complex< T >> &  input,
std::valarray< std::complex< T >> &  output,
std::complex< T >  noDataValue 
)

Multi-looking an array of complex data (excluding noData values)

Parameters
[in]inputinput array of complex data to be multi-looked
[out]outputoutput multilooked and downsampled array of complex data
[out]noDataValueinvalid complex data which will be excluded when multi-looking
template<class T >
void isce3::signal::Looks< T >::multilook ( std::valarray< std::complex< T >> &  input,
std::valarray< bool > &  mask,
std::valarray< std::complex< T >> &  output 
)

Multi-looking an array of complex data.

A binary mask is used to mask data before multilooking

Parameters
[in]inputinput array of complex data to be multi-looked
[in]maskinput boolean mask array to mask the input array before multi-looking
[out]noDataValueinvalid complex data which will be excluded when multi-looking
template<class T >
void isce3::signal::Looks< T >::multilook ( std::valarray< std::complex< T >> &  input,
std::valarray< T > &  weights,
std::valarray< std::complex< T >> &  output 
)

Multi-looking an array of complex data.

The complex data are weighted based on the input weight array.

Parameters
[in]inputinput array of complex data to be multi-looked
[in]weightsinput weight array to weight the input array for multi-looking
[out]noDataValueinvalid complex data which will be excluded when multi-looking
template<class T >
void isce3::signal::Looks< T >::multilook ( std::valarray< std::complex< T >> &  input,
std::valarray< T > &  output,
int  exponent 
)

Multi-looking amplitude of an array of complex data.

The amplitudes may be raised by an exponent before summation

\[ a = \frac{\sum_{i=1}^{N} |x_i|^{exponent}}{N} \]

where \(a\) represents the sum of amplitudes (to the power of exponent) in a window, N is the number of pixels in the multi-looking window, and x_i is the ith element of the complex data.

Parameters
[in]inputinput array of complex data
[out]outputoutput array of real data
[in]exponentthe power to which the absolute of complex data are raisen to before multi-looking
template<class T >
void isce3::signal::Looks< T >::ncols ( int  numberOfColumns)
inline

Set number of columns in the data before multi-looking.

Parameters
[in]numberOfColumnsnumber of columns before multi-looking
template<class T >
void isce3::signal::Looks< T >::ncolsLooked ( int  numberOfColumns)
inline

Set number of columns after multi-looking.

Parameters
[in]numberOfColumnsnumber of columns after multi-looking
template<class T >
void isce3::signal::Looks< T >::nrows ( int  numberOfRows)
inline

Set number of rows in the data before multi-looking.

Parameters
[in]numberOfRowsnumber of rows before multi-looking
template<class T >
void isce3::signal::Looks< T >::nrowsLooked ( int  numberOfRows)
inline

Set number rows after mult-looking.

Parameters
[in]numberOfRowsnumber of rows after multi-looking
template<class T >
void isce3::signal::Looks< T >::rowsLooks ( int  numLooksRow)
inline

Set number of looks to be taken on rows.

Parameters
[in]numLooksRownumber of looks to be taken on rows

The documentation for this class was generated from the following files:

Generated for ISCE3.0 by doxygen 1.8.5.