img_scalar.h File Reference

functions that operate on the pixel values More...

#include "img/img_base.h"
Include dependency graph for img_scalar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  img
 

the img module namespace


Functions

template<typename ScalarType >
bool img::almostEqual (ScalarType a, ScalarType b, ScalarType EPSILON=ScalarType(10e-5))
 compares two scalar values for (near) equality
template<typename ScalarType >
ScalarType img::clampValue (ScalarType value, ScalarType minval=ScalarType(0.0), ScalarType maxval=ScalarType(255.0))
 clamp a scalar value
template<typename ScalarType >
ScalarType img::max3 (ScalarType a, ScalarType b, ScalarType c)
 take the maximum between three scalar values
template<typename ScalarType >
ScalarType img::median3 (ScalarType a, ScalarType b, ScalarType c)
 take the median between three scalar values
template<typename ScalarType >
ScalarType img::min3 (ScalarType a, ScalarType b, ScalarType c)
 take the minimum between three scalar values
template<typename ScalarType >
int img::valueAsInt (ScalarType value)
 convert a scalar value to the nearest integer

Detailed Description

functions that operate on the pixel values

This header contains some utility functions for the scalar values of the image pixels.

Definition in file img_scalar.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:19:37 2013