| TerraLib 4.1

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

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
TePDIMixModelComponentList Class Reference

This is the class contains the list of components for mixmodel algorithms. More...

`#include <TePDIMixModelComponentList.hpp>`

List of all members.

## Public Member Functions

| TePDIMixModelComponentList ()
| ~TePDIMixModelComponentList ()
bool | insertComponent (unsigned cn, TePDIMixModelComponent c)
bool | insertComponent (unsigned cn, string l)
bool | removeComponent (unsigned cn)
unsigned | getSize ()
bool | insertPixel (unsigned cn, unsigned bn, double p)
bool | removePixel (unsigned cn, unsigned bn)
double | getPixel (unsigned cn, unsigned bn)
int | getComponentSize (unsigned cn)
bool | operator== (const TePDIMixModelComponentList &external) const

## Detailed Description

This is the class contains the list of components for mixmodel algorithms.

Author:
  Felipe Castro da Silva <felipe@dpi.inpe.br>

Examples:

  TePDIMixModel_test.cpp.

## Constructor & Destructor Documentation

TePDIMixModelComponentList::TePDIMixModelComponentList | ( |  | ) |

Default constructor.

TePDIMixModelComponentList::~TePDIMixModelComponentList | ( |  | ) |

Default destructor.

## Member Function Documentation

int TePDIMixModelComponentList::getComponentSize | ( | unsigned | cn | ) |

Return component size.

Parameters:

  cn | component number.

Returns:
  if cn exists, component size, if not -1.

double TePDIMixModelComponentList::getPixel | ( | unsigned | cn,
|  | unsigned | bn
| ) |  |

Return pixel value.

Parameters:

  cn | component number.
  bn | band number.

Returns:
  if cn and bn exist, pixel value, if not -1.0

unsigned int TePDIMixModelComponentList::getSize | ( |  | ) |

Return component list size.

Returns:
  return the componentlist size.

bool TePDIMixModelComponentList::insertComponent | ( | unsigned | cn,
|  | TePDIMixModelComponent | c
| ) |  |

Insert component.

Parameters:

  cn | component number where the component will be stored.
  c | component to be stored.

Returns:
  true if the component was inserted, false if not.

Examples:
  TePDIMixModel_test.cpp.

bool TePDIMixModelComponentList::insertComponent | ( | unsigned | cn,
|  | string | l
| ) |  |

Insert a blank component called l.

Parameters:

  cn | component number where the component will be stored.
  l | name of the component (e.g. cloud, vegetation, ...).

Returns:
  true if the component was inserted, false if not.

bool TePDIMixModelComponentList::insertPixel | ( | unsigned | cn,
|  | unsigned | bn,
|  | double | p
| ) |  |

Insert pixel.

Parameters:

  cn | component number where the pixel will be stored.
  bn | band number where the pixel will be stored.
  p | value of the pixel.

Returns:
  true if the pixel was inserted, false if not.

Examples:
  TePDIMixModel_test.cpp.

bool TePDIMixModelComponentList::operator== | ( | const TePDIMixModelComponentList & | external | ) | const

bool TePDIMixModelComponentList::removeComponent | ( | unsigned | cn | ) |

Remove component.

Parameters:

  cn | component number to be removed.

Returns:
  true if the component was removed, false if not.

bool TePDIMixModelComponentList::removePixel | ( | unsigned | cn,
|  | unsigned | bn
| ) |  |

Remove pixel.

Parameters:

  cn | component number where the pixel will be removed.
  bn | band number where the pixel will be removed.

Returns:
  true if the pixel was removed, false if not.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIMixModelComponentList.hpp
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIMixModelComponentList.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines