Liking cljdoc? Tell your friends :D

think.image.data-augmentation


add-rect-tx-source-infoclj

(add-rect-tx-source-info rect-tx
                         [source-width source-height]
                         &
                         {:keys [source-filename] :or {source-filename nil}})
source

affine-scaleclj

(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.
sourceraw docstring

assoc-ifclj

(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
sourceraw docstring

channel-shiftclj

(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)
sourceraw docstring

color-shiftclj

(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
sourceraw docstring

draw-point-linesclj

(draw-point-lines img points color)
source

draw-tx-boxclj

(draw-tx-box img {:keys [corners] :as tx} color)
source

inject-noiseclj

(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
sourceraw docstring

load-image-w-helpful-exceptionclj

(load-image-w-helpful-exception file)
source

make-noise-imageclj

(make-noise-image img)
source

make-rect-tx-observation-ftnclj

(make-rect-tx-observation-ftn image-dir
                              mask-dir
                              mask-color->category-index
                              rect-tx-target-recipe)
source

mirrorclj

(mirror img & {:keys [direction] :or {direction :random}})

Mirrors an image using keys :horizontal :vertical :random

Mirrors an image using keys :horizontal :vertical :random
sourceraw docstring

normalize-imageclj

(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
sourceraw docstring

randomclj

(random a b)

random float between a and b

random float between a and b
sourceraw docstring

random-rect-txclj

(random-rect-tx {:keys [source-filename source-dims target-dims flip-x flip-y
                        lower-scaling-limit max-angle]})
source

rect-tx->affinetransformclj

(rect-tx->affinetransform {:keys [translate1 translate2 xflip yflip angle scale
                                  target-dims]})
source

rect-tx-imageclj

(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.
sourceraw docstring

rect-tx-recipeclj

(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}})
source

rect-tx-w-maskclj

(rect-tx-w-mask image
                mask
                mask-color->category-index
                {:keys [target-dims] :as rect-tx})
source

replay-rtx-w-maskclj

(replay-rtx-w-mask image-dir mask-dir mask-color->category-index rect-tx)
source

rotateclj

(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
sourceraw docstring

rotate-img-embiggenclj

(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.
sourceraw docstring

shiftclj

(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)
sourceraw docstring

test-imageclj

(test-image filename [target-width target-height])
source

test-image-nxclj

(test-image-nx filename [target-width target-height] n)
source

xform-pointclj

(xform-point tx [x y])
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close