Blue Brain BioExplorer的Media Maker Python SDK
项目描述
Media Maker Python SDK
描述
Media Maker插件为Blue Brain BioExplorer提供了一个媒体生成API。
API
快照
以下示例说明了如何连接到Blue Brain BioExplorer并将当前视图的快照导出到磁盘。快照以512x512的分辨率导出到/tmp文件夹,每像素16个样本。
from bioexplorer import BioExplorer
from mediamaker import MovieMaker
bio_explorer = BioExplorer('localhost:5000')
movie_maker = MovieMaker(bio_explorer)
movie_maker.create_snapshot(
path='/tmp/test.png',size=[512, 512], samples_per_pixel=16)
电影
以下示例说明了如何连接到Blue Brain BioExplorer并生成一组根据给定的相机控制点给出的帧。帧导出到/tmp文件夹。
from bioexplorer import BioExplorer
from mediamaker import MovieMaker
bio_explorer = BioExplorer('localhost:5000')
movie_maker = MovieMaker(bio_explorer)
control_points = [
{
'apertureRadius': 0.0,
'direction': [0.0, 0.0, -1.0],
'focusDistance': 0.0,
'origin': [0.5, 0.5, 1.5],
'up': [0.0, 1.0, 0.0]
},
{
'apertureRadius': 0.0,
'direction': [-0.482, -0.351, -0.802],
'focusDistance': 0.0,
'origin': [2.020, 1.606, 3.030],
'up': [-0.199, 0.936, -0.289]
}
]
movie_maker.build_camera_path(
control_points=control_points, nb_steps_between_control_points=50,
smoothing_size=50)
movie_maker.set_current_frame(10)
movie_maker.create_movie(
path='/tmp', size=[512, 512], samples_per_pixel=16, start_frame=10, end_frame=20)
许可协议
此软件可在GNU通用公共许可证下下载和使用(GPL,或“免费软件”)。代码于2021年2月获得开源委员会和Blue Brain项目主要协调员的批准后开源。
联系方式
有关Media Maker插件的更多信息,请联系
Cyrille Favreau
cyrille.favreau@epfl.ch
资金与致谢
本软件的开发得到了瑞士联邦理工学院(EPFL)下属洛桑联邦理工学院(EPFL)的Blue Brain项目的研究资助,该项目由瑞士政府的技术科学ETH委员会资助。
版权所有 2020–2021,Blue Brain项目/EPFL
项目详情
关闭
mediamaker-0.3.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 3f2deb7cb8a77c96a7bfd18d747ba691fb64e65fd140debc710e9debad8ba8cb |
|
MD5 | b7579a4886e294c257d16a203ce7d0a3 |
|
BLAKE2b-256 | 9b2bc60936bb9dc973279feadd144d5add0b5ed1f80604c43a531b588fc8c05a |