iRoCS Toolbox  1.1.0
ImageTools.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright (C) 2008 Alexandra Teynor
4  *
5  * Image Analysis Lab, University of Freiburg, Germany
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  **************************************************************************/
22 
23 /**********************************************************
24  *
25  * ImageTools
26  * image format related collection of little helper functions
27  *
28  * author: Alex Teynor (teynor@informatik.uni-freiburg.de)
29  * Dec. 2008
30  *
31  *********************************************************/
32 
33 #ifndef _IMAGETOOLS
34 #define _IMAGETOOLS
35 
36 #ifdef HAVE_CONFIG_H
37 #include <config.hh>
38 #endif
39 
40 // Blitz arrays
41 #include <blitz/array.h>
42 
44 class ImageTools {
45 
46 public:
47 
48 template<typename DataType>
49 static void layeredToVectorial(
50  const blitz::Array<DataType,3>& layered,
51  blitz::Array<blitz::TinyVector<DataType,3>,2>& vectorial);
52 
53 
54 template<typename DataType>
55 static void vectorialToLayered(
56  const blitz::Array<blitz::TinyVector<DataType,3>,2>& vectorial,
57  blitz::Array<DataType,3>& layered);
58 
59 
60 };
61 
62 
63 #include "ImageTools.icc"
64 
65 #endif
66 
image format related collection of little helper functions
Definition: ImageTools.hh:44
static void vectorialToLayered(const blitz::Array< blitz::TinyVector< DataType, 3 >, 2 > &vectorial, blitz::Array< DataType, 3 > &layered)
static void layeredToVectorial(const blitz::Array< DataType, 3 > &layered, blitz::Array< blitz::TinyVector< DataType, 3 >, 2 > &vectorial)