Size Operator
- group NVCV_CPP_CORE_SIZE
Functions
-
constexpr Size2D MaxSize(const Size2D &a, const Size2D &b)
Computes the maximum size in each dimension.
- Parameters
a – First size to compare.
b – Second size to compare.
- Returns
The size with
w
andh
computed as a maximum of the respective fields ina
andb
.
-
inline std::ostream &operator<<(std::ostream &out, const nvcv::Size2D &size)
Overloads the stream insertion operator for Size2D.
This allows for easy printing of Size2D structures in the format “width x height”.
- Parameters
out – Output stream to which the size string will be written.
size – Size2D structure to be output.
- Returns
Reference to the modified output stream.
-
struct Size2D : public NVCVSize2D
- #include <Size.hpp>
-
constexpr Size2D MaxSize(const Size2D &a, const Size2D &b)