Learn R Programming

AFM (version 2.0)

getHolesStatistics: calculate statistics about holes in a binary image

Description

getHolesStatistics returns a binary AFMImage

Usage

getHolesStatistics(AFMImage)

Arguments

AFMImage

an AFMImage from Atomic Force Microscopy

Value

an AFMImage

Examples

Run this code
# NOT RUN {
library(AFM)

data(AFMImageOfAluminiumInterface)
newAFMImage<-copy(AFMImageOfAluminiumInterface)
displayIn3D(newAFMImage,noLight=TRUE)
newAFMImage<-multiplyHeightsAFMImage(newAFMImage, multiplier=2)
displayIn3D(newAFMImage,noLight=TRUE)
newAFMImage<-filterAFMImage(newAFMImage,  Min=140, Max=300)
displayIn3D(newAFMImage,noLight=TRUE)
newAFMImage<-makeBinaryAFMImage(newAFMImage)
displayIn3D(newAFMImage,noLight=TRUE)

holesStats<-getHolesStatistics(newAFMImage)
print(holesStats)
# }

Run the code above in your browser using DataLab