Skip to content

Provides access to a SpectralLibrary Interface.

Members

Name Description
Method AddSample Adds a Spectral Sample to the spectral library.
Method AddSensor Adds a Spectral Sensor to the spectral library.
Method BuildMatchedFilters Compute matched filters for target spectra using background covariance.
Method ComputeBackgroundStats Compute background statistics from the input raster.
Method LoadENVISpectralLibrary Loads the ENVI Spectral Libary located in the specified file path.
Method LoadESRISpectralLibrary Loads the ESRI Spectral Libary located in the specified file path.
Method LoadUSGSSpectralLibrary Loads the USGS Spectral Libary located in the specified folder path.
Method RemoveContinuum Remove continuum from a spectral library.
Method RemoveSample Removes a Spectral Sample from the spectral library specified by its ID.
Method RemoveSensor Removes a Spectral Sensor from the spectral library specified by its ID.
Method Resample Resample a spectral library to target min / max wavelengths.
Method ResampleCenter Resample a spectral library to target center wavelengths.
Method ResampleToTargetRaster Resample a spectral library to target raster.
Method ResampleToTargetSensor Resample a spectral library to target sensor.
Read-only property Samples Gets the Spectral Library array of Samples.
Method SaveAsESRISpectralLibrary Saves the Spectral Library as ESRI Spectral Library file (.esl) in the specified path
Read-only property Sensors Gets the Spectral Library array of Sensors.
Read-only property Source Gets the Spectral Library source path.
Read-only property SpecLibType Gets the Spectral Library Type.
Read-only property Version Gets the Spectral Library Version.

ISpectralLibrary.AddSample Method

Adds a Spectral Sample to the spectral library.

Public Sub AddSample ( _
    ByVal pSpectralSample As ISpectralSample _
)
public void AddSample (
    ISpectralSample pSpectralSample
);

ISpectralLibrary.AddSensor Method

Adds a Spectral Sensor to the spectral library.

Public Sub AddSensor ( _
    ByVal pSpectralSensor As ISpectralSensor _
)
public void AddSensor (
    ISpectralSensor pSpectralSensor
);

ISpectralLibrary.BuildMatchedFilters Method

Compute matched filters for target spectra using background covariance.

Public Sub BuildMatchedFilters ( _
    ByVal pCovMatArray As IDoubleArray, _
    ByVal pTargetArray As IDoubleArray, _
    ByVal numBands As Integer, _
    ByVal numTargets As Integer, _
    ByVal Method As SpectralMatchingMethod, _
    ByRef ppBandWeights As IDoubleArray, _
    ByRef ppBandIsValid As ILongArray _
)
public void BuildMatchedFilters (
    IDoubleArray pCovMatArray,
    IDoubleArray pTargetArray,
    int numBands,
    int numTargets,
    SpectralMatchingMethod Method,
    ref IDoubleArray ppBandWeights,
    ref ILongArray ppBandIsValid
);

ISpectralLibrary.ComputeBackgroundStats Method

Compute background statistics from the input raster.

Public Sub ComputeBackgroundStats ( _
    ByVal pRas As Object, _
    ByVal pTrackCancel As ITrackCancel, _
    ByRef ppCovMatArray As IDoubleArray, _
    ByRef ppMeanArray As IDoubleArray _
)
public void ComputeBackgroundStats (
    object pRas,
    ITrackCancel pTrackCancel,
    ref IDoubleArray ppCovMatArray,
    ref IDoubleArray ppMeanArray
);

ISpectralLibrary.LoadENVISpectralLibrary Method

Loads the ENVI Spectral Libary located in the specified file path.

Public Sub LoadENVISpectralLibrary ( _
    ByVal Path As String _
)
public void LoadENVISpectralLibrary (
    string Path
);

ISpectralLibrary.LoadESRISpectralLibrary Method

Loads the ESRI Spectral Libary located in the specified file path.

Public Sub LoadESRISpectralLibrary ( _
    ByVal Path As String _
)
public void LoadESRISpectralLibrary (
    string Path
);

ISpectralLibrary.LoadUSGSSpectralLibrary Method

Loads the USGS Spectral Libary located in the specified folder path.

