13 #include <type_traits> 35 constexpr
Rect2D(
size_t x,
size_t y,
size_t width,
size_t height)
36 : Rect2D({ x, y }, { width, height })
65 return m_point.x + m_size.
width;
77 return m_point.y + m_size.
height;
81 void setSize(
const Size2D& size)
87 void setWidth(
size_t width)
93 void setHeight(
size_t height)
113 return (lhs.topLeft() == rhs.topLeft() && lhs.size() == rhs.size());
118 return !(lhs == rhs);
#define PEAK_IPL_NO_DISCARD
Definition: peak_ipl_backend.h:26
constexpr Rect2D(const Point2D &point, const Size2D &size)
Definition: peak_ipl_rect.hpp:39
size_t height
Height of size.
Definition: peak_ipl_simple_types.hpp:210
The "peak::ipl" namespace contains the whole image processing library.
Definition: peak_ipl_binning.hpp:22
2D size of an image.
Definition: peak_ipl_simple_types.hpp:207
bool operator!=(const Sharpness::SharpnessROI &lhs, const Sharpness::SharpnessROI &rhs)
Definition: peak_ipl_sharpness.hpp:425
bool operator==(const Sharpness::SharpnessROI &lhs, const Sharpness::SharpnessROI &rhs)
Definition: peak_ipl_sharpness.hpp:419
size_t width
Width of size.
Definition: peak_ipl_simple_types.hpp:209
Rectangle type.
Definition: peak_ipl_rect.hpp:29
constexpr Rect2D(size_t x, size_t y, size_t width, size_t height)
Definition: peak_ipl_rect.hpp:35