(add-rect-tx-source-info rect-tx
[source-width source-height]
&
{:keys [source-filename] :or {source-filename nil}})
(affine-scale src scale-x scale-y & {:keys [interpolation]})
Interpolation is one of: :bicubic :bilinear :nearest-neighbor.
Interpolation is one of: :bicubic :bilinear :nearest-neighbor.
(assoc-if m & kvs)
Same as assoc, but skip the assoc if v is nil
Same as assoc, but skip the assoc if v is nil
(channel-shift img shift)
Rearranges the channels in the image by the shift amount (RGB order)
Rearranges the channels in the image by the shift amount (RGB order)
(color-shift img shift-vec random?)
Shifts pixel values of the image by channel. Shift amount can be different for each channel
Shifts pixel values of the image by channel. Shift amount can be different for each channel
(inject-noise img noise-ratio)
Injects noise (pixel-wise) based on the percentage of noise desired in the output image
Injects noise (pixel-wise) based on the percentage of noise desired in the output image
(make-rect-tx-observation-ftn image-dir
mask-dir
mask-color->category-index
rect-tx-target-recipe)
(mirror img & {:keys [direction] :or {direction :random}})
Mirrors an image using keys :horizontal :vertical :random
Mirrors an image using keys :horizontal :vertical :random
(normalize-image img)
Normalizes the image (0-255 to 0-1). Returns a core.matrix vector
Normalizes the image (0-255 to 0-1). Returns a core.matrix vector
(random-rect-tx {:keys [source-filename source-dims target-dims flip-x flip-y
lower-scaling-limit max-angle]})
(rect-tx->affinetransform {:keys [translate1 translate2 xflip yflip angle scale
target-dims]})
(rect-tx-image img tx)
(rect-tx-image img
{:keys [target-dims] :as tx}
&
{:keys [interpolation] :or {interpolation :bicubic}})
given a source image and a 'rect-tx', return a new image according to the rect-tx parameters, with width and height as in :target-dims. optional is the affinetransform interpolation type. Interpolation is one of: :bicubic :bilinear :nearest-neighbor.
given a source image and a 'rect-tx', return a new image according to the rect-tx parameters, with width and height as in :target-dims. optional is the affinetransform interpolation type. Interpolation is one of: :bicubic :bilinear :nearest-neighbor.
(rect-tx-recipe &
{:keys [source-filename source-dims target-dims flip-x flip-y
lower-scaling-limit max-angle]
:or {source-filename nil source-dims nil}})
(rect-tx-w-mask image
mask
mask-color->category-index
{:keys [target-dims] :as rect-tx})
(rotate img degrees random?)
Rotates an image (degrees) and clips parts of image that are outside the bounds
Rotates an image (degrees) and clips parts of image that are outside the bounds
(rotate-img-embiggen img r)
(rotate-img-embiggen img r x y)
rotate the image by a given angle, increasing the size of the result image to ensure that it is fully contained.
rotate the image by a given angle, increasing the size of the result image to ensure that it is fully contained.
(shift img shift direction & {:keys [random?] :or {random? false}})
Shifts the image by a given amount. Returns a vector of 2 images for each shift direction pair (left/right or top/bottom) based on the direction (:horizontal or :vertical)
Shifts the image by a given amount. Returns a vector of 2 images for each shift direction pair (left/right or top/bottom) based on the direction (:horizontal or :vertical)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close