libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CRNImageFormats.h
Go to the documentation of this file.
1 /* Copyright 2015 INSA-Lyon
2  *
3  * This file is part of libcrn.
4  *
5  * libcrn is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * libcrn is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with libcrn. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * file: CRNImageFormats.h
19  * \author Yann LEYDIER
20  */
21 
22 #ifndef CRNIMAGEFORMATS_HEADER
23 #define CRNIMAGEFORMATS_HEADER
24 
25 #include <CRNImage/CRNPixel.h>
26 
27 namespace crn
28 {
29  template<typename T> class Image;
30 
34  /****************************************************************************/
47 
48  /****************************************************************************/
61 
62  /****************************************************************************/
75 
76  /****************************************************************************/
89 
90  /****************************************************************************/
103 
104  /****************************************************************************/
115  using ImageIntRGB = Image<pixel::RGB<int>>;
117 
118  /****************************************************************************/
129  using ImageHSV = Image<pixel::HSV>;
131 
132  /****************************************************************************/
143  using ImageYUV = Image<pixel::YUV>;
145 
146  /****************************************************************************/
156  using Image2DIntVector = Image<pixel::Cart2D<int>>;
158 
159  /****************************************************************************/
169  using Image2DIntPolarVector = Image<pixel::Polar2D<unsigned int, Angle<ByteAngle>>>;
171 
172  /****************************************************************************/
183  using ImageAngle = Image<typename ByteAngle::type>;
185 
186  /****************************************************************************/
196  using ImageXYZ = Image<pixel::XYZ>;
198 
199  /****************************************************************************/
210  using ImageLab = Image<pixel::Lab>;
212 
213  /****************************************************************************/
224  using ImageLuv = Image<pixel::Luv>;
226 
227 }
228 
229 #endif
A convenience class for angles units.
BYTE angle unit.
Definition: CRNImage.cpp:62
CRN_ALIAS_SMART_PTR(ImageBW)