104 std::vector<Channel>
Channels()
const;
118 virtual ~
PixelRow()
override =
default;
153 static_cast<PEAK_IPL_ORIENTATION>(orientation), offset, &m_backendHandle);
164 *
this = std::move(other);
172 m_backendHandle = other.m_backendHandle;
173 other.m_backendHandle =
nullptr;
185 m_backendHandle, reinterpret_cast<PEAK_IPL_PIXEL_FORMAT*>(&pixelFormatName));
188 return pixelFormatName;
197 m_backendHandle, reinterpret_cast<PEAK_IPL_ORIENTATION*>(&orientation));
215 std::vector<Channel> channels;
217 size_t numChannels = 0;
221 for (
size_t ch = 0; ch < numChannels; ++ch)
223 size_t valueListSize = 0;
226 m_backendHandle, ch,
nullptr, &valueListSize);
228 std::vector<uint32_t> valueList(valueListSize);
231 m_backendHandle, ch, valueList.data(), &valueListSize);
234 channels.emplace_back(
Channel{ std::move(valueList) });
#define PEAK_IPL_C_ABI_PREFIX
Definition: peak_ipl_dll_defines.h:16
Represents the values of a horizontal or vertical line of pixels in an image.
Definition: peak_ipl_pixel_line.hpp:34
PixelFormatName
Enum holding the possible pixel format names.
Definition: peak_ipl_simple_types.hpp:38
std::vector< Channel > Channels() const
Returns the number of the given pixel line's channels.
Definition: peak_ipl_pixel_line.hpp:213
peak::ipl::Orientation Orientation() const
Returns the orientation of the given pixel line.
Definition: peak_ipl_pixel_line.hpp:191
The "peak::ipl" namespace contains the whole image processing library.
Definition: peak_ipl_binning.hpp:16
struct PEAK_IPL_PIXEL_LINE * PEAK_IPL_PIXEL_LINE_HANDLE
Definition: peak_ipl_backend.h:246
void ExecuteAndMapReturnCodes(const CallableType &callableObject)
Definition: peak_ipl_exception.hpp:128
Stores the pixel format, width and height of an image and the pointer to the image buffer...
Definition: peak_ipl_image.hpp:37
Represents the values of the pixel line.
Definition: peak_ipl_pixel_line.hpp:40
size_t Offset() const
Returns the offset of the given pixel line. (Vertical: Left - Horizontal: Top).
Definition: peak_ipl_pixel_line.hpp:203
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.
Orientation
Enum holding the possible orientation.
Definition: peak_ipl_simple_types.hpp:154
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_GetOffset(PEAK_IPL_PIXEL_LINE_HANDLE pixelLineHandle, size_t *offset)
Queries the offset of the given pixel line.
Represents the values of a horizontal line of pixels in an image.
Definition: peak_ipl_pixel_line.hpp:113
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_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::PixelFormatName PixelFormatName() const
Returns the pixel format of the given pixel line.
Definition: peak_ipl_pixel_line.hpp:179
std::vector< uint32_t > Values
Definition: peak_ipl_pixel_line.hpp:42
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.
virtual ~PixelLine()
Definition: peak_ipl_pixel_line.hpp:157
Represents the values of a vertical line of pixels in an image.
Definition: peak_ipl_pixel_line.hpp:128
PEAK_IPL_C_API PEAK_IPL_PixelLine_Destruct(PEAK_IPL_PIXEL_LINE_HANDLE pixelLineHandle)
Destroys the pixel line associated with the given handle.
PixelLine & operator=(const PixelLine &other)=delete