![]() |
IDS peak IPL
v1.6.0
|
Stores the pixel format, width and height of an image and the pointer to the image buffer. More...
#include <peak_ipl/types/peak_ipl_image.hpp>
Public Member Functions | |
| Image () | |
| Creates an empty image, i.e. with size 0x0 and invalid pixel format. More... | |
| Image (const peak::ipl::PixelFormat &pixelFormat, size_t width, size_t height) | |
| Creates an image with the given pixel format and size. More... | |
| Image (const peak::ipl::PixelFormat &pixelFormat, uint8_t *buffer, size_t bufferSize, size_t width, size_t height) | |
| Creates an image with the given pixel format and size from the given buffer. More... | |
| Image (const peak::ipl::PixelFormat &pixelFormat, size_t width, size_t height, uint64_t timestamp_ns) | |
| Image (const peak::ipl::PixelFormat &pixelFormat, uint8_t *buffer, size_t bufferSize, size_t width, size_t height, uint64_t timestamp_ns) | |
| ~Image () | |
| Image (const Image &other)=delete | |
| Image & | operator= (const Image &other)=delete |
| Image (Image &&other) noexcept | |
| Image & | operator= (Image &&other) noexcept |
| size_t | Width () const |
| Returns the width. More... | |
| size_t | Height () const |
| Returns the height. More... | |
| uint8_t * | PixelPointer (size_t xPos, size_t yPos) const |
| Returns the pixel pointer to the given pixel position in dependency of the size of the pixel format. More... | |
| size_t | ByteCount () const |
| Returns the size of the given image in number of bytes. More... | |
| peak::ipl::PixelFormat | PixelFormat () const |
| Returns the pixel format. More... | |
| uint8_t * | Data () const |
| Returns the pointer to the first pixel position in dependency on the size of the pixel format. More... | |
| Image | ConvertTo (const peak::ipl::PixelFormat &outputPixelFormat, peak::ipl::ConversionMode conversionMode=peak::ipl::ConversionMode::Fast) const |
| Returns a new created image containing the data of the current image converted to the given pixel format. More... | |
| Image | ConvertTo (const peak::ipl::PixelFormat &outputPixelFormat, uint8_t *outputImageBuffer, size_t outputImageBufferSize, peak::ipl::ConversionMode conversionMode=peak::ipl::ConversionMode::Fast) const |
| Saves the data of the current image converted to the given pixel format into a destination buffer and creates an image from that buffer. More... | |
| Image | Clone () const |
| Returns a new created image containing the data of the current image as deep copy. More... | |
| bool | Empty () const |
| Checks whether the image is empty. More... | |
| uint64_t | Timestamp () const |
| The timestamp in nanoseconds. More... | |
| bool | operator== (const Image &img) const |
| Checks whether the image is data wise the same. More... | |
| bool | operator!= (const Image &img) const |
| Checks whether the image is data wise different. More... | |
Stores the pixel format, width and height of an image and the pointer to the image buffer.
|
inline |
Creates an empty image, i.e. with size 0x0 and invalid pixel format.
| Exception | An internal error has occurred. |
|
inline |
Creates an image with the given pixel format and size.
| [in] | pixelFormat | The pixel format. |
| [in] | width | The width. |
| [in] | height | The height. |
| OutOfRangeException | pixelFormat is valid but width or height is 0. |
| Exception | An internal error has occurred. |
|
inline |
Creates an image with the given pixel format and size from the given buffer.
| [in] | pixelFormat | The pixel format. |
| [in] | buffer | The buffer. |
| [in] | bufferSize | The size of the buffer. |
| [in] | width | The width. |
| [in] | height | The height. |
| InvalidArgumentException | bufferSize is too small for the specified pixel format and image dimension. |
| OutOfRangeException | pixelFormat is valid but width or height is 0. |
| Exception | An internal error has occurred. |
|
inline |
|
inline |
|
inline |
|
delete |
|
inlinenoexcept |
|
inline |
Returns the size of the given image in number of bytes.
| Exception | An internal error has occurred. |
|
inline |
Returns a new created image containing the data of the current image as deep copy.
| Exception | An internal error has occurred. |
|
inline |
Returns a new created image containing the data of the current image converted to the given pixel format.
| [in] | outputPixelFormat | The output pixel format. |
| [in] | conversionMode | The conversion mode. |
| Exception | An internal error has occurred. |
|
inline |
Saves the data of the current image converted to the given pixel format into a destination buffer and creates an image from that buffer.
| [in] | outputPixelFormat | The output pixel format. |
| [out] | outputImageBuffer | Pointer to destination buffer. |
| [in] | outputImageBufferSize | Size of destination buffer. |
| [in] | conversionMode | The conversion mode. |
| BufferTooSmallException | The provided buffer is too small for the output image. |
| Exception | An internal error has occurred. |
|
inline |
Returns the pointer to the first pixel position in dependency on the size of the pixel format.
| Exception | An internal error has occurred. |
|
inline |
Checks whether the image is empty.
An image can be empty if its data have been moved.
|
inline |
|
inline |
Checks whether the image is data wise different.
|
inline |
Checks whether the image is data wise the same.
|
inline |
Returns the pixel format.
| Exception | An internal error has occurred. |
|
inline |
Returns the pixel pointer to the given pixel position in dependency of the size of the pixel format.
| [in] | xPos | The x position. |
| [in] | yPos | The y position. |
| OutOfRangeException | The pixel position is outside the image. |
| Exception | An internal error has occurred. |
|
inline |
The timestamp in nanoseconds.
The point in camera time at which the image was exposed.
|
inline |