I have developed a little application using GPUImage
. I set a filter to GPUImageView
and the image changed, but how can I remove the filter to see the real image?
Assuming you're using the following library: https://github.com/CyberAgent/android-gpuimage
Checking at the source code of the abovementioned library you should simply be able to do something like this:
GPUImageView v ...
v.setFilter(new GPUImageFilter(GPUImageFilter.NO_FILTER_VERTEX_SHADER, GPUImageFilter. NO_FILTER_FRAGMENT_SHADER));
which is equivalent to
v.setFilter(new GPUImageFilter());
Since the class has an alternative constructor:
public GPUImageFilter() {
this(NO_FILTER_VERTEX_SHADER, NO_FILTER_FRAGMENT_SHADER);
}
with the default values already applied.
Let me know if that worked out for you.