mimas::colour_properties_tool< T > Class Template Reference

Interpolation/extrapolation method for controlling image properties for more details see: https://www.sgi.com/grafica/interp/index.html. More...

#include <colour_properties_tool.h>

Inheritance diagram for mimas::colour_properties_tool< T >:

Inheritance graph
[legend]
Collaboration diagram for mimas::colour_properties_tool< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 colour_properties_tool (void)
void brightness (image< rgba< T > > &im, double brightval)
 brightval is from -1.0 (darkest) to 1.0 (lightest). Values outside this range are extrapolated
void saturation (image< rgba< T > > &im, double satval)
 satval is from -1.0 (grayest) to 0.0 (normal) to >0.0 (saturated). Values outside this range are extrapolated
void contrast (image< rgba< T > > &im, double contval)
 contval is from -1.0 (lowest) to 0.0 (normal) to >0.0 (contrasty). Values outside this range are extrapolated
void setChannel (image< rgba< T > > &im, T val, const char *channel)
 set channel "R","G","B","A" or multiplicates (e.g. "RGB") to val

Detailed Description

template<typename T>
class mimas::colour_properties_tool< T >

Interpolation/extrapolation method for controlling image properties for more details see: https://www.sgi.com/grafica/interp/index.html.

Author:
Bala Amavasai (bala@amavasai.org)
Date:
Tue Aug 20 16:55:28 BST 2002
Header
/cvs/mimas2/include/colour_properties_tool.h,v 1.1.1.1 2005/08/09 15:37:45 engmb Exp

Definition at line 18 of file colour_properties_tool.h.


Constructor & Destructor Documentation

template<typename T>
mimas::colour_properties_tool< T >::colour_properties_tool ( void   )  [inline]

Definition at line 24 of file colour_properties_tool.h.


Member Function Documentation

template<typename T>
void mimas::colour_properties_tool< T >::brightness ( image< rgba< T > > &  im,
double  brightval 
)

brightval is from -1.0 (darkest) to 1.0 (lightest). Values outside this range are extrapolated

Definition at line 61 of file colour_properties_tool.h.

References mimas::image_ref< T >::fill(), and mimas::image< T >::init().

Here is the call graph for this function:

template<typename T>
void mimas::colour_properties_tool< T >::saturation ( image< rgba< T > > &  im,
double  satval 
)

satval is from -1.0 (grayest) to 0.0 (normal) to >0.0 (saturated). Values outside this range are extrapolated

Definition at line 88 of file colour_properties_tool.h.

References mimas::const_image_ref< T, T * >::getHeight(), mimas::const_image_ref< T, T * >::getWidth(), and mimas::image_ref< T >::pixel().

Here is the call graph for this function:

template<typename T>
void mimas::colour_properties_tool< T >::contrast ( image< rgba< T > > &  im,
double  contval 
)

contval is from -1.0 (lowest) to 0.0 (normal) to >0.0 (contrasty). Values outside this range are extrapolated

Definition at line 113 of file colour_properties_tool.h.

References mimas::image_ref< T >::fill(), and mimas::image< T >::init().

Here is the call graph for this function:

template<typename T>
void mimas::colour_properties_tool< T >::setChannel ( image< rgba< T > > &  im,
val,
const char *  channel 
)

set channel "R","G","B","A" or multiplicates (e.g. "RGB") to val

Definition at line 128 of file colour_properties_tool.h.

References MMERROR.


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:27 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...