| OpenCV index |
||||
| Name | convert ( ) | |||
| Examples | import hypermedia.video.*;
OpenCV opencv;
void setup() {
size( 640, 240 );
// open video stream
opencv = new OpenCV(this);
opencv.capture( 320, 240 );
}
void draw() {
// grab frame from camera
opencv.read();
// convert to gray
opencv.convert( OpenCV.GRAY );
// display images
image( opencv.image(OpenCV.ORIGINAL), 0, 0 );
image( opencv.image(), 320, 0 );
}
|
|||
| Description | Converts the actual image from one color space to another. | |||
| Syntax | convert(type); |
|||
| Parameters |
|
|||
| Returns | None | |||
| Usage | Web & Application | |||
| Related | ||||