Instafilter\Filter::curves PHP Method

curves() public method

This takes a series of points and generates a function for the graph that fits the points. That function is then applied to each pixes, as in photoshop. It should use curves_graph once the function has been generated.
public curves ( array $points, integer $channel = null ) : Filter
$points array an array of arrays. array(array(12, 32), array(32,56)) etc.
$channel integer use imagemagicks contants here
return Filter
    public function curves($points, $channel = null)
    {
        //polynomial interpolation
        throw new \Exception('Curves is not yet implemented.');
        return $this;
    }