Learn R Programming

AFM (version 1.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
library(AFM)

data(AFMImageOfNormallyDistributedHeights)
paddedAFMImage<-getPaddedAFMImage(AFMImageOfNormallyDistributedHeights)
displayIn3D(AFMImage= paddedAFMImage, width= 1024)

Run the code above in your browser using DataLab