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 &&
Base class of all two-dimensional images in PCL.
int NumberOfSelectedChannels() const noexcept
const Rect & SelectedRectangle() const noexcept
component Width() const noexcept
component Height() const noexcept
color_space ColorSpace() const noexcept
A simple structure to hold basic information about images.
ImageInfo(const AbstractImage &image)
size_type NumberOfPixels() const
int height
Image height in pixels
bool supported
Whether we support this image.
ImageInfo(const ImageInfo &)=default
color_space colorSpace
Color space, compatible with ImageColor::color_space
size_type NumberOfSamples() const
int width
Image width in pixels
int numberOfChannels
Number of channels, including alpha channels.
bool operator==(const Array< T, A > &x1, const Array< T, A > &x2) noexcept