215 if (other.m_backendHandle)
220 m_backendHandle = other.m_backendHandle;
232 if (other.m_backendHandle)
239 m_backendHandle = other.m_backendHandle;
246 *
this = std::move(other);
253 if (m_backendHandle !=
nullptr)
258 m_backendHandle = other.m_backendHandle;
259 other.m_backendHandle =
nullptr;
274 return pixelFormatName;
301 std::vector<Channel> channels;
303 size_t numChannels = 0;
307 for (
size_t ch = 0; ch < numChannels; ++ch)
309 size_t valueListSize = 0;
312 m_backendHandle, ch,
nullptr, &valueListSize);
314 std::vector<uint32_t> valueList(valueListSize);
317 m_backendHandle, ch, valueList.data(), &valueListSize);
320 channels.emplace_back(
Channel{ std::move(valueList) });
Stores the pixel format, width and height of an image and the pointer to the image buffer.
Definition peak_ipl_image.hpp:42
PixelColumn & operator=(const PixelColumn &other)=default
PixelColumn & operator=(PixelColumn &&other)=default
PixelColumn(const PixelColumn &other)=default
~PixelColumn() override=default
PixelColumn(PixelColumn &&other)=default
size_t Offset() const
Returns the offset of the given pixel line. (Vertical: Left - Horizontal: Top).
Definition peak_ipl_pixel_line.hpp:289
peak::ipl::PixelFormatName PixelFormatName() const
Returns the pixel format of the given pixel line.
Definition peak_ipl_pixel_line.hpp:265
virtual ~PixelLine()
Destructor for the PixelLine instance.
Definition peak_ipl_pixel_line.hpp:205
std::vector< Channel > Channels() const
Returns the number of the given pixel line's channels.
Definition peak_ipl_pixel_line.hpp:299
PixelLine & operator=(const PixelLine &other)
Copy assigment for PixelLine instance.
Definition peak_ipl_pixel_line.hpp:223
peak::ipl::Orientation Orientation() const
Returns the orientation of the given pixel line.
Definition peak_ipl_pixel_line.hpp:277
~PixelRow() override=default
PixelRow & operator=(PixelRow &&other)=default
PixelRow(const PixelRow &other)=default
PixelRow(PixelRow &&other)=default
PixelRow & operator=(const PixelRow &other)=default
PixelFormatName
Enum holding the possible pixel format names.
Definition peak_ipl_simple_types.hpp:38
@ Invalid
Invalid Pixel Format.
Definition peak_ipl_simple_types.hpp:39
Orientation
Enum holding the possible orientation.
Definition peak_ipl_simple_types.hpp:195
@ Vertical
Vertical orientation.
Definition peak_ipl_simple_types.hpp:197
@ Horizontal
Horizontal orientation.
Definition peak_ipl_simple_types.hpp:196
The "peak::ipl" namespace contains the whole image processing library.
void ExecuteAndMapReturnCodes(const CallableType &callableObject)
Definition peak_ipl_exception.hpp:284
#define PEAK_IPL_NO_DISCARD
Definition peak_ipl_attribute_defines.h:20
PEAK_IPL_C_API PEAK_IPL_PixelLine_GetOrientation(PEAK_IPL_PIXEL_LINE_HANDLE pixelLineHandle, PEAK_IPL_ORIENTATION *orientation)
Queries the orientation of the given pixel line.
PEAK_IPL_C_API PEAK_IPL_PixelLine_GetValuesForChannel(PEAK_IPL_PIXEL_LINE_HANDLE pixelLineHandle, size_t channelIndex, uint32_t *values, size_t *valuesSize)
Queries the value list for the channel with the given index.
PEAK_IPL_C_API PEAK_IPL_PixelLine_GetOffset(PEAK_IPL_PIXEL_LINE_HANDLE pixelLineHandle, size_t *offset)
Queries the offset of the given pixel line.
struct PEAK_IPL_PIXEL_LINE * PEAK_IPL_PIXEL_LINE_HANDLE
Definition peak_ipl_backend.h:410
PEAK_IPL_C_API PEAK_IPL_PixelLine_GetPixelFormat(PEAK_IPL_PIXEL_LINE_HANDLE pixelLineHandle, PEAK_IPL_PIXEL_FORMAT *pixelFormat)
Queries the pixel format of the given pixel line.
PEAK_IPL_C_API PEAK_IPL_PixelLine_Construct(PEAK_IPL_IMAGE_HANDLE imageHandle, PEAK_IPL_ORIENTATION orientation, size_t offset, PEAK_IPL_PIXEL_LINE_HANDLE *pixelLineHandle)
Creates a pixel line depending on the given orientation.
int32_t PEAK_IPL_ORIENTATION
Definition peak_ipl_backend.h:199
PEAK_IPL_C_API PEAK_IPL_PixelLine_GetNumChannels(PEAK_IPL_PIXEL_LINE_HANDLE pixelLineHandle, size_t *numChannels)
Queries the number of the given pixel line's channels.
PEAK_IPL_C_API PEAK_IPL_PixelLine_Acquire(PEAK_IPL_PIXEL_LINE_HANDLE pixelLineHandle)
Increase the reference count of a pixel line object.
PEAK_IPL_C_API PEAK_IPL_PixelLine_Destruct(PEAK_IPL_PIXEL_LINE_HANDLE pixelLineHandle)
Destroys the pixel line associated with the given handle.
int32_t PEAK_IPL_PIXEL_FORMAT
Definition peak_ipl_backend.h:170
#define PEAK_IPL_C_ABI_PREFIX
Definition peak_ipl_dll_defines.h:11
Represents the values of the pixel line.
Definition peak_ipl_pixel_line.hpp:39
std::vector< uint32_t > Values
Definition peak_ipl_pixel_line.hpp:40