#include "Image/Image.H"
Go to the source code of this file.
Functions | |
size_t | retinexDepth (const Dims &dims) |
Get the recommended pyramid depth for the given input dims. | |
template<class T > | |
ImageSet< T > | buildPyrRetinexLog (const Image< T > &L, const size_t depth, const int niter, const Rectangle &outrect) |
Build a retinex pyramid of the given depth using niter iterations. | |
template<class T > | |
ImageSet< T > | buildPyrRetinexLog (const Image< T > &L, const size_t depth, const int niter) |
Like above but with the output rectangle set to the full size of L. |
Retinex color-correction algorithm
Definition in file Retinex.H.
ImageSet<T> buildPyrRetinexLog | ( | const Image< T > & | L, | |
const size_t | depth, | |||
const int | niter | |||
) | [inline] |
Like above but with the output rectangle set to the full size of L.
Definition at line 70 of file Retinex.H.
References buildPyrRetinexLog(), and Image< T >::getDims().
ImageSet<T> buildPyrRetinexLog | ( | const Image< T > & | L, | |
const size_t | depth, | |||
const int | niter, | |||
const Rectangle & | outrect | |||
) | [inline] |
Build a retinex pyramid of the given depth using niter iterations.
The input is expected to be in log scale, and the output will also be in log scale.
This implementation is based on "McCann99" algorithm described in
Brian Funt, Florian Ciurea, and John McCann "Retinex in Matlab," Proceedings of the IS&T/SID Eighth Color Imaging Conference: Color Science, Systems and Applications, 2000, pp 112-121
The paper and matlab code are published here:
http://www.cs.sfu.ca/~colour/publications/IST-2000/ http://www.cs.sfu.ca/~colour/publications/IST-2000/retinex_mccann99.m
Definition at line 167 of file Retinex.C.
References ASSERT, Rectangle::bottomO(), buildPyrLocalAvg2x2(), Image< T >::clear(), Image< T >::getBounds(), Image< T >::getDims(), Image< T >::getHeight(), Rectangle::getOverlap(), Image< T >::getWidth(), height, intXY(), Rectangle::left(), Range< T >::max(), NO_INIT, rangeOf(), Rectangle::rightO(), Rectangle::tlbrO(), and Rectangle::top().
Referenced by buildPyrRetinexLog().