measure_image: Measure morphometric traits of a single image

View source: R/measure_image.R

measure_imageR Documentation

Measure morphometric traits of a single image

Description

Measure morphometric traits of a single image

Usage

measure_image(path, find_eye = TRUE, plot_image = TRUE, scaling_factor = NULL)

Arguments

path

path to image either absolute or relative. string. See Details for more info.

find_eye

try to find eye of daphnia? if eye can't be found automatically falls back to only outline measurement. boolean

plot_image

whether or not to plot resulting image. boolean

scaling_factor

scale measurements to other unit. numeric. See Details for more info

Details

Currently only png and jpg formats are allowed as input images. scaling_factor describes how many pixels occur in one other unit. For example if one mm corresponds to 100 pixels the scaling factor would be 100. You can calculate the scaling factor by taking images of a graticule ans see how many pixels are in a unit of length with an image analysis tool such as imageJ.

Examples

## Not run: 
measure_image("path/to/image")
# scale images to other unit
measure_image("path/to/image", scaling_factor = 134)

## End(Not run)

nelstevens/daphniaRuler documentation built on May 14, 2024, 2:11 p.m.