Public Sub LoadUSGSSpectralLibrary ( _
    ByVal Path As String, _
    ByVal fullyLoad As Boolean _
)
public void LoadUSGSSpectralLibrary (
    string Path,
    bool fullyLoad
);

ISpectralLibrary.RemoveContinuum Method

Remove continuum from a spectral library.

Public Sub RemoveContinuum ( _
)
public void RemoveContinuum (
);

ISpectralLibrary.RemoveSample Method

Removes a Spectral Sample from the spectral library specified by its ID.

Public Sub RemoveSample ( _
    ByVal SampleId As Guid _
)
public void RemoveSample (
    Guid SampleId
);

ISpectralLibrary.RemoveSensor Method

Removes a Spectral Sensor from the spectral library specified by its ID.

Public Sub RemoveSensor ( _
    ByVal SensorId As Guid _
)
public void RemoveSensor (
    Guid SensorId
);

ISpectralLibrary.Resample Method

Resample a spectral library to target min / max wavelengths.

Public Sub Resample ( _
    ByVal pTargetMinWavelengths As IDoubleArray, _
    ByVal pTargetMaxWavelengths As IDoubleArray, _
    ByVal targetWlut As WavelengthUnitType, _
    ByVal targetSensorId As Guid, _
    ByVal targetSensorName As String, _
    ByVal Method As SpectralResampleMethod _
)
public void Resample (
    IDoubleArray pTargetMinWavelengths,
    IDoubleArray pTargetMaxWavelengths,
    WavelengthUnitType targetWlut,
    Guid targetSensorId,
    string targetSensorName,
    SpectralResampleMethod Method
);

ISpectralLibrary.ResampleCenter Method

Resample a spectral library to target center wavelengths.

Public Sub ResampleCenter ( _
    ByVal pTargetCenterWavelengths As IDoubleArray, _
    ByVal targetWlut As WavelengthUnitType, _
    ByVal targetSensorId As Guid, _
    ByVal targetSensorName As String, _
    ByVal Method As SpectralResampleMethod _
)
public void ResampleCenter (
    IDoubleArray pTargetCenterWavelengths,
    WavelengthUnitType targetWlut,
    Guid targetSensorId,
    string targetSensorName,
    SpectralResampleMethod Method
);

ISpectralLibrary.ResampleToTargetRaster Method

Resample a spectral library to target raster.

Public Sub ResampleToTargetRaster ( _
    ByVal pRaster As IRaster, _
    ByVal Method As SpectralResampleMethod _
)
public void ResampleToTargetRaster (
    IRaster pRaster,
    SpectralResampleMethod Method
);

ISpectralLibrary.ResampleToTargetSensor Method

Resample a spectral library to target sensor.

Public Sub ResampleToTargetSensor ( _
    ByVal pSpectralSensor As ISpectralSensor, _
    ByVal Method As SpectralResampleMethod _
)
public void ResampleToTargetSensor (
    ISpectralSensor pSpectralSensor,
    SpectralResampleMethod Method
);

ISpectralLibrary.Samples Property

Gets the Spectral Library array of Samples.

Public ReadOnly Property Samples As IArray
public IArray Samples {get;}

ISpectralLibrary.SaveAsESRISpectralLibrary Method

Saves the Spectral Library as ESRI Spectral Library file (.esl) in the specified path

Public Sub SaveAsESRISpectralLibrary ( _
    ByVal Path As String _
)
public void SaveAsESRISpectralLibrary (
    string Path
);

ISpectralLibrary.Sensors Property

Gets the Spectral Library array of Sensors.

Public ReadOnly Property Sensors As IArray
public IArray Sensors {get;}

ISpectralLibrary.Source Property

Gets the Spectral Library source path.

Public ReadOnly Property Source As String
public string Source {get;}

ISpectralLibrary.SpecLibType Property

Gets the Spectral Library Type.

Public ReadOnly Property SpecLibType As SpectralLibraryType
public SpectralLibraryType SpecLibType {get;}

ISpectralLibrary.Version Property

Gets the Spectral Library Version.

Public ReadOnly Property Version As String
public string Version {get;}

Classes that implement ISpectralLibrary

Classes Description
SpectralLibrary The spectral library class.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.