% SetupFeatureExtractor.m
%
% Sets up the Matlab environment for Spectral, Image and EM feature 
% extraction for the Nomad Rock/Meteorite Classifier.

% Liam Pedersen, Carnegie Mellon University, September 1999.
% version 1.0 - based on Index2Casefile2(...)
% 

%************************************************************
% spectral feature extraction global data
%************************************************************

% SPECTRAL RANGE (nm)
lambda_min = 400;      
lambda_max = 2500;      	% ASDI FieldSpec FR spectrometer
%lambda_max = 1000;     	% OceanOptics S2000 spectrometer

l = lambda_min:lambda_max;	% wavelength range.

% Spectral feature templates T, ltmin.

[T, ltmin, m, SpecLabels] = OOIS2000_SpecFeatureTemplates(1);
%[T, ltmin, m, SpecLabels] = ASDIFR_SpecFeatureTemplates(1);

% R,G,B spectral response functions

load rgb.mat 			% loads vectors R, G, B and l_rgb.  
				% RGB filter fns + wavelength range.

NSpecFeatures = length(ltmin) + 3;
%************************************************************
% image feature extraction global data
%************************************************************

% POMM data for image segmentation

load PixFeatureStats		% loads invCov and Pox
Pxx = [.8 .2; .03 .97];

%************************************************************
% metal detector feaure extraction data
%************************************************************

NMetFeatures = 1;

