class: UtilImageIO
[22:14] static extends: object
Static wrappers for BoofCV image and general I/O helpers.
Methods
-
loadImage (
string Path)Loads an image file as a Java BufferedImage.
- @p
Pathis the image file path. - @r
AnAussomJavaObject wrapping java.awt.image.BufferedImage, or null when BoofCV cannot load the image.
- @p
-
loadImageNotNull (
string Path)Loads an image file as a Java BufferedImage and throws if it cannot be loaded.
- @p
Pathis the image file path. - @r
AnAussomJavaObject wrapping java.awt.image.BufferedImage.
- @p
-
loadImageGray (
string Path, string ImageClassName)Loads an image file as a BoofCV gray image.
- @p
Pathis the image file path. - @p
ImageClassNameis a full gray image class name or one of u8, grayu8, s8, grays8, u16, grayu16, s16, grays16, s32, grays32, s64, grays64, f32, grayf32, f64, or grayf64. - @r
Thematching Aussom gray image wrapper.
- @p
-
saveImage (
object Image, string Path)Saves an image to a file.
- @p
Imageis a Java BufferedImage, BoofCV ImageBase wrapper, or AussomJavaObject. - @p
Pathis the output image file path. BoofCV chooses the format from common suffixes such as png, jpg, jpeg, bmp, gif, pgm, and ppm.
- @p
-
loadPgmU8 (
string Path)Loads a PGM file as a GrayU8 image.
- @p
Pathis the PGM file path. - @r
AGrayU8 wrapper.
- @p
-
savePgm (
object GrayU8Image, string Path)Saves a GrayU8 image as a PGM file.
- @p
GrayU8Imageis a GrayU8 wrapper or compatible Java object. - @p
Pathis the output PGM file path.
- @p
-
loadPpm (
string Path)Loads a PPM file as a Planar GrayU8 image.
- @p
Pathis the PPM file path. - @r
APlanar wrapper.
- @p
-
savePpm (
object PlanarImage, string Path)Saves a Planar GrayU8 image as a PPM file.
- @p
PlanarImageis a Planar GrayU8 wrapper or compatible Java object. - @p
Pathis the output PPM file path.
- @p
class: UtilIO
[102:14] static extends: object
Static wrappers for boofcv.io.UtilIO.
Methods
-
pathExample (
string Name)Returns the path to a BoofCV example resource.
- @p
Nameis the example resource name or relative path. - @r
Astring path.
- @p
-
fileExample (
string Name)Returns the file for a BoofCV example resource.
- @p
Nameis the example resource name or relative path. - @r
AnAussomJavaObject wrapping java.io.File.
- @p
-
loadConfig (
string Path)Loads a BoofCV YAML configuration file.
- @p
Pathis the configuration file path. - @r
Theloaded BoofCV configuration object.
- @p