| Name | loadImage() | ||||||
|---|---|---|---|---|---|---|---|
| Examples | ![]() import hypermedia.video.*;
size( 200, 200 );
OpenCV opencv = new OpenCV( this );
opencv.loadImage( "niolon.jpg", width, height ); // fit OpenCV image to the PApplet size
image( opencv.image(), 0, 0 ); // display OpenCV buffer
image( loadImage("niolon.jpg"), 0, 0); // show image source
|
||||||
| Description | Load an image from the specified file.
Currently the following file formats are supported:
note : this method automatically updates previous memory allocation Currently there is an impressive OpenCV-caused memory leak on Macintosh computers when recalling this method successively. To fix this bug, load the image file from Processing and pass the pixels over usingcopy(). |
||||||
| Syntax | loadImage(file); |
||||||
| Parameters |
|
||||||
| Return | None | ||||||
| Usage | Application | ||||||
| Related |