Update.
[flatland.git] / flatland.h
index 9a9247a..2c58a5c 100644 (file)
@@ -1,14 +1,30 @@
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+/*
 
-void fl_generate_sequences(int nb_sequences,
-                           int nb_images_per_sequence,
-                           int width, int height,
-                           unsigned char *output);
+   flatland is a simple 2d physical simulator
 
-#ifdef __cplusplus
-}
-#endif
+   Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/
+   Written by Francois Fleuret <francois.fleuret@idiap.ch>
 
+   This file is part of flatland
+
+   flatland is free software: you can redistribute it and/or modify it
+   under the terms of the GNU General Public License version 3 as
+   published by the Free Software Foundation.
+
+   flatland 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 flatland.  If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+THByteTensor *generate_sequence(int pulling,
+                                long nb_sequences,
+                                long nb_images,
+                                long image_height, long image_width,
+                                long nb_shapes,
+                                int random_shape_size, int random_colors);