optic_flow_dots

版本 1.1.5 (21.4 KB) 作者: Duijnhouwer
Generate optic flow video files
44.0 次下载
更新时间 2024/5/25

Use optic_flow_dots to generate optic flow video files that simulate arbitrary translational and rotational motions of a camera through a cube-shaped environment of dots, similar to the famous starfield screensaver of yore. The sides of the environment cube have arbitrary length 2. Only the dots within a sphere centered on the camera are visible. The purpose of this sphere is to keep the dot density constant in any direction. The diameter of the sphere is also 2. As the camera moves, dots that cross a side of the cube are wrapped. To prevent cyclical looping of the same dots, the wrapped dots are given fresh random coordinates for the dimensions that did not cross the side. For example, when a dot drops out of the backside of the environment (that is, Z<-1), Z is incremented by 2 and X and Y are set to random values between -1 and 1.

The translation and rotation parameters can be constant throughout the video, or dynamically change from frame to frame. See the descriptions of the 'trans_xyz', 'rot_xyz', and 'rot_dpf' parameters in the function's help section for more information on this.

Other features include setting the background color; shape, size, and color of the dots; limited dot lifetime; toggle erasing between frames on and off; and setting the limits of the dot environment to create, for example, groundplanes or fronto-parallel planes of dots.

All settings are controlled using comma-separated name-value pair arguments. See the function's help section for details.

引用格式

Duijnhouwer (2024). optic_flow_dots (https://github.com/duijnhouwer/optic_flow_dots), GitHub. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.1.5

yadu (yet another description update)

1.1.4

changed screen saver to screensaver in desc.

1.1.3

included the words starfield and screensaver in the description for search purposes

1.1.2

Updated the description once more...

1.1.1

updated the description

1.1.0

Added limited lifetime, dot environment range settings (to create ground plane environments, for example), a frame erase toggle, and updated the help file.

1.0.1

Updated the description

1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库