img2landmark: Convert image to semi-landmarks

Description Usage Arguments Value See Also

Description

A wrapper function to convert image files to semi-landmarks

Usage

1
2
3
4
img2landmark(path, type = c("dir", "file"), threshold = 0.3,
  resize = TRUE, nd = 50, saveoutline = TRUE, savelandmark = TRUE,
  plot = c("no", "overlay", "plain"), savedir, suppress = FALSE, start,
  extract = c(1, 6))

Arguments

path

path(s) to directory (containing the images, accepts multiple directories) or image file(s) to be processed

type

type of input. select folder ("dir"; default) or select image files ("files")

threshold

numeric. argument passed to extractout

resize

logical. whether to resize the image when reading the image. argument passed to loadimg

saveoutline

logical. whether to save the outline. If TRUE, .csv file(s) of the coordinates of each image will be saved

savelandmark

logical. whether to save the sampled semi-landmarks. If TRUE, .csv file(s) of the coordinates of each image will be saved and a .tps file of all images will be saved.

savedir

directory path. folder for files to be saved in if saveoutline=TRUE or savelandmark=TRUE or plot != "no" (default).

nd

numeric. argument passed to equaldist

suppress

logical. whether to supress the system messages on running status.

plot

"no" = no plot; "overlay" = plot of outline and semi-landmarks overlaid on image; "plain" = plot of plain outline

start

numeric. number of which the loop start, useful when type = "dir" with a lot of images to process and processing had to be restarted.

extract

argument passed to getclass

Value

if saveoutline=TRUE or savelandmark=TRUE or plot != "no", files will be saved into specified folder. Other values:

outline

list of outline xy coordinates

landmark

array of sampled semi-landmarks xy coordinates

class

factor of class name

See Also

Which this function wraps: extractout, equaldist


jinyung/otolith documentation built on May 19, 2019, 10:36 a.m.