AFM.crop: Crops an AFM image

View source: R/AFM.crop.R

AFM.cropR Documentation

Crops an AFM image

Description

Creates a subset of an AFM image by cropping the original image into a smaller AFM image object

Usage

AFM.crop(
  obj,
  x0 = NA,
  y0 = NA,
  width.pixels = 1024,
  height.pixels = 1024,
  verbose = FALSE
)

Arguments

obj

AFMdata object to be cropped

x0

x origin location in pixels, if NA use GUI to click on origin

y0

y origin location in pixels, if NA use GUI to click on origin

width.pixels

width of cropped image in pixels

height.pixels

height of cropped image in pixels

verbose

output fitting parameters

Value

returns cropped image

Author(s)

Thomas Gredig

Examples

d <- AFM.artificialImage(type='calibration', width=100, height=100, verbose=FALSE)
plot(d)
d1 = AFM.crop(d, x0=45, y0=45, width.pixels = 50, height.pixels = 50)
plot(d1)


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