pullqPLMSample: Interactive Sub-sampling of qPLM Data by Pixel count

View source: R/pullqPLMSample.R

pullqPLMSampleR Documentation

Interactive Sub-sampling of qPLM Data by Pixel count

Description

pullqPLMSample sub-samples a specified number of pixels from a qPLMarr object in a square ROI around an interactively selected point.

Usage

pullqPLMSample(qPLMarr, layer, pixels)

Arguments

qPLMarr

A qPLMarr object.

layer

Value from 1-3; this layer will be displayed on-screen for selecting the ROI (1 = I, 2 = theta, 3 = phi). The resulting subsample will include all of the 'stacked' layers from the qPLMarr object.

pixels

approximate number of pixels required for the sample (rounding for a square region may pull pixels more than specified by this argument).

Value

A qPLMarr object with the subsampled pixels. This object will maintain all the attributes of the original.

See Also

Other qPLM Analysis Functions: angGaussSumm(), centroidCorr(), pullCluster(), pullROI(), qPLMClust(), qPLMTabulate()

Examples

#oldwd<-getwd()
#setwd(system.file("extdata", package = "microTransit"))
#load("testqPLMarr.R")
#setwd(oldwd)

testSample<-pullqPLMSample(testqPLMarr)


TobinH/microTransit documentation built on Jan. 19, 2024, 5:21 a.m.