You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Just include header of the required file fromìnclude folder. All files areprovided withspb namespace.
WARNING
The parser is tested in a little endian machine. Though we check if the caseis otherwise for a given machine before proceeding further, it is not heavilytested.
The specification of spb format does not allow heterogeneous spds to beserialized. Resampling of your original spds might be necessary beforeproceeding with serialization.
Dependency
None. We are not even using STL or vectors. Probably can be ported to C witha little work.
Should be mostly C++98 compliant as well.
Features
Reader
Writer
SPectral Binary Specification Summary
File section
Bytes
File identifier ’SPB’
3
Header Part
Image width x
4
Image height y
4
Number of spectral channels n
4
First wavelength
4
Wavelength Resolution
4
Last Wavelength
4
Image Data
x*y*n*4
Image data is written to the file in column order and valuesare stored in little endian form.Dimensions (x,y and n) are stored in uint32-formatand wavelength values in float32-format. Spectral imagevalues are reflectance values stored as float32.