113 template<
class PixelFormat>
118 std::is_same<PixelFormat, Zivid::ColorRGBA>::value || std::is_same<PixelFormat, Zivid::ColorBGRA>::value,
119 "PixelFormat must be Zivid::ColorRGBA or Zivid::ColorBGRA.");
125 template<
typename Iterator>
149 void save(
const std::string &fileName)
const
151 return Detail::saveImageImpl(*
this, fileName);
156 :
Array2D<PixelFormat>(std::move(a))
#define ZIVID_CORE_EXPORT
Definition: CoreExport.h:101
Two-dimensional container of data
Definition: Array2D.h:128
ConstIterator end() const
Iterator to the end of the array
Definition: Array2D.h:208
ConstIterator begin() const
Iterator to the beginning of the array
Definition: Array2D.h:202
A 2-dimensional image
Definition: Image.h:115
void save(const std::string &fileName) const
Save the image to a file. The supported file types are PNG (.png), JPEG (.jpg, .jpeg) and BMP (....
Definition: Image.h:149
Image(const Resolution &resolution, const unsigned char *begin, const unsigned char *end)
Create an image from an unsigned char byte buffer
Definition: Image.h:143
Image()=default
Create an empty image
Image(const Resolution &resolution, Iterator beginIt, Iterator endIt)
Create an image from a buffer of elements by copy
Definition: Image.h:126
Class describing a given resolution
Definition: Resolution.h:101
ZIVID_CORE_EXPORT Resolution resolution(const CameraInfo &cameraInfo, const Settings &settings)
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99