MeVisLab Toolbox Reference
mlLUTBasic.h File Reference
#include "mlLUTSystem.h"
#include <mlTypeTraits.h>

Go to the source code of this file.

Namespaces

 ml
 Main documentation file for ML users and developers.
 

Enumerations

enum  ml::LUTVisualType {
  ml::LUT_L = 0 , ml::LUT_LA , ml::LUT_RGB , ml::LUT_RGBA ,
  ml::LUT_BGR , ml::LUT_ABGR , ml::LUT_NUM_VISUAL_TYPE_LAYOUTS , ml::LUT_NUM_VISUAL_TYPES = LUT_RGBA+1
}
 LUT visual type constants to identify the visual interpretation of the individual LUT channels. More...
 
enum  ml::LUTDimensionality { ml::LUT_1D = 1 , ml::LUT_2D , ml::LUT_3D }
 LUT dimensionality. More...
 

Functions

MLLUT_EXPORT int ml::LUTNumberOfChannels (LUTVisualType visualType)
 Get number of channels for given LUTVisualType, or 0 if unknown. More...
 
MLLUT_EXPORT LUTVisualType ml::LUTReducedVisualType (LUTVisualType visualType)
 Get reduced visual type, i.e. ignoring layout variants. More...
 
MLLUT_EXPORT int ml::LUTAlphaChannelIndex (LUTVisualType visualType)
 Get index of alpha channel, or -1 if none. More...
 
MLLUT_EXPORT double ml::LUTConvertRGBtoL (double r, double g, double b)
 Convert RGB to luminance. More...
 
template<typename T >
T ml::LUTCastFromDouble (double value)
 Helper template function to cast from double to type T, performing a proper round operation in case of integer types. More...
 

Variables

MLLUT_EXPORT const char * ml::LUTVisualTypeName [LUT_NUM_VISUAL_TYPE_LAYOUTS]
 Visual type name strings ("L", "LA", ...) More...