Apartment Navigation By Classic Wheeled Robot
Comprehensive Production Grade Repository For Apartment Navigation Project (Inspired By Udacity Course)
 
Loading...
Searching...
No Matches
image_utils.hpp
1#pragma once
2
3#include <cstdint>
4
6
11 uint8_t r;
12 uint8_t g;
13 uint8_t b;
14};
15
20 uint32_t width;
21 uint32_t height;
22 uint32_t step;
23};
24
28enum class BallRegion : std::uint8_t { Left, Center, Right, NotFound };
29
38BallRegion findBallRegion(const uint8_t *data, ImageDimensions dims, RgbThreshold threshold);
39
40} // namespace robot_control::ball_chaser
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