Atoms Crowd  4.1.0
Image.impl.h
1 // ===========================================================================
2 // Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
3 //
4 // Use of this software is subject to the terms of the Toolchefs license
5 // agreement provided at the time of installation or download, or which
6 // otherwise accompanies this software in either electronic or hard copy form.
7 // ===========================================================================
8 
9 namespace AtomsUtils
10 {
11  inline unsigned short Image::imageType() const
12  {
13  return m_type;
14  }
15 
16  unsigned int Image::width() const
17  {
18  return m_width;
19  }
20 
21  unsigned int Image::height() const
22  {
23  return m_height;
24  }
25 
26  unsigned int Image::channels() const
27  {
28  return m_channels;
29  }
30 
31  const float* Image::pixelsFloat() const
32  {
33  return m_pixelsFloat;
34  }
35 
37  {
38  return m_pixelsFloat;
39  }
40 
41  const unsigned char* Image::pixels() const
42  {
43  return m_pixels;
44  }
45 
46  unsigned char* Image::pixels()
47  {
48  return m_pixels;
49  }
50 }
51 
AtomsUtils::Image::width
unsigned int width() const
Get image width.
Definition: Image.impl.h:16
AtomsUtils
AtomsCore namespace.
Definition: Base64.h:13
AtomsUtils::Image::pixels
const unsigned char * pixels() const
Get float pixels data.
Definition: Image.impl.h:41
AtomsUtils::Image::pixelsFloat
const float * pixelsFloat() const
Get float pixels data.
Definition: Image.impl.h:31
AtomsUtils::Image::imageType
unsigned short imageType() const
Get Image type.
Definition: Image.impl.h:11
AtomsUtils::Image::channels
unsigned int channels() const
Get number of channels.
Definition: Image.impl.h:26
AtomsUtils::Image::height
unsigned int height() const
Get image height.
Definition: Image.impl.h:21