add wrap mode arg to st_warp

未关闭
#4,102 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp, python

调研方向

从 ImageBufAlgo.st_warp 入口点及其 Python 绑定开始,然后比较 ImageBufAlgo.warp 如何暴露 wrap mode。当 st_warp 接受 wrap mode 选项,并且选择其他模式时生成的边缘像素不再默认为黑色,工作就完成了。

由索引模型根据 Issue 内容生成。

描述

Is your feature request related to a problem? Please describe.
The ImageBufAlgo.warp function provides the power to control the wrap mode - i.e. how to generate pixel values outside of the image's data window.
However, st_warp doesn't provide this - or at least doesn't via the Python bindings.

Describe the solution you'd like
Add warp mode to the ImageBufAlgo.st_warp function

Describe alternatives you've considered
I was wondering about giving access to the Filter2D class in Python, or some new class which represents the combination of a filter and some other options like wrap mode. For any functions which use these options you just pass in an object holding all the option values.

Additional context
While comparing warped images made by OIIO vs. Nuke, the former has darker edges, because black outside is the default for st_warp.

主要语言
C++
星标
2.4k
派生
727
平均合并
4 天 8 小时
30 天内合并 PR
67

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AcademySoftwareFoundation/OpenImageIO 的其他 Issue

查看 AcademySoftwareFoundation/OpenImageIO 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。