[ISETCAM] Scene

编程入门 行业动态 更新时间:2024-10-08 19:39:29

[ISETCAM] <a href=https://www.elefans.com/category/jswz/34/1683306.html style=Scene"/>

[ISETCAM] Scene

[ISETCAM] Scene-Describing the scene structure


文章目录

  • [ISETCAM] Scene-Describing the scene structure
  • 前言
  • 一、介绍
  • 二、内容
    • 1.初始化
    • 2.创建scene
    • 3.scene基本操作


前言

原文连接:.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);

参数之间存在依赖

更多推荐

[ISETCAM] Scene

本文发布于:2024-02-14 06:00:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1762052.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ISETCAM   Scene

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!