| Modifier and Type | Method | Description |
|---|
static boolean | haveImageReader(java.lang.String filename) |
Checks if the specified image file can be decoded by OpenCV.
|
|---|
static boolean | haveImageWriter(java.lang.String filename) |
Checks if the specified image file or specified file extension can be encoded by OpenCV.
|
|---|
static long | imcount(java.lang.String filename) |
Returns the number of images inside the given file
The function imcount returns the number of pages in a multi-page image (e.g.
|
|---|
static long | imcount(java.lang.String filename,
int flags) |
Returns the number of images inside the given file
The function imcount returns the number of pages in a multi-page image (e.g.
|
|---|
static Mat | imdecode(Mat buf,
int flags) |
Reads an image from a buffer in memory.
|
|---|
static boolean | imdecodeanimation(Mat buf,
Animation animation) |
Loads frames from an animated image buffer into an Animation structure.
|
|---|
static boolean | imdecodeanimation(Mat buf,
Animation animation,
int start) |
Loads frames from an animated image buffer into an Animation structure.
|
|---|
static boolean | imdecodeanimation(Mat buf,
Animation animation,
int start,
int count) |
Loads frames from an animated image buffer into an Animation structure.
|
|---|
static boolean | imdecodemulti(Mat buf,
int flags,
java.util.List<Mat> mats) |
Reads a multi-page image from a buffer in memory.
|
|---|
static boolean | imdecodemulti(Mat buf,
int flags,
java.util.List<Mat> mats,
Range range) |
Reads a multi-page image from a buffer in memory.
|
|---|
static Mat | imdecodeWithMetadata(Mat buf,
MatOfInt metadataTypes,
java.util.List<Mat> metadata) |
Reads an image from a memory buffer and extracts associated metadata.
|
|---|
static Mat | imdecodeWithMetadata(Mat buf,
MatOfInt metadataTypes,
java.util.List<Mat> metadata,
int flags) |
Reads an image from a memory buffer and extracts associated metadata.
|
|---|
static boolean | imencode(java.lang.String ext,
Mat img,
MatOfByte buf) |
Encodes an image into a memory buffer.
|
|---|
static boolean | imencode(java.lang.String ext,
Mat img,
MatOfByte buf,
MatOfInt params) |
Encodes an image into a memory buffer.
|
|---|
static boolean | imencodeanimation(java.lang.String ext,
Animation animation,
MatOfByte buf) |
Encodes an Animation to a memory buffer.
|
|---|
static boolean | imencodeanimation(java.lang.String ext,
Animation animation,
MatOfByte buf,
MatOfInt params) |
Encodes an Animation to a memory buffer.
|
|---|
static boolean | imencodemulti(java.lang.String ext,
java.util.List<Mat> imgs,
MatOfByte buf) |
Encodes array of images into a memory buffer.
|
|---|
static boolean | imencodemulti(java.lang.String ext,
java.util.List<Mat> imgs,
MatOfByte buf,
MatOfInt params) |
Encodes array of images into a memory buffer.
|
|---|
static boolean | imencodeWithMetadata(java.lang.String ext,
Mat img,
MatOfInt metadataTypes,
java.util.List<Mat> metadata,
MatOfByte buf) |
Encodes an image into a memory buffer.
|
|---|
static boolean | imencodeWithMetadata(java.lang.String ext,
Mat img,
MatOfInt metadataTypes,
java.util.List<Mat> metadata,
MatOfByte buf,
MatOfInt params) |
Encodes an image into a memory buffer.
|
|---|
static Mat | imread(java.lang.String filename) |
Loads an image from a file.
|
|---|
static Mat | imread(java.lang.String filename,
int flags) |
Loads an image from a file.
|
|---|
static void | imread(java.lang.String filename,
Mat dst) |
Loads an image from a file.
|
|---|
static void | imread(java.lang.String filename,
Mat dst,
int flags) |
Loads an image from a file.
|
|---|
static boolean | imreadanimation(java.lang.String filename,
Animation animation) |
Loads frames from an animated image file into an Animation structure.
|
|---|
static boolean | imreadanimation(java.lang.String filename,
Animation animation,
int start) |
Loads frames from an animated image file into an Animation structure.
|
|---|
static boolean | imreadanimation(java.lang.String filename,
Animation animation,
int start,
int count) |
Loads frames from an animated image file into an Animation structure.
|
|---|
static boolean | imreadmulti(java.lang.String filename,
java.util.List<Mat> mats) |
Loads a multi-page image from a file.
|
|---|
static boolean | imreadmulti(java.lang.String filename,
java.util.List<Mat> mats,
int flags) |
Loads a multi-page image from a file.
|
|---|
static boolean | imreadmulti(java.lang.String filename,
java.util.List<Mat> mats,
int start,
int count) |
Loads images of a multi-page image from a file.
|
|---|
static boolean | imreadmulti(java.lang.String filename,
java.util.List<Mat> mats,
int start,
int count,
int flags) |
Loads images of a multi-page image from a file.
|
|---|
static Mat | imreadWithMetadata(java.lang.String filename,
MatOfInt metadataTypes,
java.util.List<Mat> metadata) |
Reads an image from a file along with associated metadata.
|
|---|
static Mat | imreadWithMetadata(java.lang.String filename,
MatOfInt metadataTypes,
java.util.List<Mat> metadata,
int flags) |
Reads an image from a file along with associated metadata.
|
|---|
static boolean | imwrite(java.lang.String filename,
Mat img) |
Saves an image to a specified file.
|
|---|
static boolean | imwrite(java.lang.String filename,
Mat img,
MatOfInt params) |
Saves an image to a specified file.
|
|---|
static boolean | imwriteanimation(java.lang.String filename,
Animation animation) |
Saves an Animation to a specified file.
|
|---|
static boolean | imwriteanimation(java.lang.String filename,
Animation animation,
MatOfInt params) |
Saves an Animation to a specified file.
|
|---|
static boolean | imwritemulti(java.lang.String filename,
java.util.List<Mat> img) | |
|---|
static boolean | imwritemulti(java.lang.String filename,
java.util.List<Mat> img,
MatOfInt params) | |
|---|
static boolean | imwriteWithMetadata(java.lang.String filename,
Mat img,
MatOfInt metadataTypes,
java.util.List<Mat> metadata) |
Saves an image to a specified file with metadata
The function imwriteWithMetadata saves the image to the specified file.
|
|---|
static boolean | imwriteWithMetadata(java.lang.String filename,
Mat img,
MatOfInt metadataTypes,
java.util.List<Mat> metadata,
MatOfInt params) |
Saves an image to a specified file with metadata
The function imwriteWithMetadata saves the image to the specified file.
|
|---|