roymacdonald / ofxLUT

openFrameworks addon to filter images using 3D LUTs. 3D LUTs are used mainly in color gradding software to save the color transformations applied to an image.
14 stars 1 forks source link

[question] should this filters works in realtime? #3

Open moebiussurfing opened 4 years ago

moebiussurfing commented 4 years ago

I modified the example to process an image and seems to works, but it makes a lot of process/debug into the console and takes several seconds to update/process the image?

is that the expected behavior?

roymacdonald commented 4 years ago

hi! I wrote this a million years ago and I really do not remember. It does all the processing on the CPU so it might be a bit slow. I think that ofxFX has the same thing implemented in shaders. I'll try to give a look at it. If you have any improvement please PR

roymacdonald commented 4 years ago

@moebiussurfing Actually now I recall that this addon then became one of the OF examples https://github.com/openframeworks/openFrameworks/tree/patch-release/examples/graphics/lutFilterExample

moebiussurfing commented 4 years ago

nevermind. I found this alternative that uses the GPU: https://github.com/yasuhirohoshino/ofxGpuLut but must convert the more standard .cube LUT's to .png format by hand.