| TerraLib 4.1

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

- File List
- File Members

Defines | Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIBaatz.cpp File Reference
`#include <cstdlib>`
`#include <iostream>`
`#include <iomanip>`
`#include <fstream>`
`#include <time.h>`
`#include <math.h>`
`#include "TePDIBaatz.hpp"`
`#include "TePDIRaster2Vector.hpp"`
`#include "TePDIUtils.hpp"`

## Defines

#define | MAX_FLT 3.4e38

## Functions

void | remove_segment (struct segment *aux_segment, struct segment **first_segment, struct segment **last_segment)
int | merge_segment (struct segment_neighbor *curr_neighbor, struct segment *curr_segment, struct segment **first_segment, struct segment **last_segment, struct segment **segments_ptr_vector, long int nrows, long int ncols)
void | reset_pixels (struct segment_neighbor *curr_neighbor, struct segment *curr_segment, struct segment **segments_ptr_vector, long int nrows, long int ncols)
struct segment_neighbor * | find_neighbors (struct segment *curr_segment, struct segment **segments_ptr_vector, long int nrows, long int ncols)
void | find_neighbor_pixels (unsigned long int pixel_id, long int nrows, long int ncols, long int *n0, long int *n1, long int *n2, long int *n3)
void | free_neighbor_list (struct segment_neighbor **first_neighbor)
float | calc_color_stats (struct segment_neighbor *curr_neighbor, struct segment *curr_segment, struct segmentation_parameters parameters)
float | calc_spatial_stats (struct segment_neighbor *curr_neighbor, struct segment *curr_segment, struct segment *segments_ptr_vector, long int nrows, long int ncols, struct segmentation_parameters parameters)
void | calc_perimeter (struct segment_neighbor *curr_neighbor, struct segment *curr_segment, struct segment **segments_ptr_vector, long int nrows, long int ncols)
void | calc_perimeter_optimized (struct segment_neighbor *curr_neighbor, struct segment *curr_segment, struct segment **segments_ptr_vector, long int nrows, long int ncols)
void | calc_bounding_box (struct segment_neighbor *curr_neighbor, struct segment *curr_segment)
void | reset_unused_segments_list (unsigned long int num_segments, struct segment *first_segment)
struct segment * | find_unused_by_dither (struct segment **segments_ptr_vector, int num_bits, long int nrows, long int ncols, unsigned long int *cell_count)
void | convert_pixel_id (unsigned long int pixel_id, long int ncols, long int *row, long int *col)
float | ranval (float low, float high)
unsigned long int | dither_matrix_dimension (long int nrows, long int ncols, int *dither_bits)
unsigned long int | dither_matrix_conversion (int num_bits, long int nrows, long int ncols, unsigned long int *cell_count)
int | initialize_segments (struct segment ***segments_ptr_vector, struct segment **first_segment, struct segment **last_segment, TePDITypes::TePDIRasterPtrType input_image, vector< unsigned > input_channels, long int nrows, long int ncols, bool progress_enabled_)
float | calc_spatial_stats (struct segment_neighbor *curr_neighbor, struct segment *curr_segment, struct segment **segments_ptr_vector, long int nrows, long int ncols, struct segmentation_parameters parameters)
void | free_segment_list (struct segment **initial_segment, struct segment ***segments_ptr_vector)
void | write_segments (TePDITypes::TePDIRasterPtrType output_image, struct segment *first_segment, int write_type, bool progress_enabled_)
float | segmentation (struct segment **segments_ptr_vector, struct segment *initial_segment, struct segment *final_segment, long int nrows, long int ncols, struct segmentation_parameters parameters, bool progress_enabled_)

## Define Documentation

#define MAX_FLT 3.4e38

## Function Documentation

void calc_bounding_box | ( | struct segment_neighbor * | curr_neighbor,
|  | struct segment * | curr_segment
| ) |  |

float calc_color_stats | ( | struct segment_neighbor * | curr_neighbor,
|  | struct segment * | curr_segment,
|  | struct segmentation_parameters | parameters
| ) |  |

void calc_perimeter | ( | struct segment_neighbor * | curr_neighbor,
|  | struct segment * | curr_segment,
|  | struct segment ** | segments_ptr_vector,
|  | long int | nrows,
|  | long int | ncols
| ) |  |

