[ISETCAM] Scene-Describing the scene structure

[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);

参数之间存在依赖

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值