Learn R Programming

patternize (version 0.0.5)

sampleLandmarks: Sample landmarks in an image.

Description

Sample landmarks in an image.

Usage

sampleLandmarks(sampleList, resampleFactor = NULL, crop = c(0, 0, 0, 0))

Value

landmark matrix or landmark list

Arguments

sampleList

RasterStack or list of RasterStack objects as obtained by makeList.

resampleFactor

Integer for downsampling the image(s) used by redRes.

crop

Vector c(xmin, xmax, ymin, ymax) that specifies the pixel coordinates to crop the original image.

Examples

Run this code

if (FALSE) {
IDlist <- c('BC0077','BC0071')
prepath <- system.file("extdata",  package = 'patternize')
extension <- '.jpg'
imageList <- makeList(IDlist, 'image', prepath, extension)

landmarkList <- sampleLandmarks(imageList)
}

Run the code above in your browser using DataLab