Make clang build as silent as possible
[fvs_assignment_project.git] / fvs_main.c
blob5c7677a79257465cee4b433505b79c3a234a39db
1 /*########################################################################
3 * Copyright(C) 2002-2012. All Rights Reserved.
5 * Authors: Shivang Patel
6 * Jaap de Haan(jdh)
7 * Peter Tummeltshammer(petertu)
8 * Matthias Wenzl (mw)
10 * Changes: jdh -> Added support for ImageMagick that enables
11 * to export files to more than 40 formats.
12 * Changes: petertu -> Modified import.c and export.c
13 * -> added function ImageEnhanceThinned()
14 * Changes: mw -> Changed deprecated and adapted for dvp lu
16 * This is free software; you can redistribute it and/or modify it under
17 * the terms of the GNU General Public License as published by the Free
18 * Software Foundation; either version 2, or (at your option) any later
19 * version.
21 * This is distributed in the hope that it will be useful, but WITHOUT
22 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 * for more details.
26 * You should have received a copy of the GNU General Public License with
27 * the fvs source package as the
28 * file COPYING. If not, write to the Free Software Foundation, Inc.,
29 * 59 Temple Place - Suite 330, Boston, MA
30 * 02111-1307, USA.
31 ########################################################################*/
33 #include "fvs.h"
35 int main(int argc, char *argv[])
37 /* check if all parameters are there */
38 if (argc < 3)
40 printf("Usage:\n %s base_image input_images...\n", argv[0]);
41 return -1;
44 int numberOfFiles = argc - 1;
45 char **listOfFiles = argv + 1;
46 FvsFloat_t *goodness = calculateGoodnesses(numberOfFiles, (const char**)listOfFiles);
48 for (int i = 1; i < numberOfFiles; ++i)
50 fprintf(stdout, "Matching: %s %s = %3.2f\n", listOfFiles[0], listOfFiles[i], goodness[i]*100);
53 free(goodness);
54 return 0;