get_outlines: get_outlines

Description Usage Arguments Value

View source: R/get_outlines_function.R

Description

Uses Momocs::import_jpg() to import outline coordinates from the single .jpg files which are either already avaiable, or were created using the separate_single_artefacts function. This function preserves the filenames.

Usage

1
get_outlines(outpath, tps_file_rescale = NULL)

Arguments

outpath

The path to the folder containing the .jpg files of the singled out artefacts from which the outlines should be derived (as for example created in the separate_single_artefacts function).

tps_file_rescale

(Default = NULL) A dataframe containing at least a column IMAGE and a column SCALE. This dataframe is internally created using the function tps_to_df (for more information see ?tps_to_df()). IMAGE contains the names of the images, as they are written in inpath. SCALE contains the scaling factor from pixel to a metric measurement. Such a file can be created in i.e. tpsDIG2 (Rohlf 2017).

Value

Returns a Momocs Out file containing the outlines' coordinates with their associated IDs, derived from the file name.


yesdavid/outlineR documentation built on Nov. 17, 2021, 4:08 p.m.