I was wondering what’s the best way to show elements like ofCvColorImage or ofCvGrayscaleImage inside ofSimpleGuiToo.
I tried showing a texture with videoGrabber.getPixels and it works but I’m not sure on how to do it with ofCvColorImage and ofCvGrayscaleImage. I tried to apply the same method but it does some funny stuff like cropping the image or showing it multiple times inside ofSimpleGuiToo’s element.
gui.addContent(myColorCvImage);
or
gui.addContent(myGreyCvImage);
or
gui.addContent(myOfImage);
or
gui.addContent(myOfTexture);
or even
gui.addContent(myContourFinder);
in fact anything that is drawable (i.e. extends ofBaseDraws) can be passed into gui.addContent
one warning though, the object must be allocated before you call addContent,