If I look at the Arduino library's Pixy2Video.h, there is: template int8_t Pixy2Video::getRGB. Within that template, what if m_pixy->m_length were changed to a lesser odd positive integer? What if it were changed to 0? Does the hardware/firmware support such a thing?
It would make Pixy2 more useful if the block-size of pixel averaging could be changed, including a block-size of 0, no averaging.
For my own project, I need to query for the value of a single pixel. According to https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:video_api, "getRGB() takes a 5×5 section of pixels centered at the x, y location and performs an average of all 25 pixels to obtain a representative result". According to https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:protocol_reference#getrgb-x-y-r-g-b-saturate, exactly 5x5 pixels seem to be involved.
If I look at the Arduino library's Pixy2Video.h, there is: template int8_t Pixy2Video::getRGB. Within that template, what if m_pixy->m_length were changed to a lesser odd positive integer? What if it were changed to 0? Does the hardware/firmware support such a thing?
It would make Pixy2 more useful if the block-size of pixel averaging could be changed, including a block-size of 0, no averaging.