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
)
AFMdata object to be cropped
x origin location in pixels, if NA
use GUI to click on origin
y origin location in pixels, if NA
use GUI to click on origin
width of cropped image in pixels
height of cropped image in pixels
output fitting parameters
returns cropped image
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