Hi,
for a project some time ago i needed to control brightness and contrast of images.
After searching i found that this is implemented in the OpenCv port for Processing/Java, so searching the source i made this little addon that applies brightness and contrast transformations to ofxOpenCv images.
it can be downloaded here: ruicode.googlecode.com
the original OpenCv Processing and Java library can be downloaded here http://ubaa.net/shared/processing/opencv/
i think this is a super useful filter and maybe could be implemented in a future release of the ofxOpenCv addon.
cheers
Rui
Brilliant!!! Works really well and super fast to implement! thx for sharing…
zach
January 22, 2010, 7:21pm
#3
super !
just a quick note that this is implemented in 0.061, ofxCvGrayscaleImage:
http://github.com/openframeworks/openFr-…-mage.h#L95
take care!!
zach
@paulobarcelos
yes it does! all merit goes to the OpenCV Processing library, i just adapted a little.
@zach
Its great that it is included in the addon. but why grayscale images only? It works for color images as well.
cheers
Rui
zach
January 22, 2010, 10:44pm
#5
oh yeah, I have no idea why just grayscale good point!
-z
Hi Rui.
Thanks for this addon.
It works great.
I tried using the build in ofxCvGrayscaleImage option ( grayImg.brightnessContrast(100,100) ) but it crashes.
so i am happy to have your addon.
stephan.
Same here, the brightnessContrast() in the newer ofxOpenCV crashes
“bad argument (unrecognized or unsupported array type) in function cvSetData, .\cxarray.cpp(1134)”