Skip to content
Snippets Groups Projects
user avatar
artificiel authored
06299871
History

ofxRGVBHistogram

Introduction

ofxRGVBHistogram provides a vectorial overlay with live red, green, blue and value (brightness) histograms calculated from an ofFbo. See the ofxFBODeluxe example.

Installation

Basic addon; simply copy to the addons folder and #include "ofxRGVBHistogram.hpp".

Dependencies

This addon builds on ofxHistogram and ofxFastFboReader

TODO

  1. Under certain conditions the histograms appear too noisy. This seems to be linked to some harmonic relationship with the FFT bins or something in the ofxHistogram/openCV code... It is annoying but does not hamper the overall utility of watching the histograms to get a sense of the color energy in the image. Smoothing these lobish things would be good.

  2. The image data being on the GPU, there must be an optimisation to use a (compute?) shader to do the equivalent process there... or maybe some fancy thread channel to prepare the graphs in a thread? but for our needs of the histograms (which are on the presetting / calibration side of things) using the CPU in the openGL thread is fine.

Compatibility

Tested against the rolling versions in git between june and december 2019.

Version history

Version 0.1 (2020-01-01):

Initial release.

License

MIT License. (c) 2020 alexandre burton / artificiel.org. See License.md for additional information.