Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Value of Single Pixel #26

Open
SoothingMist opened this issue Apr 13, 2023 · 0 comments
Open

Need Value of Single Pixel #26

SoothingMist opened this issue Apr 13, 2023 · 0 comments

Comments

@SoothingMist
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant