-------------------------------------------------------------------------------
                                Image Analyzer
-------------------------------------------------------------------------------
        Copyright (C) 2000-2013  |  Michael Vinther  |  mv@logicnet·dk
                        MeeSoft  |  http://meesoft.logicnet.dk
-------------------------------------------------------------------------------

Description:
------------
  Advanced image editing, enhancement and analysis software.


Some of the features:
---------------------
  · Read/write BMP, ICO, CUR, WMF, EMF, JPEG, PNG, GIF, PCX and JPEG 2000 files
  · Read RAS, PNM, PGM, PPM, HIPS and Matlab files
  · Scanner and printer support
  · Build-in conventional and adaptive filters
  · User specified filters in spatial and frequency domain
  · Distance, Fourier and discrete cosine transformation
  · Restoration by (blind) deconvolution
  · Color model conversion: RGB, CMY, HSI, Lab, PCA, YCbCr and YIQ
  · Easy red-eye removal
  · Morphological operations
  · Resize, rotate, crop and warping
  · Math expression module for creating and transforming images
  · Advanced "pocket" calculator with equation solver
  · Plugin system for image processing and extended file format support


Short description of MAP file format:
-------------------------------------
  File header:
    MAP           : 3 bytes     The characters 'MAP'
    Version       : DWord       1
    PixelFormat   : DWord       $01  : Byte data
                                $02  : Word data
                                $40  : Single floating point data (32 bit)
                                $80  : Double floating point data (64 bit)
    Width, Height : DWord       Image size
    Planes        : Byte        1    : Real values
                                2    : Complex values (real,imaginary)
    Compression   : Byte        0    : None, raw data
                                1    : Deflate compressed (default)
                                2    : Another variant of LZ77

  Following is the data compressed as specified by the Compression parameter.
  For complex data the real plane is stored first and then the complex plane.
  The data is stored line by line, left to right from top to bottom.
  The present version of Image Analyzer always uses the deflate compression
  for writing files. Description of the Deflate standard can be found at
  http://www.gzip.org/zlib/zlib_docs.html


License information:
--------------------
Conditions for using and copying the software:
  · I (Michael Vinther) or MeeSoft can not in any way be held responsible for
    any damage or loss caused by using this software.
  · The software can only be copied/distributed in its original form (installer
    or zip archive) unless otherwise agreed with the author.
  · Distribution of the software on CD-ROMs, Internet or other media is not 
    allowed without consent from the author.
This means that you do not have to ask my permission to use it in your company
or for personal use! It is meant to be free for everyone to use but of course a 
donation is always appreciated...

