| TerraLib 4.1

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

- File List
- File Members

Namespaces | Enumerations | Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIUtils.hpp File Reference

This file contains utilitary functions used by PDI algorithms. THEY SHOLD NOT BE USED BY ANYONE. The support and interfaces can be changed in future. THIS IS FOR INTERNAL USE ONLY. More...

`#include "TePDIRgbPalette.hpp"`
`#include "TePDITypes.hpp"`
`#include "TePDIMathFunctions.hpp"`
`#include "TePDIInterpolator.hpp"`
`#include "TePDITileIndexer.hpp"`
`#include "../kernel/TeAgnostic.h"`
`#include "../kernel/TeRaster.h"`
`#include "../kernel/TeDataTypes.h"`
`#include "../kernel/TeBox.h"`
`#include <string>`
`#include <map>`

Go to the source code of this file.

## Namespaces

namespace | TePDIUtils

## Enumerations

enum | TePDIUtils::TePDIUtilsMemPol { TePDIUtils::TePDIUtilsAutoMemPol = 1, TePDIUtils::TePDIUtilsRamMemPol = 2, TePDIUtils::TePDIUtilsDiskMemPol = 3 }

## Functions

bool | TePDIUtils::TeAllocRAMRaster (TePDITypes::TePDIRasterPtrType &template_raster, TePDITypes::TePDIRasterPtrType &RAMRaster, unsigned int bands, bool force_new_dt, bool force_mm, TeDataType pixel_type)
| Allocates one RAM raster using another raster as template base.
bool | TePDIUtils::TeAllocRAMRaster (TePDITypes::TePDIRasterPtrType &RAMRaster, unsigned int bands, unsigned int lines, unsigned int columns, bool force_mm, TeDataType pixel_type, TePDIRgbPalette *palette)
| Allocates a brand new RAM raster.
bool | TePDIUtils::TeAllocRAMRaster (TePDITypes::TePDIRasterPtrType &RAMRaster, const TeRasterParams &params, bool force_mm)
| Allocates a brand new RAM raster using the supplied parameters.
bool | TePDIUtils::TeAllocRAMRaster (TePDITypes::TePDIRasterPtrType &RAMRaster, const TeRasterParams &params, TePDIUtilsMemPol mempol)
| Allocates a brand new RAM raster using the supplied parameters.
bool | TePDIUtils::TeAllocRAMRaster (const TeRasterParams &params, TePDITypes::TePDIRasterPtrType &rasterPointer)
| Create a new raster instance into memory using the supplied parameters.
bool | TePDIUtils::TeRaster2Geotiff (const TePDITypes::TePDIRasterPtrType &in_raster, const std::string &file_name)
| Save the raster to a GeoTIFF file.
bool | TePDIUtils::TeRaster2Geotiff (const TePDITypes::TePDIRasterPtrType &in_raster, const std::string &file_name, TeDataType pixel_type)
| Save the raster to a GeoTIFF file.
bool | TePDIUtils::TeRaster2Geotiff (const TePDITypes::TePDIRasterPtrType &in_raster, const std::string &file_name, bool enable_progress)
| Save the raster to a GeoTIFF file.
bool | TePDIUtils::TeRaster2RGBGeotiff (const TePDITypes::TePDIRasterPtrType &in_raster, const std::string &file_name, bool enable_progress)
| Save a 3 bands/channels raster to a RGB GeoTIFF file.
bool | TePDIUtils::TeRaster2Jpeg (const TePDITypes::TePDIRasterPtrType &in_raster, const std::string &file_name, bool enable_progress, unsigned int qualityFactor)
| Save the raster to a Jpeg file.
bool | TePDIUtils::TeCopyRasterPixels (TePDITypes::TePDIRasterPtrType &source_raster, unsigned int source_band, TePDITypes::TePDIRasterPtrType &target_raster, unsigned int target_band, bool discretize_levels, bool trunc_levels)
| Do pixel by pixel copy from one raster to another.
bool | TePDIUtils::TeCopyRasterBands (TePDITypes::TePDIRasterPtrType &source_raster, TePDITypes::TePDIRasterPtrType &target_raster, bool discretize_levels, bool trunc_levels)
| Do pixel by pixel copy from one raster to another ( all bands ).
bool | TePDIUtils::TeGetRasterMinMaxBounds (const TePDITypes::TePDIRasterPtrType &raster, unsigned int band, double &min, double &max)
| Used to find the allowed maximum and minimum level values that the supplied TeRaster band can have.
unsigned long int | TePDIUtils::TeGetRasterReqMem (TeRasterParams &params)
| Used to find the raster required memory.
bool | TePDIUtils::rasterCompare (TePDITypes::TePDIRasterPtrType &raster1, TePDITypes::TePDIRasterPtrType &raster2)
| Compares two rasters.
bool | TePDIUtils::IsFloatBand (const TePDITypes::TePDIRasterPtrType &raster, unsigned int band)
| Given a raster band, verifies if the pixels are floating point pixels.
void | TePDIUtils::MapCoords2RasterIndexes (const TeCoord2D &g_in, const TePDITypes::TePDIRasterPtrType &raster, TeCoord2D &g_out)
| Convert a TeCoord2D with projected coordinates to a geometry with indexed coordinates ( following the raster reference of lines and columns ).
void | TePDIUtils::MapCoords2RasterIndexes (const TeBox &box_in, const TePDITypes::TePDIRasterPtrType &raster, TeBox &box_out)
| Convert a TeBox with projected coordinates to a TeBox with indexed coordinates ( following the raster reference of lines and columns ).
template<typename Geometry >
void | TePDIUtils::MapCoords2RasterIndexes (const Geometry &g_in, const TePDITypes::TePDIRasterPtrType &raster, Geometry &g_out)
| Convert a geometry with projected coordinates to a geometry with indexed coordinates ( following the raster reference of lines and columns ).
void | TePDIUtils::MapRasterIndexes2Coords (const TeCoord2D &g_in, const TePDITypes::TePDIRasterPtrType &raster, TeCoord2D &g_out)
| Convert TeCoord2D with matrix indexed coordinates to a TeCoord2D with projected coordinates folowing a raster reference.
void | TePDIUtils::MapRasterIndexes2Coords (const TeBox &g_in, const TePDITypes::TePDIRasterPtrType &raster, TeBox &g_out)
| Convert TeBox with matrix indexed coordinates to a TeBox with projected coordinates folowing a raster reference.
template<typename Geometry >
void | TePDIUtils::MapRasterIndexes2Coords (const Geometry &g_in, const TePDITypes::TePDIRasterPtrType &raster, Geometry &g_out)
| Convert geometry with matrix indexed coordinates to a geometry with projected coordinates folowing a raster reference.
void | TePDIUtils::makeSegmentSet (const TeLinearRing &g_in, TeLineSet &g_out)
| Breaks a TeLinearRing geometry into an segment set ( line segments of two points ).
template<typename Geometry >
void | TePDIUtils::makeSegmentSet (const Geometry &g_in, TeLineSet &g_out)
| Breaks a geometry into an segment set ( line segments of two points ).
bool | TePDIUtils::IsDiscreteLut (const TePDITypes::TePDILutType &lut)
| Virifies if the lut has only discrete reference values ( integer ).
bool | TePDIUtils::buildDetailedBox (TeRaster &raster, TePolygon &box_polygon)
| Builds a detailed box (world indexes) using all raster border pixels.
bool | TePDIUtils::buildDetailedBox (const TePDITypes::TePDIRasterPtrType &raster, TePolygon &box_polygon)
| DEPRECATED - Builds a detailed box (world indexes) using all raster border pixels.
bool | TePDIUtils::buildDetailedBBox (TeRaster &raster, TePolygon &box_polygon)
| Builds a detailed bounding box (world indexes) using all raster border pixels.
bool | TePDIUtils::buildDetailedBBox (const TePDITypes::TePDIRasterPtrType &raster, TePolygon &box_polygon)
| DEPRECATED - Builds a detailed bounding box (world indexes) using all raster border pixels.
bool | TePDIUtils::reprojectRaster (TeRaster &input_raster, unsigned int outNLines, unsigned int outNCols, TeProjection &target_projection, bool enableProgress, bool enableOptimization, TeRaster &output_raster)
| Reproject a raster geometry.
bool | TePDIUtils::reprojectRaster (TeRaster &input_raster, TeProjection &target_projection, double target_resx, double target_resy, bool enableProgress, bool enableOptimization, TeRaster &output_raster)
| Reproject a raster geometry.
short | TePDIUtils::TeRelation (const TeCoord2D &c, const TePDITileIndexer &indexer)
| Tells the relation between a point and a polygon by using a polygon tile indexer.
void | TePDIUtils::TeSegSetIntersection (const TeLineSet &ls1, const TeLineSet &ls2, TePointSet &ps)
| Calculates the intersection set operation between two line segments sets.
TeDataType | TePDIUtils::chooseBestPixelType (TePDITypes::TePDIRasterVectorType &rasters)
| Chooses the best pixel data type betweenn rasters.
void | TePDIUtils::getBandMinMaxValues (const TePDITypes::TePDIRasterPtrType &raster, unsigned int channel, bool progress_enabled, unsigned int sample_step, double &min, double &max)
| Returns the minimum and maximum pixel values inside one raster channel.
bool | TePDIUtils::convert2MultiBand (const TePDITypes::TePDIRasterPtrType &in_raster, bool progress_enabled, TePDITypes::TePDIRasterPtrType &out_raster)
| Generates a multi-band copy from the given raster.
bool | TePDIUtils::compareGeometryPoints (const TeLinearRing &geom1, const TeLinearRing &geom2)
| Compares two TeLinerRing ignoring the points order.
template<typename Geometry >
bool | TePDIUtils::compareGeometryPoints (const Geometry &geom1, const Geometry &geom2)
| Compares two geometries ignoring the points order inside each composite elemeent.
bool | TePDIUtils::resampleRasterByLinsCols (const TePDITypes::TePDIRasterPtrType &input_raster, const TePDITypes::TePDIRasterPtrType &output_raster, unsigned int out_lines, unsigned int out_cols, bool enable_progress, TePDIInterpolator::InterpMethod interpol)
| Raster resampling to new resolution, keeping the original box and projection.
bool | TePDIUtils::resampleRasterByLinsCols (const TePDITypes::TePDIRasterPtrType &input_raster, const std::vector< unsigned int > &inputBands, unsigned int out_lines, unsigned int out_cols, bool enable_progress, TePDIInterpolator::InterpMethod interpol, const TePDITypes::TePDIRasterPtrType &output_raster)
| Raster resampling to new resolution, keeping the original box and projection.
bool | TePDIUtils::resampleRasterByRes (const TePDITypes::TePDIRasterPtrType &input_raster, const TePDITypes::TePDIRasterPtrType &output_raster, double x_resolution_ratio, double y_resolution_ratio, TePDIInterpolator::InterpMethod interpol, bool enable_progress)
| Raster resampling to new resolution, keeping the original box and projection.
bool | TePDIUtils::composeRaster (const TePDITypes::TePDIRasterVectorType &input_rasters, const std::vector< unsigned int > &input_channels, TePDITypes::TePDIRasterPtrType &output_raster, bool enable_progress)
| Compose raster channels into one single raster.
bool | TePDIUtils::decomposeRaster (TeRaster &inputRaster, const std::vector< unsigned int > &inputChannels, TePDITypes::TePDIRasterVectorType &outputRasters, bool enableProgress)
| Decompose raster channels into many single rasters with one channel/band each.
bool | TePDIUtils::loadRaster (const std::string &fileName, TePDITypes::TePDIRasterPtrType &memRasterPtr, bool enable_progress)
| Load a raster data file into RAM (using a SMARTMEM decoder)

## Detailed Description

This file contains utilitary functions used by PDI algorithms. 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>

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines