72 return "Degree90Counterclockwise";
76 return "Degree90Clockwise";
79 const auto rotationStr = std::to_string(
static_cast<int>(rotation));
108 if (rotation ==
"None")
112 if (rotation ==
"Degree90Counterclockwise")
116 if (rotation ==
"Degree180")
120 if (rotation ==
"Degree90Clockwise")
Thrown when a requested operation is not implemented or supported.
#define PEAK_COMMON_NO_DISCARD
Compatability macro for the nodiscard attribute.
Rotation
Angle parameter for the rotation algorithm.
@ None
No rotation applied to the image.
@ Degree90Counterclockwise
Rotate the image 90 degrees counterclockwise.
@ Degree180
Rotate the image 180 degrees (upside down).
@ Degree90Clockwise
Rotate the image 90 degrees clockwise.
Rotation ToRotation(const std::string &rotation)
Converts a string representation to a Rotation enum value.
std::string ToString(BinningMode mode)
Converts a BinningMode enum value to its string representation.
std::ostream & operator<<(std::ostream &os, BinningMode mode)
Stream output operator for BinningMode enum.