calibration
coord_transform(obj_coord_pixels, cal_vec)
¤
Calculate x and y coordinates (in cm) based on the coefficients (c_1 - c_8) from the fractional transformation and the pixel coordinates of each point x = (c_1u + c_2v + c_3)/(1 + c_7u + c_8v) y = (c_4u + c_5v + c_6)/(1 + c_7u + c_8v)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
obj_coord_pixels |
tuple
|
the (row, col) tuple of the pixel. Note that Y comes first |
required |
cal_vec |
list
|
Parameters of DLT |
required |
Returns:
Name | Type | Description |
---|---|---|
list | The [x,y] coordiate in local space. Note that X comes first! |
Source code in motiontracker\calibration.py
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
|
get_hsl_lo_hi(hsv, px, py, **kwargs)
¤
Get the lo and hi hsl values that should threshold the pixel at (py,px)
Source code in motiontracker\calibration.py
49 50 51 52 53 54 55 56 57 58 |
|