22# include <peak_ipl/types/peak_ipl_image.hpp>
27struct peak_icv_image_info;
58 Image(
const peak::ipl::Image& image);
99 explicit Image(
const std::string& path);
209 PEAK_COMMON_NO_DISCARD
Image Copy()
const;
227 PEAK_COMMON_NO_DISCARD uint8_t*
GetData()
const;
299 template <
typename DataType>
300 PEAK_COMMON_NO_DISCARD DataType*
At(
size_t x,
size_t y)
const
438 operator peak::ipl::Image()
const;
452 friend peak::common::detail::BackendAccessor<Image>;
469 PEAK_COMMON_NO_DISCARD peak::ipl::Image GetIPLImage()
const;
476 mutable std::unique_ptr<peak::common::Metadata> m_metaData;
479 mutable 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.
peak::common::Size GetSize() const
Provides the size of the image in pixels.
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)
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...
Region GetRegion() const
Provides the region of the image.
Image(const peak::common::IImageView &imageView)
Constructs an Image from an IImageView Instance.
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 Metadata of an image which contains information about the image capture information.
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 Metadata of an image which is used to store and manage capture information.
Image Copy() const
Creates a deep copy of the current Image.
peak::icv::Image ConvertPixelFormatWithFactor(peak::common::PixelFormat pixelFormat, const double factor) const
Converts an image into another pixel format with a factor multiplied to every pixel.
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).
void SetRegion(const Region ®ion) const
Updates the region on the image.
Provides functionality to write images to files in various supported formats.
Represents a region defined by 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