Go to the documentation of this file.
52 #ifndef __PCL_ImageInfo_h
53 #define __PCL_ImageInfo_h
79 using color_space = ColorSpace::value_type;
119 supported = IsValid();
136 return NumberOfPixels()*
size_type( numberOfChannels );
145 width = height = numberOfChannels = 0;
146 colorSpace = ColorSpace::Unknown;
157 colorSpace != ColorSpace::Unknown &&
158 numberOfChannels >= ((colorSpace == ColorSpace::Gray) ? 1 : 3);
166 return width == x.
width &&
177 #endif // __PCL_ImageInfo_h
Base class of all two-dimensional images in PCL.
component Width() const noexcept
bool operator==(const Array< T, A > &x1, const Array< T, A > &x2) noexcept
int width
Image width in pixels
int height
Image height in pixels
const Rect & SelectedRectangle() const noexcept
int numberOfChannels
Number of channels, including alpha channels.
component Height() const noexcept
color_space colorSpace
Color space, compatible with ImageColor::color_space
A simple structure to hold basic information about images.
bool supported
Whether we support this image.
size_type NumberOfPixels() const
size_type NumberOfSamples() const
ImageInfo(const AbstractImage &image)
int NumberOfSelectedChannels() const noexcept
color_space ColorSpace() const noexcept