|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
2-D affine transform screen = [a b; d e] * raw + [c; f]. More...
#include <ra8_touch_cal.h>
Data Fields | |
| float | a |
| Row 0, column 0: raw-X gain on screen-X. | |
| float | b |
| Row 0, column 1: raw-Y gain on screen-X. | |
| float | c |
| Row 0 offset: screen-X bias. | |
| float | d |
| Row 1, column 0: raw-X gain on screen-Y. | |
| float | e |
| Row 1, column 1: raw-Y gain on screen-Y. | |
| float | f |
| Row 1 offset: screen-Y bias. | |
2-D affine transform screen = [a b; d e] * raw + [c; f].
The six floats are the row-major coefficients of the affine map. The mapping is:
u = a*x + b*y + c v = d*x + e*y + f
where (x, y) is a raw controller sample and (u, v) is the resulting screen pixel.
Definition at line 175 of file ra8_touch_cal.h.
| float ra8_touch_cal_matrix_t::a |
Row 0, column 0: raw-X gain on screen-X.
Definition at line 176 of file ra8_touch_cal.h.
Referenced by ra8_touch_cal_apply(), ra8_touch_cal_compute(), ra8_touch_cal_load(), and ra8_touch_cal_save().
| float ra8_touch_cal_matrix_t::b |
Row 0, column 1: raw-Y gain on screen-X.
Definition at line 177 of file ra8_touch_cal.h.
Referenced by ra8_touch_cal_apply(), ra8_touch_cal_compute(), ra8_touch_cal_load(), and ra8_touch_cal_save().
| float ra8_touch_cal_matrix_t::c |
Row 0 offset: screen-X bias.
Definition at line 178 of file ra8_touch_cal.h.
Referenced by ra8_touch_cal_apply(), ra8_touch_cal_compute(), ra8_touch_cal_load(), and ra8_touch_cal_save().
| float ra8_touch_cal_matrix_t::d |
Row 1, column 0: raw-X gain on screen-Y.
Definition at line 179 of file ra8_touch_cal.h.
Referenced by ra8_touch_cal_apply(), ra8_touch_cal_compute(), ra8_touch_cal_load(), and ra8_touch_cal_save().
| float ra8_touch_cal_matrix_t::e |
Row 1, column 1: raw-Y gain on screen-Y.
Definition at line 180 of file ra8_touch_cal.h.
Referenced by ra8_touch_cal_apply(), ra8_touch_cal_compute(), ra8_touch_cal_load(), and ra8_touch_cal_save().
| float ra8_touch_cal_matrix_t::f |
Row 1 offset: screen-Y bias.
Definition at line 181 of file ra8_touch_cal.h.
Referenced by ra8_touch_cal_apply(), ra8_touch_cal_compute(), ra8_touch_cal_load(), and ra8_touch_cal_save().