Add and get objects from the vcSESSION data base
This tutorial also tests whether the ieAddObject and ieGetObject routines are running properly, displaying the global vcSESSION database variable.
Comments about vcSESSION here.
Contents
ieInit
global vcSESSION
scene = sceneCreate;
This is the database structure
vcSESSION.SCENE
ieAddObject(scene);
vcSESSION.SCENE{1}.data
ans =
1×1 cell array
{0×0 double}
ans =
struct with fields:
photons: [64×96×31 single]
luminance: []
knownReflectance: [0.9000 49 1 28]
Get the scene and show it
test = ieGetObject('scene');
sceneWindow;
You can also just put the scene in the argument to add another copy
sceneWindow(scene); vcSESSION.SCENE
ans =
1×2 cell array
{1×1 struct} {1×1 struct}