Adjust the scene wavelength representation

Wavelengths are adjusted by linear interpolation of the spectral radiance data.

(c) Imageval Consulting, LCC 2012

Contents

ieInit
scene = sceneCreate;
sceneGet(scene,'wave')
ieAddObject(scene); sceneWindow;
fprintf('Note the wavelength representation in the window\n');
ans =

  31×1 single column vector

   400
   410
   420
   430
   440
   450
   460
   470
   480
   490
   500
   510
   520
   530
   540
   550
   560
   570
   580
   590
   600
   610
   620
   630
   640
   650
   660
   670
   680
   690
   700

Note the wavelength representation in the window

Adjust the wavelength to 5 nm spacing

scene = sceneSet(scene,'wave',400:5:700);
scene = sceneSet(scene,'name','5 nm spacing');
ieAddObject(scene); sceneWindow;
fprintf('Note the wavelength representation in the window\n');
Note the wavelength representation in the window

Now get a narrow band representation

scene = sceneSet(scene,'wave',500:2:600);
scene = sceneSet(scene,'name','2 nm narrow band spacing');
ieAddObject(scene); sceneWindow;
fprintf('Note the wavelength representation in the window\n');
Note the wavelength representation in the window