Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Filter Chain #20

Open
oguzgu opened this issue Nov 28, 2017 · 1 comment
Open

Filter Chain #20

oguzgu opened this issue Nov 28, 2017 · 1 comment

Comments

@oguzgu
Copy link

oguzgu commented Nov 28, 2017

Hi,

How can i create a filter chain?

I need multiple outputs with different filters and blend them to single frame?

@Windsander
Copy link
Owner

After you define a new custom class which extends from GPUImageFilterGroup class, u can use multiple filter by adding it in new class constructor method, like this:

    public GPUImageSobelEdgeDetection() {
        super();
        addFilter(new GPUImageGrayscaleFilter());
        addFilter(new GPUImage3x3TextureSamplingFilter(SOBEL_EDGE_DETECTION));
    }

and that class's instance is what u need in where u want to set a multi-filter.

More easy way to handle this problem is to use a simple function which I'm dealing with.
So the upper method is the only option for now...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants