Learn R Programming

AFM (version 2.0)

extractAFMImage: Extract a portion of an AFM image.

Description

The extract will be a square of the specified size. If the size is too large for the original AFMImage, only the biggest valid size will be kept.

Usage

extractAFMImage(AFMImage, cornerX, cornerY, size)

Arguments

AFMImage

an AFMImage from Atomic Force Microscopy

cornerX

horizontal coordinates of the extract

cornerY

vertical coordinates of the extract

size

square size of the extract in number of pixels

Value

a new AFMImage sample

Details

extractAFMImage returns an extract of the AFMImage

Examples

Run this code
# NOT RUN {
  data(AFMImageOfAluminiumInterface)
  anAFMImageExtract<-extractAFMImage(AFMImageOfAluminiumInterface,15,15,256)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab