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

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

See also

Author

Thomas Gredig

Examples

filename = AFM.getSampleImages('ibw')[1]
afmd = AFM.import(filename)
afmd2 = AFM.getLine(afmd, 50)
plot(afmd2, addLines = TRUE)
#> Graphing: HeightRetrace

head(AFM.linePlot(afmd2, dataOnly = TRUE))
#>           x           z type
#> 1   0.00000  0.06892265    1
#> 2  31.49606  5.63485969    1
#> 3  62.99213 -0.84705221    1
#> 4  94.48819 -6.24848440    1
#> 5 125.98425  8.27435542    1
#> 6 157.48031  1.71803549    1