public class PreNonUnityCorrection
extends java.lang.Object
Constructor and Description |
---|
PreNonUnityCorrection()
Creates a new instance of PreNonUnityCorrection
|
Modifier and Type | Method and Description |
---|---|
static double[] |
getInterpolatedCorrectionFactors(double[] correctionFactors,
double[] correctionFactorWavelengths,
double[] sourceWavelengths)
Returns the interpolated correction factors for a spectrum by performing
a cubic spline on the standard white wavelength, the white source
wavelengths, and the correction factors..
|
static double[] |
processSpectrum(double[] pixels,
double[] interpolatedFactors,
double[] darkSpectrum)
Calculates the nonunity correction to compensate for a reflection
standard that is not perfectly white.
|
public PreNonUnityCorrection()
public static double[] processSpectrum(double[] pixels, double[] interpolatedFactors, double[] darkSpectrum)
pixels
- the intensity values of light over a lambda range to be
corrected.interpolatedFactors
- the corrections factors.darkSpectrum
- the dark intensity of light over a lambda range.
range.public static double[] getInterpolatedCorrectionFactors(double[] correctionFactors, double[] correctionFactorWavelengths, double[] sourceWavelengths)
correctionFactors
- the correction factors to apply.correctionFactorWavelengths
- the wavelengths the standard
white sample.sourceWavelengths
- the source wavelengths to be corrected.Copyright 2004-2006 Ocean Optics, Inc. All Rights Reserved.