00001 /* --------------------------------------------------------------------------- 00002 Phission : 00003 Realtime Vision Processing System 00004 00005 Copyright (C) 2003 Philip D.S. Thoren (pthoren@cs.uml.edu) 00006 University of Massachusetts at Lowell, 00007 Laboratory for Artificial Intelligence and Robotics 00008 00009 This file is part of Phission. 00010 00011 Phission is free software; you can redistribute it and/or modify 00012 it under the terms of the GNU General Public License as published by 00013 the Free Software Foundation; either version 2 of the License, or 00014 (at your option) any later version. 00015 00016 Phission is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 GNU General Public License for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with Phission; if not, write to the Free Software 00023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 00025 ---------------------------------------------------------------------------*/ 00026 #ifndef RANDOM_SELECTION_H 00027 #define RANDOM_SELECTION_H 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 #include <stdint.h> 00034 #include <image_collection.h> 00035 00036 /* ------------------------------------------------------------------------ */ 00037 /* set == image file id & index == image set index */ 00038 typedef struct random_selection_t 00039 { 00040 uint32_t total_sets; 00041 uint32_t train_array_count; 00042 uint32_t test_array_count; 00043 00044 uint32_t array_size[5]; 00045 00046 uint32_t rset_array_count; 00047 uint32_t *rset_array; /* 0 */ 00048 uint32_t *rindex_array_count; /* 1 */ 00049 uint32_t *rindex_array_size; /* 2 */ 00050 uint32_t **rindex_array; /* 3 / 4*/ 00051 00052 } random_selection_type; 00053 00054 int random_selection_new( image_data_collection data, 00055 uint32_t train_set_size, 00056 uint32_t test_set_size, 00057 random_selection_type **info ); 00058 int random_selection_free( random_selection_type **info ); 00059 00060 #ifdef __cplusplus 00061 } 00062 #endif 00063 00064 #endif /* #ifndef RANDOM_SELECTION_H */
Copyright (C) 2002 - 2007 |
Philip D.S. Thoren ( pthoren@users.sourceforge.net ) University Of Massachusetts at Lowell Robotics Lab |