Learn R Programming

AFM (version 2.0)

getPaddedAFMImage: Get a zero padded AFMImage

Description

Get a zero padded AFMImage useful in Power Spectral Density analysis. The original AFMImage is padded with zero in order to get a larger square AFMImage which size is a power of 2.

Usage

getPaddedAFMImage(AFMImage)

Arguments

AFMImage

an AFMImage from Atomic Force Microscopy

Value

a zero-padded AFMImage with a fullfilename equals to the original fullfilename pasted with padded-to-"ScanSize".txt

Examples

Run this code
# NOT RUN {
library(AFM)

data(AFMImageOfNormallyDistributedHeights)
paddedAFMImage<-getPaddedAFMImage(AFMImageOfNormallyDistributedHeights)
displayIn3D(AFMImage= paddedAFMImage, width= 1024,noLight=TRUE)
# }

Run the code above in your browser using DataLab