Learn R Programming

patternize (version 0.0.5)

makeList: Build list of landmarks or RasterStacks from images using filepath and file extension.

Description

Build list of landmarks or RasterStacks from images using filepath and file extension.

Usage

makeList(
  IDlist,
  type,
  prepath = NULL,
  extension = NULL,
  format = "imageJ",
  tpsFile = NULL,
  skipLandmark = NULL
)

Value

Landmark or RasterStack list.

Arguments

IDlist

List of sample IDs.

type

'landmark' or 'image' depending on what type of list to make.

prepath

Prepath (default = NULL).

extension

Extension (default = NULL).

format

ImageJ (Fiji) or tps format (default = 'imageJ').

tpsFile

Provide filename of tps file ff format is 'tps'.

skipLandmark

Vector of rownumbers of landmarks to skip.

Examples

Run this code
IDlist <- c('BC0077','BC0071','BC0050','BC0049','BC0004')

prepath <- system.file("extdata",  package = 'patternize')
extension <- '_landmarks_LFW.txt'

landmarkList <- makeList(IDlist, 'landmark', prepath, extension)

extension <- '.jpg'
imageList <- makeList(IDlist, 'image', prepath, extension)

Run the code above in your browser using DataLab