image thumbnail

Software for hyper-spectral data pre-processing

by

 

07 Mar 2013 (Updated )

The software offers a user-friendly tool (based on two GUIs) for pre-processing reflectance spectra

[dati]=read_asd_v2(FileName,FilePath)
function [dati]=read_asd_v2(FileName,FilePath)
fid=fopen([FilePath,FileName],'r');
white=zeros(2151,1);
measure=zeros(2151,1);
fseek(fid,484,'bof');
for i2=1:2151,
    measure(i2)=fread(fid,1,'double');
end
fseek(fid,20,'cof');
for i3=1:2151,
    white(i3)=fread(fid,1,'double');
end
spectra=measure./white;
dati=spectra;
fclose(fid);

Contact us