Apartment Navigation By Classic Wheeled Robot
Comprehensive Production Grade Repository For Apartment Navigation Project (Inspired By Udacity Course)
 
Loading...
Searching...
No Matches
FindBallRegionTest Class Reference

Unit tests for ball region detection in camera images. More...

Inheritance diagram for FindBallRegionTest:

Static Protected Attributes

static constexpr ImageDimensions m_dims {10, 1, 10 * 3}
 10-pixel wide image; thirds: left=[0,2], center=[3,6], right=[7,9].
 
static constexpr RgbThreshold m_threshold {255, 255, 255}
 Pure white threshold for all RGB channels.
 

Detailed Description

Unit tests for ball region detection in camera images.

Tests verify that findBallRegion correctly:

  • Detects white ball pixels meeting RGB thresholds
  • Returns NotFound when no ball is present
  • Classifies ball location as Left, Center, or Right based on centroid
  • Respects RGB threshold limits
  • Computes centroids correctly for multiple white pixels

The documentation for this class was generated from the following file: