clipPaper: Clip Image to Extract the Water-Sensitive Paper

View source: R/clipPaper.R

clipPaperR Documentation

Clip Image to Extract the Water-Sensitive Paper

Description

Click on four points on the image or use the package trained neural net to automatically clip the water-sensitive paper, for further analysis.

Usage

clipPaper(x, method = c("auto", "manual"), align.x = FALSE, display.it = TRUE)

Arguments

x

Either an object of class Image from package EBImage or a character indicating the path to the image file (.jpg, .jpeg, .png, .tif).

method

One of the two characters: "auto" or "manual" to be used to clip the paper from the image.

align.x

Logical. If FALSE (default), the paper will be rotated to align with the x-axis.

display.it

Logical. If TRUE (default), the clipped paper will be displayed.

Value

An object of class Image.

See Also

analyzePaper()

Examples

path <- system.file('images', 'field1.jpg', package = 'hydropaper')
p1 <- clipPaper(path, method = "auto", display.it = FALSE)
display(p1, "raster")


arsilva87/hydropaper documentation built on April 4, 2022, 10:47 a.m.