--- a/ChangeLog
+++ b/ChangeLog
@@ -1,70 +1,453 @@
-2008-02-01  Pablo d'Angelo
-
-    * MatchKeys.c: Corrected possible buffer overflow when many images
-    are used.
-
-2008-01-14  Pablo d'Angelo
-    
-    * CMakeLists.txt, CMakeModules: Added CMake based build system, only
-    tested on windows so far.
-
-    * *.c *.h: fix source for compilation with windows (mainly adding
-    a lot of explicit casts).
-
-2008-01-02  Pablo d'Angelo
-
-    * Makefile, AutoPanoSift.h, DisplayImage.c: build against pano13
-    by default.
-
-2007-04-18  Alexandre Duret-Lutz  <adl@gnu.org>
-
-    * LoweDetector.c (LoweFeatureDetector_DetectFeaturesDownscaled): Do
-    not erase img here, as it usually belong to the octave...
-    * ScaleSpace.c (OctavePyramid_BuildOctaves): ... erase it here,
-    if it doesn't.
-    (DScaleSpace_delete): No point in cleaning memory before freeing it.
-    * DisplayImage.c (DisplayImage_delete): Free self.
-    * KeypointXML.c (KeypointXMLList_new0): Supply the keypoints'
-    destructor.
-    * AutoPano.c (main): Free the result of Component_ToString.
-    (WritePTOFile): Free the imageNameTab hash and resolutions list.
-    (RefineKeypoints): Delete the patches after they have been used.
-    (ExtractKeypoints): Delete the temporary feature detector instance.
-    * MatchKeys.c (MultiMatch_new0): Do not allocate
-    filteredMatchSets and globalKeyKD, it's always done later before
-    they are filled.
-
-
-2007-04-16  Alexandre Duret-Lutz  <adl@gnu.org>
-
-    * ScaleSpace.c (DScaleSpace_GenerateKeypointSingle): Use calloc()
-    instead of malloc() to allocate the orientation histogram as all
-    bins may not get filled later (and they get filled with "+=").
-    (Keypoint_CreateVector): Use calloc() instead of malloc() to
-    allocate the feature vector.  From what I understand,
-    DScaleSpace_CreateDescriptors() may not fill it entirely and
-    the normalization of DScaleSpace_CapAndNormalizeFV() needs 0.0.
-    * DisplayImage.c (DisplayImage_Carve): Initialize the result image
-    with code duplicated from DisplayImage_ScaleSimple(), otherwise
-    result->dest is NULL and the code crashes.
-    * MatchKeys.c (MultiMatch_TwoPatchMatch):
-    MultiMatch_LoadKeysetsFromMemory() acquires the keysets, so do not
-    free this list afterwards.
-    (MultiMatch_LoadKeysets): Error out if keypoints could not be read.
-    * ImageMatchModel.c (MatchDriver_FilterMatchSet): Erase the
-    returned model from the list of models, so it doesn't get freed.
-    (ImageMatchModel_FittingErrorSingle): Delete the X and Xexptected
-    matrices.
-    * KeypointXML.c (KeypointN_clone): Allocate the descriptor
-    for the instance being created, not the one being copied.
-    * BondBall.c (BondBall_ToString): Do not output all decimals or
-    it may overflow the allocated string.
-    (BondBall_StretchImages): Print xs as an integer.
-    * Transform.c (AffineTransform2D_BuildTransformFromTwoPairs): Return
-    NULL if A2 and B2 are equal, do not abort.  ImageMatchModel_FitModel()
-    expects this.
-    * Makefile ($(OBJECTS)): All objects depend on AutoPanoSift.h.
-    * AutoPano.c (RefineKeypoints): Delete old images.
-    * LoweDetector.c (LoweFeatureDetector_DetectFeaturesDownscaled):
-    Delete the imagemap.
-
+2008-04-24 21:00  brunopostle
+
+	* APSCpp/CMakeLists.txt, CMakeLists.txt: Don't try and install a
+	  file called /usr/README
+
+2008-03-09 18:39  tksharpless
+
+	* APSCpp/APSCpp_main.c: APSCpp/APSCpp_main.c replace <ctime> with
+	  <time.h>; fix Time_t casting error.
+
+2008-03-08 22:04  tksharpless
+
+	* APSCpp/ANNkd_wrap.cpp: ooops, forgot to add ANNkd_wrap.cpp. Here
+	  'tis
+
+2008-03-08 21:31  tksharpless
+
+	* APSCpp/APSCpp.c, APSCpp/APSCpp.cpp, APSCpp/APSCpp_main.c,
+	  APSCpp/APSCpp_main.cpp, APSCpp/CMakeLists.txt: Repackaged ANN
+	  kd-tree in a C - callable C++ wrapper.
+	  Replaced the .cpp versions of APSCpp and APSCpp_main witn .c
+	  versions.
+	  This lets Nowozin's code be compiled as C++ on Windows and as C
+	  elsewhere -- the only way that seems to work.
+	  Adjusted APSCpp/CMakeLists.txt accordingly.
+
+2008-03-08 16:16  tksharpless
+
+	* APSCpp/APSCpp.cpp, APSCpp/APSCpp_main.cpp, AutoPanoSift.h,
+	  Utils.c: fixes for C++ compile errors on Linux
+
+2008-03-08 14:55  tksharpless
+
+	* APSCpp/APSCpp.cpp: Changed match acceptance policy to eliminate
+	  duplicate control points -- seems to give better alignments, and
+	  slighly faster too.
+
+2008-03-07 18:21  tksharpless
+
+	* APSCpp/ANN, APSCpp/ANN/ANN.cpp, APSCpp/ANN/ANN.h,
+	  APSCpp/ANN/ANNperf.h, APSCpp/ANN/ANNx.h,
+	  APSCpp/ANN/CMakeLists.txt, APSCpp/ANN/Copyright.txt,
+	  APSCpp/ANN/License.txt, APSCpp/ANN/ReadMe.txt,
+	  APSCpp/ANN/bd_fix_rad_search.cpp, APSCpp/ANN/bd_pr_search.cpp,
+	  APSCpp/ANN/bd_search.cpp, APSCpp/ANN/bd_tree.cpp,
+	  APSCpp/ANN/bd_tree.h, APSCpp/ANN/brute.cpp,
+	  APSCpp/ANN/kd_dump.cpp, APSCpp/ANN/kd_fix_rad_search.cpp,
+	  APSCpp/ANN/kd_fix_rad_search.h, APSCpp/ANN/kd_pr_search.cpp,
+	  APSCpp/ANN/kd_pr_search.h, APSCpp/ANN/kd_search.cpp,
+	  APSCpp/ANN/kd_search.h, APSCpp/ANN/kd_split.cpp,
+	  APSCpp/ANN/kd_split.h, APSCpp/ANN/kd_tree.cpp,
+	  APSCpp/ANN/kd_tree.h, APSCpp/ANN/kd_util.cpp,
+	  APSCpp/ANN/kd_util.h, APSCpp/ANN/perf.cpp, APSCpp/ANN/pr_queue.h,
+	  APSCpp/ANN/pr_queue_k.h, APSCpp/APSCpp.cpp,
+	  APSCpp/APSCpp_main.cpp: add ANN subdir
+
+2008-03-07 18:18  tksharpless
+
+	* APSCpp/APSCpp.c, APSCpp/APSCpp_main.c, APSCpp/CMakeLists.txt,
+	  APSCpp/HermiteSpline.h, APSCpp/README-autopano-sift-c.txt,
+	  APSCpp/saInterp.h, APSCpp/saRemap.c, APSCpp/sphereAlign.h,
+	  AutoPanoSift.h, CMakeLists.txt, MatchKeys.c, README.1ST:
+	  autopano-sift-c uses faster ANN kd-tree by default; also better
+	  defaults for maxdim and ransac.
+	  Added ANN source diredtory (NOTE: custom ANN.h)
+	  Cleaned up CMake scripts ==> Only tested in Windows <==
+	  Assigned package version number 2.5.0
+
+2008-03-04 17:14  tksharpless
+
+	* APSCpp/APSCpp_main.c: Made command line error handling more
+	  reliable and informative
+
+2008-03-03 09:10  dangelo
+
+	* APSCpp/sphereAlign.h, AutoPanoSift.h: Enable compilation with gcc
+
+2008-03-03 09:06  dangelo
+
+	* config.h.in.cmake: Added #define HAVE_MALLOC 1 on apple as this
+	  seems to fix some problem with realloc
+
+2008-03-03 09:04  dangelo
+
+	* Makefile: removed obselete makefile
+
+2008-03-03 03:56  tksharpless
+
+	* MatchKeys.c: adding older version with Seb's fix
+
+2008-03-03 03:55  tksharpless
+
+	* MatchKeys.c: removing current head rev
+
+2008-03-03 03:37  tksharpless
+
+	* APSCpp/APSCpp_main.c: correct a messsage about output file
+
+2008-03-03 03:21  tksharpless
+
+	* APSCpp/CMakeLists.txt: Try again to add APSCpp/CMakeLists.txt
+
+2008-03-03 02:45  tksharpless
+
+	* APSCpp/cmakelists.txt: change name of APSCpp/CMakeLists.txt to
+	  correct case
+
+2008-03-01 02:58  tksharpless
+
+	* APSCpp, APSCpp/APSCpp.c, APSCpp/APSCpp_main.c, APSCpp/CamLens.c,
+	  APSCpp/HermiteSpline.c, APSCpp/HermiteSpline.h,
+	  APSCpp/README-autopano-sift-c.txt, APSCpp/cmakelists.txt,
+	  APSCpp/saInterp.c, APSCpp/saInterp.h, APSCpp/saRemap.c,
+	  APSCpp/sphereAlign.h, AutoPanoSift.h, CMakeLists.txt,
+	  DisplayImage.c, ImageMap.c, LoweDetector.c, ScaleSpace.c,
+	  Utils.c: Major extension of APSC, now renamed autopano-sift-c,
+	  adds stereographic projection and reduces memory demand.
+	  Source is in subdir APSCpp. Some bugfixes in libsift in addition
+	  to the change from double to float for image maps, which almost
+	  doubles useful image size for generatekeys as well as
+	  autopano-sift-c.
+
+2008-03-01 01:45  tksharpless
+
+	* MatchKeys.c: Rewrote Component_ToString to eliminate 2 bugs (one
+	  serious, leading to seg faults). This fix replaces Seb's recent
+	  fix of the same major bug, because I am too tired to merge them
+	  properly.
+
+2008-02-22 21:01  tksharpless
+
+	* ArrayList.c: Undoing previous commit -- I just didn't understand
+	  how
+	  ArrayList was supposed to work -- Sorry, TKS
+
+2008-02-21 12:41  tksharpless
+
+	* ArrayList.c: ArrayList_new() was initializing list full instead
+	  of empty, leaving (dim) null entries at start of list.
+
+2008-02-20 22:57  brunopostle
+
+	* CMakeLists.txt: Don't put compiled binary in tarball
+
+2008-02-17 23:33  dangelo
+
+	* CMakeLists.txt, config.h.in.cmake: #define HAVE_MALLOC on OSX, it
+	  seems to fix an out of memory situation due to the use of
+	  realloc.
+
+2008-02-15 22:44  dangelo
+
+	* CMakeLists.txt: Renamed APSC to autopano-sift-c, to match the
+	  naming style of most other tools shipped with hugin.
+
+2008-02-08 19:48  sebpz
+
+	* APSCmain.c: Default 800 for maxdim
+
+2008-02-07 20:58  sebpz
+
+	* MatchKeys.c: Fix for Seg Fault in Component_ToString
+
+2008-02-07 16:02  tksharpless
+
+	* APSCmain.c, AutoPano.c: Made the "-" option work. Anyone who uses
+	  it must donate 1 Euro to the hugin project :)
+
+2008-02-07 01:44  tksharpless
+
+	* APSCmain.c, CMakeLists.txt, Utils.c: Add APSC, which combines
+	  generatekeys and autopano in one executable.
+	  
+	  fflush stdout writes in utils.c
+
+2008-02-05 18:41  brunopostle
+
+	* autopano-c-complete: Perl version of autopano-c-complete, should
+	  be 100% compatible
+
+2008-02-05 02:13  tksharpless
+
+	* CMakeLists.txt: installs vbs script on Windows, else shell
+	  script.
+
+2008-02-05 02:00  tksharpless
+
+	* autopano-c-complete.vbs: Finds the autopano executables if they
+	  are in a reasonable place; if not, quits with explicit error.
+
+2008-02-03 20:39  yuv
+
+	* CMakeLists.txt: INSTALL target for Windows in build directory
+	  instead of "C:\Program Files", for SDK integration
+
+2008-02-03 18:51  yuv
+
+	* autopano-c-complete.vbs: Pete Holzmann added wildcard
+	  functionality and improved output
+
+2008-02-02 19:50  sebpz
+
+	* KeypointXML.c, MatchKeys.c, autopano-c-complete.sh: Adding gz
+	  output for keyfiles
+
+2008-02-02 17:31  sebpz
+
+	* Makefile, autopano-c-complete.sh: Reverting previous change -
+	  gzip not supported by autopano
+
+2008-02-02 17:09  sebpz
+
+	* Makefile, autopano-c-complete.sh: Create gzip compressed key
+	  files
+
+2008-02-01 16:44  dangelo
+
+	* ChangeLog, MatchKeys.c: Corrected possible crash when many images
+	  are used.
+
+2008-02-01 04:39  yuv
+
+	* autopano-c-complete.vbs: added feedback-loop to avoid concurrent
+	  execution of multiple instances of generatekeys
+
+2008-02-01 04:18  yuv
+
+	* autopano-c-complete.vbs: corrected for space in path
+
+2008-01-31 02:05  yuv
+
+	* autopano-c-complete.vbs: Windows translation of
+	  autopano-c-complete.sh
+
+2008-01-29 13:54  brunopostle
+
+	* CMakeLists.txt: Revert and fix previous commit
+
+2008-01-29 12:55  brunopostle
+
+	* CMakeLists.txt: Don't install duplicate man pages
+
+2008-01-29 12:20  brunopostle
+
+	* CMakeLists.txt: autopano-c-complete.sh needs to be installed
+	  executable
+
+2008-01-29 11:49  brunopostle
+
+	* CMakeLists.txt, CMakeModules/FindJPEG.cmake,
+	  CMakeModules/FindLibXml2.cmake, CMakeModules/FindPANO13.cmake,
+	  CMakeModules/FindPNG.cmake, CMakeModules/FindTIFF.cmake,
+	  CMakeModules/FindZLIB.cmake, config.h.in.cmake: Fix line endings,
+	  no other changes
+
+2008-01-29 11:44  brunopostle
+
+	* CMakeLists.txt: Don't put a generated Makefile in the tarball
+
+2008-01-29 11:40  brunopostle
+
+	* CMakeLists.txt: Don't put the compiled binaries in the tarball
+
+2008-01-29 08:22  dangelo
+
+	* CMakeLists.txt: unified libxml config on windows and unix
+
+2008-01-29 08:08  dangelo
+
+	* CMakeLists.txt: remove MY prefix leftover from some testing.
+
+2008-01-29 04:07  tksharpless
+
+	* CMakeLists.txt: fixed bad Unix compiler flag from previous fix
+	  (my fault)
+
+2008-01-28 20:59  tksharpless
+
+	* CMakeLists.txt: changed root cmakelists.txt so it works on
+	  Windows with the sdk; tried not to break Linux build but this is
+	  not verified.
+
+2008-01-28 00:15  btownshend
+
+	* DisplayImage.c: Removed unused variable declaration
+
+2008-01-28 00:14  btownshend
+
+	* DisplayImage.c: Fixed handling of 16-bit files
+	  Fixed memory overrun during malloc of images
+
+2008-01-15 07:19  dangelo
+
+	* AutoPanoSift.h, CMakeLists.txt, KeypointXML.c: Fixed compilation
+	  with gcc
+
+2008-01-15 06:53  dangelo
+
+	* AreaFilter.c, ArrayList.c, AutoPano.c, AutoPanoSift.h,
+	  BondBall.c, CMakeLists.txt, CMakeModules,
+	  CMakeModules/FindJPEG.cmake, CMakeModules/FindLibXml2.cmake,
+	  CMakeModules/FindLibraryWithDebug.cmake,
+	  CMakeModules/FindPANO13.cmake, CMakeModules/FindPNG.cmake,
+	  CMakeModules/FindPackageHandleStandardArgs.cmake,
+	  CMakeModules/FindTIFF.cmake, CMakeModules/FindZLIB.cmake,
+	  ChangeLog, GenerateKeys.c, ImageMatchModel.c, KDTree.c,
+	  KeypointXML.c, LoweDetector.c, MatchKeys.c, RANSAC.c, README.1ST,
+	  ScaleSpace.c, TestArray.c, TestKDTree.c, TestRandom.c, Utils.c,
+	  autopano-c-complete.sh, config.h.in.cmake: Added CMake build
+	  system and fixed source, so that it compiles with MSVC.
+
+2008-01-02 22:25  brunopostle
+
+	* Makefile: Allow setting PREFIX and CFLAGS
+
+2008-01-02 22:23  brunopostle
+
+	* doc/autopano-c-complete.1, doc/autopano-c-complete.txt,
+	  doc/autopano-complete.1, doc/autopano-complete.txt,
+	  doc/autopano-sift-c.7, doc/autopano-sift-c.txt,
+	  doc/autopano-sift.7, doc/autopano-sift.txt, doc/autopanog.1,
+	  doc/autopanog.txt, doc/template.1: man page cleanup and rename
+
+2008-01-02 14:56  dangelo
+
+	* ChangeLog:
+
+2008-01-02 14:54  dangelo
+
+	* AutoPanoSift.h, DisplayImage.c, Makefile: build against pano13 by
+	  default
+
+2008-01-02 09:37  brunopostle
+
+	* Makefile: install target typo fix (Yuval Levy)
+
+2007-12-30 22:21  brunopostle
+
+	* Transform.c: Apply fix from bug #1808333 seems to work for me.
+	  https://sourceforge.net/tracker/index.php?func=detail&aid=1808333&group_id=77506&atid=550441
+
+2007-12-30 22:15  brunopostle
+
+	* autopano-c-complete.sh: Fix bug with directories containing
+	  spaces
+
+2007-07-20 17:17  brunopostle
+
+	* Makefile: Create man directories
+
+2007-07-20 16:53  brunopostle
+
+	* Makefile: Add man pages to install target
+
+2007-07-19 17:03  dangelo
+
+	* Makefile: added a simple install target
+
+2007-05-29 23:51  dangelo
+
+	* AreaFilter.c, ArrayList.c, AutoPano.c, AutoPanoSift.h,
+	  BondBall.c, ChangeLog, DisplayImage.c, GaussianConvolution.c,
+	  GenerateKeys.c, HashTable.c, ImageMap.c, ImageMatchModel.c,
+	  KDTree.c, KeypointXML.c, LICENSE, LoweDetector.c, Makefile,
+	  MatchKeys.c, RANSAC.c, README, README.1ST, Random.c,
+	  ScaleSpace.c, SimpleMatrix.c, TestArray.c, TestKDTree.c,
+	  TestRandom.c, Transform.c, Utils.c, autopano-c-complete.sh, doc:
+	  moved files to trunk directory
+
+2007-05-29 23:49  dangelo
+
+	* autopano-sift-C: moved to trunk directory
+
+2007-04-18 20:16  brunopostle
+
+	* autopano-sift-C, autopano-sift-C/.cvsignore,
+	  autopano-sift-C/Makefile, autopano-sift-C/autopano-c-complete.sh:
+	  add autopano-c-complete.sh script
+
+2007-04-18 16:33  dangelo
+
+	* autopano-sift-C/AutoPano.c, autopano-sift-C/BondBall.c,
+	  autopano-sift-C/ChangeLog, autopano-sift-C/DisplayImage.c,
+	  autopano-sift-C/ImageMatchModel.c, autopano-sift-C/KeypointXML.c,
+	  autopano-sift-C/LoweDetector.c, autopano-sift-C/Makefile,
+	  autopano-sift-C/MatchKeys.c, autopano-sift-C/ScaleSpace.c,
+	  autopano-sift-C/Transform.c: applied patch by Alexandre
+	  Duret-Lutz
+
+2007-02-05 23:52  brunopostle
+
+	* autopano-sift-C/Makefile: rewrite dist target
+
+2007-02-02 21:41  dangelo
+
+	* autopano-sift-C/AutoPano.c, autopano-sift-C/MatchKeys.c: applied
+	  patch
+
+2007-02-02 21:14  dangelo
+
+	* autopano-sift-C/AutoPanoSift.h, autopano-sift-C/Makefile: find
+	  include files in standart directories
+
+2007-02-02 21:04  dangelo
+
+	* autopano-sift-C/LoweDetector.c: added debug statement
+
+2007-02-02 21:04  dangelo
+
+	* autopano-sift-C/ImageMap.c: ups
+
+2007-02-02 21:03  dangelo
+
+	* autopano-sift-C/ImageMap.c: fixed minimum search
+
+2007-01-23 22:11  brunopostle
+
+	* autopano-sift-C/Makefile: Minor tweak to build on a system with
+	  pano12 installed
+
+2006-08-21 06:35  dangelo
+
+	* autopano-sift-C, autopano-sift-C/AreaFilter.c,
+	  autopano-sift-C/ArrayList.c, autopano-sift-C/AutoPano.c,
+	  autopano-sift-C/AutoPanoSift.h, autopano-sift-C/BondBall.c,
+	  autopano-sift-C/DisplayImage.c,
+	  autopano-sift-C/GaussianConvolution.c,
+	  autopano-sift-C/GenerateKeys.c, autopano-sift-C/HashTable.c,
+	  autopano-sift-C/ImageMap.c, autopano-sift-C/ImageMatchModel.c,
+	  autopano-sift-C/KDTree.c, autopano-sift-C/KeypointXML.c,
+	  autopano-sift-C/LICENSE, autopano-sift-C/LoweDetector.c,
+	  autopano-sift-C/Makefile, autopano-sift-C/MatchKeys.c,
+	  autopano-sift-C/RANSAC.c, autopano-sift-C/README,
+	  autopano-sift-C/README.1ST, autopano-sift-C/Random.c,
+	  autopano-sift-C/ScaleSpace.c, autopano-sift-C/SimpleMatrix.c,
+	  autopano-sift-C/TestArray.c, autopano-sift-C/TestKDTree.c,
+	  autopano-sift-C/TestRandom.c, autopano-sift-C/Transform.c,
+	  autopano-sift-C/Utils.c, autopano-sift-C/doc,
+	  autopano-sift-C/doc/autopano-complete.1,
+	  autopano-sift-C/doc/autopano-complete.txt,
+	  autopano-sift-C/doc/autopano-sift.7,
+	  autopano-sift-C/doc/autopano-sift.txt,
+	  autopano-sift-C/doc/autopano.1, autopano-sift-C/doc/autopano.txt,
+	  autopano-sift-C/doc/autopanog.1,
+	  autopano-sift-C/doc/autopanog.txt,
+	  autopano-sift-C/doc/generatekeys.1,
+	  autopano-sift-C/doc/generatekeys.txt,
+	  autopano-sift-C/doc/template.1: Initial revision
+
+2006-08-21 06:35  
+
+	* .: New repository initialized by cvs2svn.
+