ofxCoreImageFilters icon indicating copy to clipboard operation
ofxCoreImageFilters copied to clipboard

Additional input image options

Open laserpilot opened this issue 11 years ago • 1 comments

Would be helpful to get some additional datatypes to work with besides ofImage - I'd like to be able to pass in the ofTexture from the ofVideoGrabber for example (which doesn't return an ofImage, just pixels - maybe a way to have it read pixels would be helpful in the future as well), and I have to do some conversions that could probably easily be handled in your functions, while also not needing to do intensive stuff like turn the image into pixels, and then going glReadPixels to bring it back out - curious how it runs when you're not loading the images in setup

laserpilot avatar May 28 '14 15:05 laserpilot

Did you take a look at the camera example? The thing about Textures is that Core image is using a different glContext than openframeworks, so they cannot share textureData. If I were to have a function like setInputImage(const &ofTexture) I would have to copy the textureData from the GPU to the CPU, which makes the function counter intuitive. I can have functions that take ofPixels though. But can you look at the camera example and tell me how you would do it differently? Thanks for you input!

Ahbee avatar May 28 '14 17:05 Ahbee