28enum class BallRegion : std::uint8_t { Left, Center, Right, NotFound };
Ball detection and chasing logic.
Definition image_utils.hpp:5
BallRegion findBallRegion(const uint8_t *data, ImageDimensions dims, RgbThreshold threshold)
Detects the ball region within an image based on RGB thresholds.
Definition image_utils.cpp:7
BallRegion
Detected ball region in the image.
Definition image_utils.hpp:28
Image dimensions and stride information.
Definition image_utils.hpp:19
uint32_t height
Image height in pixels.
Definition image_utils.hpp:21
uint32_t width
Image width in pixels.
Definition image_utils.hpp:20
uint32_t step
Bytes per row (stride).
Definition image_utils.hpp:22
RGB color threshold values for ball detection.
Definition image_utils.hpp:10
uint8_t b
Blue channel threshold.
Definition image_utils.hpp:13
uint8_t g
Green channel threshold.
Definition image_utils.hpp:12
uint8_t r
Red channel threshold.
Definition image_utils.hpp:11