-
Notifications
You must be signed in to change notification settings - Fork 11
/
ranges.h
75 lines (55 loc) · 1.84 KB
/
ranges.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* ranges.h
*
* Copyright (c) 2011, 2012 Chantilly Robotics <chantilly612@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
* const range_t values for image threshold ranges and other ranges
*/
#ifndef INC_RANGES_H
#define INC_RANGES_H
#include "612.h"
//TODO: Update HSI/HSV Ranges
// ==== HSV ====
const range_t HSV_HMIN = 72;
const range_t HSV_HMAX = 129;
const range_t HSV_SMIN = 110;
const range_t HSV_SMAX = 255;
const range_t HSV_VMIN = 193;
const range_t HSV_VMAX = 255;
// ==== HSI ====
const range_t HSI_HMIN = 72;
const range_t HSI_HMAX = 129;
const range_t HSI_SMIN = 30;
const range_t HSI_SMAX = 255;
const range_t HSI_IMIN = 174;
const range_t HSI_IMAX = 241;
// ==== HSL ====
const range_t HSL_HMIN = 0;//080;
const range_t HSL_HMAX = 145;//116;
const range_t HSL_SMIN = 0;//075;
const range_t HSL_SMAX = 75;//255;
const range_t HSL_LMIN = 230;//131;
const range_t HSL_LMAX = 255;//199;
enum COLOR_MODE_T {
HSL,
HSI,
HSV
};
//set these to change search color
const COLOR_MODE_T COLOR_MODE = HSL;
//configure the particle
const int PARTICLE_AREA_MIN = 800; //for 640x480 px
const int PARTICLE_AREA_MAX = 50000;
#endif // INC_RANGES_H