All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Blender.cpp File Reference

Blended pixel value calculation for two overlaped rasters. More...

#include "Blender.h"
#include "Macros.h"
#include "../geometry/LinearRing.h"
#include "../geometry/MultiPoint.h"
#include "../geometry/MultiLineString.h"
#include "../geometry/Point.h"
#include "../geometry/CurvePolygon.h"
#include "../geometry/Envelope.h"
#include "../geometry/Enums.h"
#include "../raster/Raster.h"
#include "../raster/Grid.h"
#include "../raster/Band.h"
#include "../raster/BandProperty.h"
#include "../raster/Utils.h"
#include "../raster/SynchronizedRaster.h"
#include "../common/PlatformUtils.h"
#include "../common/progress/TaskProgress.h"
#include <boost/thread.hpp>
#include <boost/graph/graph_concepts.hpp>
#include <boost/scoped_ptr.hpp>
#include <complex>
#include <limits>
#include <algorithm>
#include <memory>

Go to the source code of this file.

Namespaces

 te
 URI C++ Library.
 
 te::rp
 Namespace for Raster Processing module of TerraLib.
 

Macros

#define getPerpendicularDistance(pX, pY, lineAX, lineAY, lineBX, lineBY, aux1, aux2, perpDist)
 

Detailed Description

Blended pixel value calculation for two overlaped rasters.

Definition in file Blender.cpp.

Macro Definition Documentation

#define getPerpendicularDistance (   pX,
  pY,
  lineAX,
  lineAY,
  lineBX,
  lineBY,
  aux1,
  aux2,
  perpDist 
)
Value:
aux1 = lineAX - lineBX; \
aux2 = lineAY - lineBY; \
if( aux1 == 0.0 ) \
{ \
perpDist = std::abs( pX - lineAX ); \
} \
else if( aux2 == 0.0 ) \
{ \
perpDist = std::abs( pY - lineAY ); \
} \
else \
{ \
perpDist = \
std::abs( \
( aux2 * pX ) - ( aux1 * pY ) + ( lineAX * lineBY ) - ( lineBX * lineAY ) \
) \
/ \
std::sqrt( ( aux1 * aux1 ) + ( aux2 * aux2 ) ); \
}

Definition at line 56 of file Blender.cpp.

Referenced by te::rp::Blender::euclideanDistanceMethodImp().