Include a Other Software section in Help file
[geeqie.git] / src / similar.c
index 316dfa1..ef18859 100644 (file)
@@ -1,20 +1,31 @@
 /*
- * Geeqie
- * (C) 2004 John Ellis
- * Copyright (C) 2008 - 2012 The Geeqie Team
+ * Copyright (C) 2004 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
  *
  * Author: John Ellis
  *
- * This software is released under the GNU General Public License (GNU GPL).
- * Please read the included file COPYING for more information.
- * This software comes with no warranty of any kind, use at your own risk!
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 
 #include "main.h"
 #include "similar.h"
 
-/*
+/**
+ * @file
+ * 
  * These functions are intended to find images with similar color content. For
  * example when an image was saved at different compression levels or dimensions
  * (scaled down/up) the contents are similar, but these files do not match by file
@@ -31,9 +42,9 @@
  * of the two images. (for this, simple comparisons are used, basically the return
  * is an average of the corresponding array differences)
  *
- * for image_sim_compare(), the return is 0.0 to 1.0:
- *  1.0 for exact matches (an image is compared to itself)
- *  0.0 for exact opposite images (compare an all black to an all white image)
+ * for image_sim_compare(), the return is 0.0 to 1.0: \n
+ *  1.0 for exact matches (an image is compared to itself) \n
+ *  0.0 for exact opposite images (compare an all black to an all white image) \n
  * generally only a match of > 0.85 are significant at all, and >.95 is useful to
  * find images that have been re-saved to other formats, dimensions, or compression.
  */
@@ -348,8 +359,7 @@ gdouble image_sim_compare_transfo(ImageSimilarityData *a, ImageSimilarityData *b
 
 gdouble image_sim_compare(ImageSimilarityData *a, ImageSimilarityData *b)
 {
-       gboolean test_transformations = TRUE; /* could be a function parameter */
-       gint max_t = (test_transformations ? 8 : 1);
+       gint max_t = (options->rot_invariant_sim ? 8 : 1);
 
        gint t;
        gdouble score, max_score = 0;
@@ -407,8 +417,7 @@ gdouble image_sim_compare_fast_transfo(ImageSimilarityData *a, ImageSimilarityDa
  */
 gdouble image_sim_compare_fast(ImageSimilarityData *a, ImageSimilarityData *b, gdouble min)
 {
-       gboolean test_transformations = TRUE; /* could be a function parameter */
-       gint max_t = (test_transformations ? 8 : 1);
+       gint max_t = (options->rot_invariant_sim ? 8 : 1);
 
        gint t;
        gdouble score, max_score = 0;