OPENCV



Name contrast()
Examples brightcont
import hypermedia.video.*;

OpenCV opencv;

void setup() {

    size( 320, 240 );

    opencv = new OpenCV(this);
    opencv.capture( width, height );
}

void draw() {

    opencv.read();
    opencv.convert( GRAY );
    opencv.ROI( 110, 70, 100, 100 );
    opencv.brightness( 80 );
    opencv.contrast( 90 );

    image( opencv.image(), 0, 0 );
}

Description Adjust the image contrast with the specified value (in range of -128 to 128).
Syntax contrast(value);
Parameters
value int : the new contrast value
Return None
Usage Application