8#ifndef OCEAN_CV_DETECTOR_BULLSEYES_TRANSITION_HISTORY_H
9#define OCEAN_CV_DETECTOR_BULLSEYES_TRANSITION_HISTORY_H
63 void push(
const int newDelta);
static constexpr int defaultDeltaThreshold()
Returns the default intensity threshold between two successive pixels to count as a transition from b...
Definition TransitionHistory.h:107
static bool isTransitionToBlack(const uint8_t *pixel, TransitionHistory &history, const int deltaThreshold=defaultDeltaThreshold())
Checks whether the given pixel is a transition-to-black pixel (whether the direct left neighbor is a ...
int deltaMinus3
The third previous intensity difference (delta) between adjacent pixels, with range [-255,...
Definition TransitionHistory.h:104
int history1() const
Returns the history with window size 1.
int history2() const
Returns the history with window size 2.
static bool isTransitionToWhite(const uint8_t *pixel, TransitionHistory &history, const int deltaThreshold=defaultDeltaThreshold())
Checks whether the given pixel is a transition-to-white pixel (whether the direct left neighbor is a ...
void push(const int newDelta)
Adds a new intensity difference (delta) as the most recent history entry.
void reset()
Resets the history object to its initial state (all deltas set to zero).
int deltaMinus1
The previous intensity difference (delta) between adjacent pixels, with range [-255,...
Definition TransitionHistory.h:98
int deltaMinus2
The second previous intensity difference (delta) between adjacent pixels, with range [-255,...
Definition TransitionHistory.h:101
int history3() const
Returns the history with window size 3.
TransitionHistory()=default
Creates a new history object.
Namespace of the bullseye code library.
Definition AssignmentSolver.h:25
Namespace of the CV Detector library.
Definition Barcode.h:19
Namespace of the CV library.
Definition Advanced.h:17
The namespace covering the entire Ocean framework.
Definition Accessor.h:15