[ISETCAM] Scene-Describing the scene structure
前言
原文连接:https://stanford.edu/~wandell/data/isetcam/scene/t_sceneIntroduction.html
保留了个人理解的翻译,如有错误烦请指证。
一、介绍
ISETCam由几个重要对象,即图像采集管道的重要部分组成。即scene, optical image, sensor, 和image processor。此脚本介绍的就是scene及其编程风格。
二、内容
1.初始化
ieInit
2.创建scene
% 创建一个简单场景(颜色图表)
scene = sceneCreate('macbeth d65');
% 初始化GUI并展示
ieAddObject(scene);
sceneWindow;
3.scene基本操作
% Get获取参数
name = sceneGet(scene,'name')
hFOV = sceneGet(scene,'hfov')
% Get可以指定单位
sceneGet(scene,'sample spacing','um')
sceneGet(scene,'sample spacing','m')
% plot特征
scenePlot(scene,'illuminant energy');
% Set改变参数
scene = sceneSet(scene,'hfov',0.5);
% 从文件中创建场景(github的版本仅含一个示例场景)
fname = fullfile(isetRootPath,'data','images','multispectral','StuffedAnimals_tungsten-hdrs.mat');
scene = sceneFromFile(fname,'multispectral');
sceneWindow(scene);
% adjus改变光谱功率分布
bb = blackbody(sceneGet(scene,'wave'),6500,'energy');
scene = sceneAdjustIlluminant(scene,bb);
sceneWindow(scene);
参数之间存在依赖