org.apache.clojure-mxnet.image
apply-border
(apply-border input top bottom left right {:keys [fill-type value values output], :or {fill-type nil, value nil, values nil, output nil}, :as opts})
(apply-border input top bottom left right)
decode-image
(decode-image input-stream {:keys [color-flag to-rgb output], :or {color-flag COLOR, to-rgb true, output nil}, :as opts})
(decode-image input-stream)
Decodes an image from an input stream
fixed-crop
(fixed-crop input x0 y0 w h)
Return a fixed crop of the image
read-image
(read-image filename {:keys [color-flag to-rgb output], :or {color-flag nil, to-rgb nil, output nil}, :as opts})
(read-image filename)
Reads an image file and returns an ndarray
resize-image
(resize-image input w h {:keys [interpolation output], :or {interpolation nil, output nil}, :as opts})
(resize-image input w h)
Resizes the image array to (width, height)
rgb-array?
(rgb-array? input)
Returns whether the ndarray is in the RGB format
to-image
(to-image input)
Convert a NDArray image in RGB format to a real image