Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
stm committed Oct 29, 2021
1 parent e61e9ef commit 79e979c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/self-similarity.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ NULL
#'
#' @param img An image in form of a matrix or array of numeric values,
#' preferably by square size. If the input is not square, bilinear resizing to
#' a square size is performade using the
#' a square size is performed using the
#' \code{\link[OpenImageR:resizeImage]{OpenImageR}} package. Use e.g.
#' \code{\link{img_read}()} to read an image file into \code{R}.
#' @param full logical. Should the full frequency range be used for
Expand Down
4 changes: 2 additions & 2 deletions R/symmetry.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ NULL
#' image. Higher values indicate higher image symmetry.
#'
#' @details The function returns the vertical and horizontal mirror symmetry of
#' an image \code{img}. Symmetry values can range between 0 (not symmmetrical)
#' an image \code{img}. Symmetry values can range between 0 (not symmetrical)
#' and 1 (fully symmetrical). If \code{vertical} or \code{horizontal} is set
#' to \code{FALSE} then vertical or horizontal symmetry is not computed,
#' respectively.
Expand All @@ -31,7 +31,7 @@ NULL
#' maximal score is computed as the image's overall symmetry. Advanced users
#' can reverse this order by setting \code{per_channel = FALSE}. This results
#' in first computing the weighted averages for each position of the mirror
#' axis seperately, and afterwards finding the maximal overall symmetry score.
#' axis separately, and afterwards finding the maximal overall symmetry score.
#'
#'
#' @param img An image in form of a matrix or array of numeric values. Use e.g.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ img_symmetry(rails, horizontal = FALSE)

See the [getting started vignette](https://stm.github.io/imagefluency/articles/getting-started.html) for a detailed introduction (or type `vignette('getting-started', package = 'imagefluency')` into the R console) and the [reference page](https://stm.github.io/imagefluency/reference/index.html) for details on each function.

If you are analyzing a larger number of images, make sure to read the tutorial on how to [analyze multiple imeages at once](https://stm.github.io/imagefluency/articles/batch-processing.html).
If you are analyzing a larger number of images, make sure to read the tutorial on how to [analyze multiple images at once](https://stm.github.io/imagefluency/articles/batch-processing.html).

## Citation

Expand Down
2 changes: 1 addition & 1 deletion vignettes/batch-processing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ If you plan to include typicality in your image analysis next to other metrics,

## Reading all images into memory using lapply()

In the example below, I'll use base R's `lapply()` function to read all images. However, you can of course use purrr's `map()` function just as well.
In the example below, I'll use base R's `lapply()` function to read all images. However, you can of course use `purrr::map()` just as well.

Using `lapply()` is very simple: We tell R to apply the `img_read()` function to every element in the `fileNames` object. The result is a list where every list element contains an image matrix. Thus, this object might be very big!

Expand Down

0 comments on commit 79e979c

Please sign in to comment.