OPENCV



Name convert()
Examples convert
import hypermedia.video.*;

OpenCV opencv;

size( 600, 400 );
opencv = new OpenCV(this);
opencv.loadImage("wizard-of-oz.jpg");
opencv.convert(OpenCV.GRAY);
image( opencv.image(OpenCV.SOURCE), 0, 0 );
image( opencv.image(), 300, 0 );

Description Convert the current image from one colorspace to another.
Syntax convert(type);
Parameters
type int : the target color space : RGB, GRAY
Return None
Usage Application