| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Namespace List
- Namespace Members

Functions
TePDIMatrixFunctions Namespace Reference
Image Processing.

This namespace contains functions for TePDIMatrix manipulation. More...

## Functions

double | GetCorrelation (const TePDIMatrix< double > &matrix1, const TePDIMatrix< double > &matrix2)
| Matrices correlation.
bool | Abs (const TePDIMatrix< double > &inMatrix, TePDIMatrix< double > &absMatrix)
| Absolute values matrix generation.
bool | WhereIsGreater (const TePDIMatrix< double > &inMatrix1, const TePDIMatrix< double > &inMatrix2, TePDIMatrix< double > &gtMatrix)
| Locates all inMatrix1 elements there are greater than inMatrix2 elements. These elements positions will be marked with value 1 in gtMatrix. The other positions will be marked with 0's.
bool | Negate (const TePDIMatrix< double > &inMatrix, TePDIMatrix< double > &negMatrix)
| Locates all inMatrix1 zero elements. These elements positions will be marked with value 1 in negMatrix. The other positions will be marked with 0's.

## Detailed Description

This namespace contains functions for TePDIMatrix manipulation.

Note:
  THEY SHOLD NOT BE USED BY ANYONE. The support and interfaces can be changed in future. THIS IS FOR INTERNAL USE ONLY.

Author:
  Emiliano F. Castejon <castejon@dpi.inpe.br>

## Function Documentation

PDI_DLL bool TePDIMatrixFunctions::Abs | ( | const TePDIMatrix< double > & | inMatrix,
|  | TePDIMatrix< double > & | absMatrix
| ) |  |

Absolute values matrix generation.

Parameters:

  inMatrix | Input matrix.
  absMatrix | Output matrix.

Returns:
  true if ok, false on errors.

Examples:
  TePDIMatrixFunctions_test.cpp.

PDI_DLL double TePDIMatrixFunctions::GetCorrelation | ( | const TePDIMatrix< double > & | matrix1,
|  | const TePDIMatrix< double > & | matrix2
| ) |  |

Matrices correlation.

Parameters:

  matrix1 | Input matrix 1.
  matrix2 | Input matrix 2.

Returns:
  The correlation between the two matrix.

Note:
  The calcule will only be made for elements that exists in both matrices.

Examples:
  TePDIMatrixFunctions_test.cpp.

PDI_DLL bool TePDIMatrixFunctions::Negate | ( | const TePDIMatrix< double > & | inMatrix,
|  | TePDIMatrix< double > & | negMatrix
| ) |  |

Locates all inMatrix1 zero elements. These elements positions will be marked with value 1 in negMatrix. The other positions will be marked with 0's.

Parameters:

  inMatrix | Input matrix.
  negMatrix | Output matrix.

Returns:
  true if ok, false on errors.

Examples:
  TePDIMatrixFunctions_test.cpp.

PDI_DLL bool TePDIMatrixFunctions::WhereIsGreater | ( | const TePDIMatrix< double > & | inMatrix1,
|  | const TePDIMatrix< double > & | inMatrix2,
|  | TePDIMatrix< double > & | gtMatrix
| ) |  |

Locates all inMatrix1 elements there are greater than inMatrix2 elements. These elements positions will be marked with value 1 in gtMatrix. The other positions will be marked with 0's.

Parameters:

  inMatrix1 | Input matrix.
  inMatrix2 | Input matrix.
  gtMatrix | Output matrix.

Returns:
  true if ok, false on errors.

Examples:
  TePDIMatrixFunctions_test.cpp.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines