Minor update.
[pysvrt.git] / svrt_generator.h
1
2 /*
3  *  svrt is the ``Synthetic Visual Reasoning Test'', an image
4  *  generator for evaluating classification performance of machine
5  *  learning systems, humans and primates.
6  *
7  *  Copyright (c) 2017 Idiap Research Institute, http://www.idiap.ch/
8  *  Written by Francois Fleuret <francois.fleuret@idiap.ch>
9  *
10  *  This file is part of svrt.
11  *
12  *  svrt is free software: you can redistribute it and/or modify it
13  *  under the terms of the GNU General Public License version 3 as
14  *  published by the Free Software Foundation.
15  *
16  *  svrt is distributed in the hope that it will be useful, but
17  *  WITHOUT ANY WARRANTY; without even the implied warranty of
18  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  *  General Public License for more details.
20  *
21  *  You should have received a copy of the GNU General Public License
22  *  along with svrt.  If not, see <http://www.gnu.org/licenses/>.
23  *
24  */
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 struct VignetteSet {
31   int n_problem;
32   int nb_vignettes;
33   int width;
34   int height;
35   unsigned char *data;
36 };
37
38   void svrt_generate_vignettes(int n_problem, int nb_vignettes, long *labels,
39                                struct VignetteSet *result);
40
41 #ifdef __cplusplus
42 }
43 #endif