22# include <peak_ipl/types/peak_ipl_image.hpp>
27struct peak_icv_image_info;
58 Image(
const peak::ipl::Image& image);
127 explicit Image(
const std::string& path);
285 PEAK_ICV_NO_DISCARD uint8_t*
GetData()
const;
357 template <
typename DataType>
358 PEAK_ICV_NO_DISCARD DataType*
At(
size_t x,
size_t y)
const
475 operator peak::ipl::Image()
const;
489 friend peak::common::detail::BackendAccessor<Image>;
506 PEAK_ICV_NO_DISCARD peak::ipl::Image GetIPLImage()
const;
513 mutable std::unique_ptr<peak::common::Metadata> m_metaData;
516 peak::ipl::Image m_image;
Interface for viewing image pixel data from arbitrary sources.
A generic rectangle defined by a point and a size.
Represents a two-dimensional size with non-negative width and height.
constexpr T GetWidth() const
Returns the width.
For detailed information about the use of ids_peak_icv Image refer to the Image Guide.
void SetRegion(const experimental::Region ®ion) const
Updates the region on the image.
peak::common::Size GetSize() const
Provides the size of the image.
void ResetRegion() const
Resets the region on the image to the complete image.
Image operator-(const Image &subtrahend) const
Subtracts the specified subtrahend image pixelwise from the current image and returns the resulting i...
Image & operator=(const Image &other)
experimental::Region GetRegion() const
Provides the region of the image.
uint8_t * GetData() const
Provides a pointer to the image data buffer.
Image Subtract(const Image &subtrahend) const
Subtracts the specified subtrahend image pixelwise from the current image and returns the resulting i...
Image(const peak::common::IImageView &imageView)
Constructs an Image from an IImageView Instance. This can be a buffer or a possibility to convert oth...
peak::common::PixelFormat GetPixelFormat() const
Provides the pixel format of the image.
Image Crop(const peak::common::Rectangle &rect) const
Crops the image to the given rectangle.
peak::common::Metadata GetMetadata() const
Returns the CaptureInformation of an image which contains information about the image capture setting...
peak::icv::Image ConvertPixelFormat(peak::common::PixelFormat pixelFormat) const
Converts the image to a different pixel format.
void SetMetadata(const peak::common::Metadata &metadata)
Updates the CaptureInformation of an image which is used to store and manage capture settings.
Image Copy() const
Creates a deep copy of the current Image.
Image Scale(const peak::common::Size &targetImageSize, const Interpolation &interpolation=Interpolation::NearestNeighbor) const
Returns an image scaled to the given image size.
size_t GetSizeInBytes() const
Provides the size of the image data in bytes.
bool operator==(const Image &rhs) const
DataType * At(size_t x, size_t y) const
Provides a pointer to the data at the specified coordinates.
size_t GetBytesPerLine() const
Computes the number of bytes required to store one line of pixel data (no padding).
Writes an image to a file.
A region consists of a set of points in the image plane.
PixelFormat
Enum listing all supported pixel formats and their internal IDs.
peak::common::detail::c_type_of_t< Type > * handle_of_t
peak_icv_image * peak_icv_image_handle