/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (c) 2005 Image and Signals Lab. GRENOBLE-FRANCE
% LIS-Viallet
% INPG, 46 avenue Flix Viallet,
% 38031 Grenoble cedex
% tel. +33 (0)4 76 57 43 50
% Fax: +33 (0)4 76 57 47 90 -
%
% This demonstration program illustrates the first computing stage of the human visual system
% which is local luminance adaptation
% 
% YOU CAN USE THIS PROGRAM FOR RESEARCH PURPOSE ONLY
% WHEN USING THIS CODE OR SOME PARTS, CITE:
% -> A. BENOIT , A. CAPLIER, "HEAD NODS ANALYSIS : INTERPRETATION OF NON VERBAL COMMUNICATION GESTURES" IEEE, ICIP 2005, Genova, Italy
% -> A. BENOIT , A. CAPLIER, "Hypovigilence Analysis: Open or Closed Eye or Mouth ? Blinking or Yawning Frequency ?" IEEE, AVSS 2005, Como, Italy
%
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
% FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
% IN THE SOFTWARE.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

/***************************************************************************
=> MAtlab mex function demo program that computes the local luminance adaptation of the photoreceptors of the retina

    ==> Author : Alexandre BENOIT 06 2006
/* alexandre benoit : benoit.a@neuf.fr ; benoit@lis.inpg.fr ; www.lis.inpg.fr/pages_perso/benoit*/
***************************************************************************/

% HOW TO RUN IT:
% 1. launch matlab (7.1 or later)
% 2. launch the demo script 'TestProgram.m'
% 3. a figure should appear and show the result of the processing, if problems, please contact the author

% The script 'TestProgram.m' shows the use of the function 'localLuminanceAdaptation.m' and its mex function 'PhotoreceptorsCompression.mexw32',
the image input MUST BE GRAY LEVEL IMAGE MATRIX IN DOUBLE DATA TYPE !!!
