85 void initializeHalide(std::span<
float> data, Common::ImageDim width, Common::ImageDim height, Common::ImageChan channels);
90 [[nodiscard]] std::pair<Common::ImageDim, Common::ImageDim>
getSizeByHalide() const noexcept;
Base class providing common Halide buffer functionality for image processing.
Common::ImageSize getDataSizeByHalide() const noexcept
Gets the total data element count from the Halide buffer.
virtual ~WorkingImageHalide()=default
Virtual destructor.
void initializeHalide(std::span< float > data, Common::ImageDim width, Common::ImageDim height, Common::ImageChan channels)
Creates a Halide buffer view over existing pixel data.
Halide::Buffer< float > & getHalideBuffer()
Gets a reference to the internal Halide buffer managed by this object.
Halide::Buffer< float > m_halide_buffer
Internal Halide buffer holding the image data. Managed directly by this object. Halide::Buffer handle...
Common::ImageChan getChannelsByHalide() const noexcept
Gets the number of color channels from the Halide buffer.
Common::ImageSize getPixelCountByHalide() const noexcept
Gets the total pixel count from the Halide buffer.
std::pair< Common::ImageDim, Common::ImageDim > getSizeByHalide() const noexcept
bool isHalideBufferValid() const noexcept
Checks if the Halide buffer is defined.
Common type definitions for all image types in CaptureMoment.
@ ImageProcessing
Errors related to Image Processing, GPU, or Memory.
Manages the lifecycle of a single IWorkingImage instance.