eye-boof.core.io

Provides functions to load images from different resources and to save them
into files.

ImageDiskPersistence

protocol

Persistence of image data as files.

members

save-image!

(save-image! img filepath)
Saves the given image representation.

load-image->gray-u8

(load-image->gray-u8 resource)
Returns a BoofCV GrayU8 image from a given resource, which can be a String
(file path), File, InputStream or URL. If the resource represents a color
image, the intensities of each channel are averaged together.

load-image->planar-u8

(load-image->planar-u8 resource)
Returns a BoofCV Planar<GrayU8> image from a given resource, which can be a
String (file path), File, InputStream or URL.

ToBufferedImage

protocol

Coerce different image resource representations to BufferedImage.
BufferedImage is usually an intermediary file type to load images from
different resources.

members

boofcv->buff-image

(boofcv->buff-image img)
Returns a BufferedImage from a BoofCV image format.

resource->buff-image

(resource->buff-image r)
Returns a BufferedImage from a given resource.