Thanks to Markus Oberhumer and Laszlo Molnar for their brilliant EXE compressor
UPX. (See http://upx.sourceforge.net/)
This software includes a library created by Anders Melander.
The JasPerLib DLL which contains the JPEG 2000 stuff is (c) 1999-2000, Image
Power, Inc. and the University of British Columbia, Canada, see libjasper.txt.
Most of the filter and palette files was provided by Marian Stach.


Version history:
----------------
Note that this version history is incomplete. It does not include all changes
in all versions.

Changes in version 1.36.1  (2013-11-03):
  Windows 8.1 compatibility fix
Changes in version 1.36  (2013-09-03):
  Basic support for layers
  Transparent PNG handling bugfix
  Optimized painting tools
  Custom expression in Fade dialog
  Improved automatic image registration/alignment
  GPU optimization of a few algorithms (Requires DX11 GPU)
Changes in version 1.35  (2013-04-07):
  It is now possible to abort the processing for some of the slow operations
  Multi core optimization of Update with expression  
  Enable Fade also after mask selection changes
  Improved frequency domain filter
  Smart select brush
  Plugin operations can be applied to selection only
  Fixed bug in grayscale JPEG loading
  Allow mouse pan and zoom while any filter dialog is open
  Band-stop filter option in smooth dialog
Changes in version 1.34  (2012-02-18):
  Saturation and vibrance adjustment 
  Color selection method in Fade to dialog to apply any operation to areas of specific colors only  
  Improved edge detection in Increase Local Contrast
  Show golden ration in selection option
  Improved image quality from Wiener resize algorithm on color images
  Bugfixes in PNG and TIFF readers and texture synthesis
  Alpha blending support in Fade dialog (when suitable alpha map is loaded)
Changes in version 1.33  (2011-03-12):
  Adaptive color noise resolution bugfix
  New grow/shrink brush
  Warp brush
  Improved sharpen brush
  Interpolate pen movement brush option
  Covariance matrix computation corrected
  Imporved icon import
  Improved sharpening of noisy images
  Segmnentation fill feature for counting objects in an image 
Changes in version 1.32  (2010-08-18):
  Faster and better quality JPEG reading
  Correct rotation of CR2 raw images
  Fixed bug in Fourier transform filter
  Replace color under Color balance HSI color space
  Spot healing brush (uses the "Neighborhood" method from the texture synthesis dialog)
  Color curve brush
  Weighted combine method
  Auto gradient mode in Increase local contrast dialog
  Tool dialog positions stored
  Improved multi-core CPU support
  Most of the Color mapper functionality integrated into the Color balance dialog
  New JasPerLib.dll for support for more JP2 and PPM files
Changes in version 1.31  (2009-09-16):
  Custom Pixel count expression in Color mapper
  HTML color code shown in pen color hint 
  Selection boundaries fade method
  Improved smooth brush
  Lens distortion and lateral chromatic aberration correction
  CR2 raw image file preview
  Gradient fade method
  New Increase Local Contrast method producing better colors
  Selection from color dialog
Changes in version 1.30  (2008-08-28):
  Hold Alt and Ctrl while using arrow keys to modify selection pixel by pixel
  Absolute value option in Highpass filter
  Smooth image zoom for display scale <100% (to enable, turn off Fast image zoom option)
  Improved Increase local contrast feature
  Reduced memory requirements for processing large images
  Improved Color balance feature
  Adjust white balance
Changes in version 1.29  (2008-03-16):
  A few bugfixes (thanks to your bug reports!)
  Improved Vista support
  Update with expression feature (default expression is lens distortion correction)
  ICO file import bugfix
  User expression in Combine images remembers last used expressions
  Menus reorganized (I hope you can get used to it - otherwise just type commands on the keyboard)
  Lightest/Darkest only option in Fade opacity dialog
  Set image gamma option for proper interpolation in resize, rotate, smooth, invert and convert to grayscale  
  Image window can be dragged to e.g. Skype or e-mail messages for easy sending  
Changes in version 1.28  (2007-10-02):
  EXIF data in JPEG files retained after save
  Retinex based increase local contrast filter
  Improved handling of alpha and gamma values in PNG files
  Display value of pixel under cursor in toolbar
  Improved handling of very large images
  New bug reporting system
Changes in version 1.27  (2006-12-30):
  Improved IIR/circular/Gaussian smoothing filter 
  Color balance and saturation can now be changed for the selection alone
  New improved adaptive noise reduction filter
  New menu shortcut system: Just begin typing the name of the menu item or press F10 
  Fixed bug in Wiener resizing algorithm causing random noise in the result
  Improved performance on multi core CPUs
Changes in version 1.26  (2006-06-08):
  Improved palette editor
  Improved color mapper
  Better handling of large images
  General speed optimization for dual/multi core CPUs 
  Ctrl+mouse scroll will zoom in/out
  Middle mouse button sets "move view" mode  
  New text translation system with plain text language files
Changes in version 1.25  (2006-01-08):
  Read Lab/YCbCr color JPEG 2000 files
  Read CMYK color JPEG files
  Support for more BMP files
  Vertical/horizontal option in smooth and highpass filters
  Left-button pen color now selected when palette editor opens
  Auto grow selection feature (Ctrl +) expanding the selection by 1 pixel in all directions
Changes in version 1.24  (2005-08-18):
  Fill tool can now do anti-aliasing (feather)
  Repeat image feature
  New plugin command: cmdRefreshChildren = 9
  New texture synthesis option
  Improved exposure control in the Color mapper
  Create selection mask from grayscale image
Changes in version 1.23  (2005-05-31):
  JPEG-2000 compression quality preview (File format options dialog)
  Print dialog updated
  Retouch tools (pen, clone, push, smooth brush, sharpen brush)
  Non-rectangular selections
  Apply filters to selection only
  Repeat image feature
  XP theme support
Changes in version 1.22.3  (2005-02-15):
  JPEG-2000 codec 35% faster
Changes in version 1.22.2  (2005-01-23):
  Updated JPEG-2000 reader
  Full screen mode (F9)
  Black/white point in Color Mapper displays how many pixels are lost in saturation
Changes in version 1.22  (2004-12-23):
  Problem with graph plotter in expression evaluator fixed
  Non-latin characters in translation supported
  Frequency domain filter changed to logarithmic scale
  Auto shrink selection feature (Ctrl -) for selecting objects in an otherwise blank picture
  "Adjust levels" renamed to "Color balance"
  "Show original" and "Reset" buttons in Color Mapper, Saturation,Color balance and other dialogs
  New Adaptive smooth/sharpen filter replaces the old selective smooth filter
  User interface updates
  Improved TIFF support
Changes in version 1.21  (2004-05-31):
  New high quality image enlargement method (super-resolution by Wiener filter)
  Better handling of large fonts (120 DPI) screen setting
  Rectangle selection can be locked to specific aspect ratio
Changes in version 1.20  (2004-02-16):
  Minor bugfixes
  F8 now changes between mouse zoom and mouse select
  Improved deconvolution kernel estimation
  Color mapper dialog updated
Changes in version 1.19  (2003-12-29):
  Problem with large JPEG 2000 images and temporary files fixed
  Expression evaluator precision and plot axis auto scaling improved
  Improved de-interlacing method
  MNG image file support
  Fixed mouse selection bug
  Language module
Changes in version 1.18  (2003-09-13):
  Blind deconvolution
  16 bit grayscale PNGs and TIFFs now read to floating point map
  Split planes color correction improved
  Filtering of floating point map with filter from file
  Frequency domain filter improved + bugfix
  Expression evaluator improved
  More than 60 new filters (click Load in the User defined filter dialog)
  More than 20 new palettes
Changes in version 1.17.3  (2003-07-27):
  Frequency domain filter improved
  Better image resize quality
  Paste to selection improved
  24 to 8 bit conversion improved
  Local histogram equalization quality improved
  Option to register image file formats
  More advanced sharpening method
Changes in version 1.17  (2003-06-22):
  Image processing plugin system
  Texture synthesis by averaging
  Copy/paste of floating point maps (can be used as simple undo feature)
  Pixel drawing feature
Changes in version 1.15  (2003-05-24):
  Improved PCA and reconstruction from components
  Paste to selection in insert menu
  Lossless PNG compression ratio improved by about 20%
  Lossy PNG compression introduced
  Writing of large JPEG files (>1 MB) fixed
  Test button in file format options for lossy JPEG and PNG
  Deconvolution filter can be specified in a Matlab, text or MAP file
  Open and save dialogs updated
  EMF/WMF reading fixed
  Texture synthesis improved
Changes in version 1.14  (2003-04-17):
  Three different methods for automatic color correction
  Feature list in help menu
  Some bugfixes
  Texture synthesis (see example page)
  Mouse selection editing
  Added an installer wizard version
  Added help/tutorial file, in CHM format.
Changes in version 1.13  (2003-03-31):
  Open, save and color mapper dialogs improved
  The amount of smoothing can be specified in "Smooth image"
  Highpass filter in "Edge detection" menu
Changes in version 1.12  (2003-03-08):
  Restoration by deconvolution (see example page)
  JPEG desired file size specification
  Improved help
  Filtering of float maps
  Color mapper can now work on luminance plane (Y in YCbCr)
Changes in version 1.11  (2003-02-13):
  JPEG 2000 support improved
  Reading of Sun Rasterfiles (*.ras)
  Image resizing using spline interpolation for better quality
  PNG gamma, transparency, and alpha channel handling improved
  Expression evaluator improved
  Lab color space support
  Morphological operations on color images
Changes in version 1.10  (2003-01-01):
  Image warping
Changes in version 1.09  (2002-07-01):
  Auto adjust black/white point
  Fixed bug in combine grayscale images
  Fixed bug in resize
  Improved printing
Changes in version 1.08  (2002-01-16):
  Lapp filter now preserve colors
  Windows ICO and CUR file support
  Frequency domain filter
  Selective smooth filter
  Rotate grayscale bug fixed
Changes in version 1.07  (2001-09-03):
  Improved JPEG 2000 support
  Expression evaluator in all edit boxes
  Improved color mapper
  Improved combine images
  Median filter optimized
Changes in version 1.06  (2001-08-16):
  Adaptive noise filter improved
  JPEG 2000 support
Changes in version 1.04  (2001-05-15):
  Adaptive noise filter
  Auto color correction
  More keyboard shortcuts
Changes in version 1.03  (2001-04-23):
  Auto window resizing
  Statistics map
  JPEG filter
Changes in version 1.02  (2001-03-18):
  PNG transparency bug corrected
  More keyboard shortcuts
  Support for loading multiple files
Changes in version 1.01  (2001-03-15):
  PNG transparency supported
  