get.fwhm | R Documentation |
Returns the pixel Full Width Half Max of an input image matrix
get.fwhm(zdist)
zdist |
numeric (n,m) array; image for which FWHM is desired |
The function determines the full width at half max of the input image, by searching outwards from the image maxima.
numeric; value of the FWHM in pixels
Angus H Wright ICRAR angus.wright@icrar.org
measure.fluxes, flux.measurements
#Load LAMBDAR
library(LAMBDAR)
#Make Gaussian data: stdev 5 pix
sd<-5
x<-matrix(-10:10,21,21,byrow=TRUE)
zdist<-matrix(exp(-1*(t(x)^2/(2*sd^2)+x^2/(2*sd^2))),21,21)
print(paste(2*sqrt(2*log(2))*sd,"~",get.fwhm(zdist)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.