Monado OpenXR Runtime
t_debug_hsv_picker.cpp File Reference

HSV Picker Debugging code. More...

#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_format.h"
#include "tracking/t_tracking.h"
#include <opencv2/opencv.hpp>
Include dependency graph for t_debug_hsv_picker.cpp:

Data Structures

class  DebugHSVPicker
 An xrt_frame_sink that can be used to select HSV thresholds interactively. More...
 

Macros

#define PICK_WIN   "HSV Picker Debugger"
 
#define max(a, b)   (a > b ? a : b)
 
#define min(a, b)   (a < b ? a : b)
 

Functions

static void ensure_debug_is_allocated (class DebugHSVPicker &d, int rows, int cols)
 
static void process_frame_yuv (class DebugHSVPicker &d, struct xrt_frame *xf)
 
static void process_frame_yuyv (class DebugHSVPicker &d, struct xrt_frame *xf)
 
static void process_frame (class DebugHSVPicker &d, struct xrt_frame *xf)
 
static void on_low_H_thresh_trackbar (int, void *)
 
static void on_high_H_thresh_trackbar (int, void *)
 
static void on_low_S_thresh_trackbar (int, void *)
 
static void on_high_S_thresh_trackbar (int, void *)
 
static void on_low_V_thresh_trackbar (int, void *)
 
static void on_high_V_thresh_trackbar (int, void *)
 
void t_debug_hsv_picker_frame (struct xrt_frame_sink *xsink, struct xrt_frame *xf)
 
void t_debug_hsv_picker_break_apart (struct xrt_frame_node *node)
 
void t_debug_hsv_picker_destroy (struct xrt_frame_node *node)
 
int t_debug_hsv_picker_create (struct xrt_frame_context *xfctx, struct xrt_frame_sink *passthrough, struct xrt_frame_sink **out_sink)
 

Variables

const int max_value_H = 360 / 2
 
const int max_value = 256
 
static int low_H = 0
 
static int low_S = 0
 
static int low_V = 0
 
static int high_H = max_value_H
 
static int high_S = max_value
 
static int high_V = max_value
 

Detailed Description