Title: | Extension of the R-Package magick |
---|---|
Description: | Image manipulation based on the magick package. It contains functions to select or remove horizontal or vertical stripes from an image. These may be used to cut off undesired areas from an image, e.g. as preparation for optical character recognition (OCR). |
Authors: | Hauke Sonnenberg |
Maintainer: | Hauke Sonnenberg <[email protected]> |
License: | GPL-2 |
Version: | 0.1.0 |
Built: | 2024-11-04 02:48:58 UTC |
Source: | https://github.com/hsonne/magickx |
Extract Rows and Columns from "Matrix Image"
## S3 method for class 'matrix_image' x[...]
## S3 method for class 'matrix_image' x[...]
x |
object of class "matrix_image" |
... |
arguments passed to |
object of class "image-magick"
Dimension of a "Matrix Image"
## S3 method for class 'matrix_image' dim(x)
## S3 method for class 'matrix_image' dim(x)
x |
object of class "matrix_image", as returned by
|
vector of two integers (number of rows, number of columns)
Extract Horizontal or Vertical Stripes from Image
extract(image, i = NULL, j = NULL, widths = NULL, heights = NULL)
extract(image, i = NULL, j = NULL, widths = NULL, heights = NULL)
image |
object of class "matrix_image" |
i |
row indices |
j |
column indices |
widths |
column widths in pixels |
heights |
row heights in pixels |
Arrange Images in a Matrix
image_matrix(images, nrow = NULL, ncol = NULL, byrow = FALSE, dimnames = NULL)
image_matrix(images, nrow = NULL, ncol = NULL, byrow = FALSE, dimnames = NULL)
images |
object of class "magick" representing one or more images |
nrow |
number of rows |
ncol |
number of columns |
byrow |
logical. Shall images be arranged along rows or along columns? |
dimnames |
list of vectors of row and column names, respectively |
Convert List of image-magick Objects to image-magick Object
list_to_magick(x)
list_to_magick(x)
x |
list of objects of class "image-magick" |
object of class "image-magick"
Run image_read
for each element of path
. If
an error occurs, continue with the next element.
try_image_read(path)
try_image_read(path)
path |
passed to |
object of class "magick-image", containing all images that could
be read successfully from the paths given in path