Image Component Library (ICL)
TestImages.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLIO/src/ICLIO/TestImages.h **
10 ** Module : ICLIO **
11 ** Authors: Christof Elbrechter, Robert Haschke **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
34 #include <ICLCore/Img.h>
35 #include <string>
36 
37 namespace icl{
38  namespace io{
41  public:
43 
59  static core::ImgBase* create(const std::string& name,
60  const utils::Size &size,
63 
65 
70  static core::ImgBase *create(const std::string& name,
73 
75 
80  static void xv(const core::ImgBase *image,
81  const std::string& tmpName="./tmp_image.ppm",
82  long msec_to_rm_call=1000);
83 
85 
99  static void show(const core::ImgBase *image,
100  const std::string &showCommand="icl-xv -input %s -delete",
101  long msec_to_rm_call=0,
102  const std::string &rmCommand="");
103  private:
105  static core::Img8u *internalCreate(const std::string &name);
106  };
107 
109 
111 
113 
115 
117 
119 
121 
123 
125 
127 
129 
131 
132 
133 
134  } // namespace io
135 }
136 
ICLIO_API core::ImgBase * createImage_cameraman()
shortcurt function to create the famous "cameraman"-image
undocument this line if you encounter any issues!
Definition: Any.h:37
ICLQt_API core::Img< T > create(const std::string &name, core::format fmt=icl::core::formatRGB)
create a test image (converted to destination core::format) (affinity for floats)
ICLIO_API core::ImgBase * createImage_mandril()
shortcurt function to create the "mandril"-image
ICLIO_API core::ImgBase * createImage_flowers()
shortcurt function to create the "flowers"-image
ICLIO_API core::ImgBase * createImage_windows()
shortcurt function to create the "windows"-image
format
determines the color-format, that is associated with the images channels
Definition: Types.h:70
Definition: Types.h:61
#define ICLIO_API
Definition: CompatMacros.h:176
ICLIO_API core::ImgBase * createImage_macaw()
shortcurt function to create the "macaw"-image
Size class of the ICL.
Definition: Size.h:61
depth
determines the pixel type of an image (8Bit-int or 32Bit-float)
Definition: Types.h:60
ICLIO_API core::ImgBase * createImage_lena()
shortcurt function to create the famous "lena"-image
Utility class for creating test images.
Definition: TestImages.h:40
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
ICLQt_API void show(const icl::core::ImgBase &image)
shows an image using TestImages::show
Definition: Types.h:72