JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Helper struct for an HSV range triplet, where each range is specified as a mean and sigma: More...
Public Member Functions | |
hsvcue (unsigned char h, unsigned char s, unsigned char v) | |
Constructor. | |
hsvcue (unsigned char h, unsigned char hsig, unsigned char s, unsigned char ssig, unsigned char v, unsigned char vsig) | |
Constructor. | |
void | fix () |
Fix ranges so they don't go out of bounds. | |
cv::Scalar | rmin () const |
Get minimum triplet for use by cv::inRange() | |
cv::Scalar | rmax () const |
Get maximum triplet for use by cv::inRange() | |
Public Attributes | |
float | muh |
float | sih |
Mean and sigma for H. | |
float | mus |
float | sis |
Mean and sigma for S. | |
float | muv |
float | siv |
Mean and sigma for V. | |
Helper struct for an HSV range triplet, where each range is specified as a mean and sigma:
Note that sigma is used differently for H, S, and V, under the assumption that we want to track a bright target: For H, the range is [mean-sigma .. mean+sigma]. For S and V, the range is [mean-sigma .. 255]. See rmin() and rmax() for details.
Definition at line 305 of file FirstVision.C.
|
inline |
|
inline |
|
inline |
|
inline |
Get maximum triplet for use by cv::inRange()
Definition at line 329 of file FirstVision.C.
Referenced by FirstVision::detect().
|
inline |
Get minimum triplet for use by cv::inRange()
Definition at line 325 of file FirstVision.C.
References muh, mus, muv, sih, sis, and siv.
Referenced by FirstVision::detect().
float FirstVision::hsvcue::muh |
Definition at line 332 of file FirstVision.C.
float FirstVision::hsvcue::mus |
Definition at line 333 of file FirstVision.C.
float FirstVision::hsvcue::muv |
Definition at line 334 of file FirstVision.C.
float FirstVision::hsvcue::sih |
Mean and sigma for H.
Definition at line 332 of file FirstVision.C.
Referenced by fix(), rmax(), rmin(), and FirstVision::updateHSV().
float FirstVision::hsvcue::sis |
Mean and sigma for S.
Definition at line 333 of file FirstVision.C.
Referenced by fix(), rmin(), and FirstVision::updateHSV().
float FirstVision::hsvcue::siv |
Mean and sigma for V.
Definition at line 334 of file FirstVision.C.
Referenced by fix(), rmin(), and FirstVision::updateHSV().