AFM.getLine: AFM horizontal or vertical profile line

View source: R/AFM.getLine.R

AFM.getLineR Documentation

AFM horizontal or vertical profile line

Description

create a profile data line for a particular position given in pixels; either a horizontal or a vertical line; this is also an easy way to reiterate through all lines of an image

Usage

AFM.getLine(
  obj,
  xPixel = NA,
  yPixel = NA,
  no = 1,
  dataOnly = FALSE,
  verbose = FALSE
)

Arguments

obj

AFMdata object

xPixel

vertical line at this pixel (1 to image resolution), if NA will use yPixel

yPixel

horizontal line at this pixel (1 to image resolution), if NA will use xPixel

no

channel number

dataOnly

if TRUE, returns data instead of AFMdata object

verbose

if TRUE, output additional information

Value

AFMdata object with line data or data frame with data

Author(s)

Thomas Gredig

See Also

AFM.lineProfile

Examples

filename = AFM.getSampleImages()
afmd = AFM.import(filename)
afmd2 = AFM.getLine(afmd, 50)
plot(afmd2, addLines = TRUE)
head(AFM.linePlot(afmd2, dataOnly = TRUE))



thomasgredig/nanoscopeAFM documentation built on Jan. 4, 2023, 1:33 p.m.