How to Use Nokia Imaging SDK Curves Filter

199 Views Asked by At

I am refencing a sample nokia project, and I would like to add the Curves filter. I am unsure of how to do this, as I do not understand what the Curve parameters are that are required by the filter

CurvesFilter(Curve red, curve Green, curve blue)

What do I need to insert into the parameters?

1

There are 1 best solutions below

5
On

Just check documentation. It is described here: CurvesFilter

First constructor creates and initializes a new CurvesFilter with default values:

CurvesFilter()

Second constructor creates and initializes a new CurvesFilter with a set of color curves:

CurvesFilter(Curve, Curve, Curve)

So red, green and blue is type of Curve class. You can check documentation here: Curve

So you should create a new object of the class:

Curve(CurveInterpolation)

CurveInterpolation is the mode of interpolation between points.