View source: R/remove_black_bars.R
remove_black_bars | R Documentation |
remove_black_bars
takes a matchr_image
vector, a pixel array, or a
list of pixel arrays and removes black bars at the top and bottom of the
images, if any are identified.
remove_black_bars(x, ...)
## S3 method for class 'matchr_image'
remove_black_bars(x, ...)
## S3 method for class 'list'
remove_black_bars(x, ...)
## S3 method for class 'array'
remove_black_bars(x, ...)
## S3 method for class 'logical'
remove_black_bars(x, ...)
x |
Vector of class |
... |
Not used. |
Object of the same class and length as the input x
, but with black
bars removed.
## Not run:
# Setup
img <- load_image(test_urls)
# Use remove_black_bars on matchr_image vectors
remove_black_bars(img)
# Or on raw pixel arrays, singly or in a list
remove_black_bars(get_array(img))
remove_black_bars(get_array(img)[[13]])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.