void calc_perimeter_optimized | ( | struct segment_neighbor * | curr_neighbor,
|  | struct segment * | curr_segment,
|  | struct segment ** | segments_ptr_vector,
|  | long int | nrows,
|  | long int | ncols
| ) |  |

float calc_spatial_stats | ( | struct segment_neighbor * | curr_neighbor,
|  | struct segment * | curr_segment,
|  | struct segment * | segments_ptr_vector,
|  | long int | nrows,
|  | long int | ncols,
|  | struct segmentation_parameters | parameters
| ) |  |

float calc_spatial_stats | ( | struct segment_neighbor * | curr_neighbor,
|  | struct segment * | curr_segment,
|  | struct segment ** | segments_ptr_vector,
|  | long int | nrows,
|  | long int | ncols,
|  | struct segmentation_parameters | parameters
| ) |  |

void convert_pixel_id | ( | unsigned long int | pixel_id,
|  | long int | ncols,
|  | long int * | row,
|  | long int * | col
| ) |  |

unsigned long int dither_matrix_conversion | ( | int | num_bits,
|  | long int | nrows,
|  | long int | ncols,
|  | unsigned long int * | cell_count
| ) |  |

unsigned long int dither_matrix_dimension | ( | long int | nrows,
|  | long int | ncols,
|  | int * | dither_bits
| ) |  |

void find_neighbor_pixels | ( | unsigned long int | pixel_id,
|  | long int | nrows,
|  | long int | ncols,
|  | long int * | n0,
|  | long int * | n1,
|  | long int * | n2,
|  | long int * | n3
| ) |  |

struct segment_neighbor * find_neighbors | ( | struct segment * | curr_segment,
|  | struct segment ** | segments_ptr_vector,
|  | long int | nrows,
|  | long int | ncols
| ) |  | `[read]`

struct segment * find_unused_by_dither | ( | struct segment ** | segments_ptr_vector,
|  | int | num_bits,
|  | long int | nrows,
|  | long int | ncols,
|  | unsigned long int * | cell_count
| ) |  | `[read]`

void free_neighbor_list | ( | struct segment_neighbor ** | first_neighbor | ) |

void free_segment_list | ( | struct segment ** | initial_segment,
|  | struct segment *** | segments_ptr_vector
| ) |  |

int initialize_segments | ( | struct segment *** | segments_ptr_vector,
|  | struct segment ** | first_segment,
|  | struct segment ** | last_segment,
|  | TePDITypes::TePDIRasterPtrType | input_image,
|  | vector< unsigned > | input_channels,
|  | long int | nrows,
|  | long int | ncols,
|  | bool | progress_enabled_
| ) |  |

int merge_segment | ( | struct segment_neighbor * | curr_neighbor,
|  | struct segment * | curr_segment,
|  | struct segment ** | first_segment,
|  | struct segment ** | last_segment,
|  | struct segment ** | segments_ptr_vector,
|  | long int | nrows,
|  | long int | ncols
| ) |  |

float ranval | ( | float | low,
|  | float | high
| ) |  |

void remove_segment | ( | struct segment * | aux_segment,
|  | struct segment ** | first_segment,
|  | struct segment ** | last_segment
| ) |  |

void reset_pixels | ( | struct segment_neighbor * | curr_neighbor,
|  | struct segment * | curr_segment,
|  | struct segment ** | segments_ptr_vector,
|  | long int | nrows,
|  | long int | ncols
| ) |  |

void reset_unused_segments_list | ( | unsigned long int | num_segments,
|  | struct segment * | first_segment
| ) |  |

float segmentation | ( | struct segment ** | segments_ptr_vector,
|  | struct segment * | initial_segment,
|  | struct segment * | final_segment,
|  | long int | nrows,
|  | long int | ncols,
|  | struct segmentation_parameters | parameters,
|  | bool | progress_enabled_
| ) |  |

void write_segments | ( | TePDITypes::TePDIRasterPtrType | output_image,
|  | struct segment * | first_segment,
|  | int | write_type,
|  | bool | progress_enabled_
| ) |  |

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines