getCoords: Extract given coordinates (in pixels) from a given JPEG image

Description Usage Arguments Details Author(s) See Also

View source: R/getCoords.R

Description

This function allows to extract given coordinates (in pixels) from a given JPEG image

Usage

1

Arguments

image

The absolute path to the JPEG image you want to use.

Details

This function will first plot the JPEG image on screen and call locator(). You then have to click first on bottomright corner of the rectangle you want to extract, and then close the polygon (see ?locator() for details). A second plot with the cropped image is then printed on screen, where you have to click on topleft and bottomright corner around the string "Exposure: xxx", where xxx is the value of exposure. Be also sure to make your rectangle large enough to include possibly four digits exposure values (keep the right margin larger than the actual number). Coords will be returned in x and y pixel positions counted from the topleft corner of the image. These coords will be used to crop the image to extract exactly the Exposure string within the function getExposure(). Based on the results of getExposure() run on the images, you will evaluate whether to adjust the coordinates and run getExposure again, based on how well exposure was recognised from the OCR procedure.

Author(s)

Gianluca Filippa <gian.filippa@gmail.com>

See Also

getExposure


gianlucafilippa/phenopix documentation built on Nov. 4, 2019, 1:06 p.m.