00001 /* 00002 * Copyright (c) 2000, University of Amsterdam, The Netherlands. 00003 * All rights reserved. 00004 * 00005 * 00006 * Author(s): 00007 * Dennis Koelma (koelma@wins.uva.nl) 00008 * Edo Poll (poll@wins.uva.nl) 00009 * Jan-Mark Geusebroek (poll@wins.uva.nl) 00010 */ 00011 00014 #ifndef HxMatrixConv_h 00015 #define HxMatrixConv_h 00016 00017 #include "HxMatrix.h" 00018 00019 HxMatrix L_HXIMAGEREP HxImageRepToMatrix(HxImageRep im); 00020 HxVector L_HXIMAGEREP HxImageRepToVector(HxImageRep im); 00021 HxImageRep L_HXIMAGEREP HxMatrixToImageRep(HxMatrix& m); 00022 HxImageRep L_HXIMAGEREP HxVectorToImageRep(HxVector& v); 00023 00024 // imageListToMatrix, input: list of N images of equal size, all have P pixels 00025 // HxMatrix[row_i][col_j] = P_j of image N_i 00026 // each row represents the pixelvalues in an images. 00027 // each col represents the pixelvalues 'over' all images. 00028 // e.g. an ImageList of 5 images of 10x10 yields 00029 // an hxMatrix of 5 rows, and 100 columns. 00030 // where the i'th row = HximageRepToVector(N_i) 00031 HxMatrix L_HXIMAGEREP HxImageListToMatrix(HxImageList imList); 00032 00033 #endif