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

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

Thomas Gredig

Examples

d <- AFM.artificialImage(type='calibration', width=100, height=100, verbose=FALSE)
plot(d)
#> Graphing: HeightTrace

d1 = AFM.crop(d, x0=45, y0=45, width.pixels = 50, height.pixels = 50)
plot(d1)
#> Graphing: HeightTrace