functions that operate on the pixel values More...
#include "img/img_base.h"
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 |
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.