-#define RGB_TO_VALUE(r, g, b) \
-((r) * R_TO_Y + (g) * G_TO_Y + (b) * B_TO_Y)
+#define RGB_TO_VALUE(r, g, b) YUV::yuv.rgb_to_y_f((r),(g),(b))
// Only AVERAGE and ACCUMULATE use this
#define SUBTRACT_ACCUM(type, \
// Only AVERAGE and ACCUMULATE use this
#define SUBTRACT_ACCUM(type, \
output.tag.set_title("TIME_AVERAGE");
output.tag.set_property("FRAMES", config.frames);
output.tag.set_property("MODE", config.mode);
output.tag.set_title("TIME_AVERAGE");
output.tag.set_property("FRAMES", config.frames);
output.tag.set_property("MODE", config.mode);