知识卡片
像素轴映射复平面
像素列向右,实轴也向右,实部从左边界按列比例增加。像素行向下,虚轴向上,虚部从上边界按行比例减少。这样同一映射函数既可取一个像素的位置,也可计算分带边界。测试用不对称矩形更容易抓住坐标次序与纵轴符号错误。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- A Tour of Rust 在像素网格与复平面间映射 · 查看原书依据
The program needs to work in two related coordinate spaces: each pixel in the output image corresponds to a point on the complex
参考来源
- 位置:《Programming Rust Fast, Safe Systems Development, 3rd ed. (First Early Release)》第01章《A Tour of Rust》|在像素网格与复平面间映射,来源项目 `book-source`,`extracted/Programming Rust Fast, Safe Systems Development, 3rd ed. (First Early Release)/_epub-src/OEBPS/ch01.xhtml#mapping-from-pixels-to-complex-numbers`
- 结论依据:原文描述两空间及取样图,示例注释解释虚部用减法。
- 原始内容:The program needs to work in two related coordinate spaces: each pixel in the output image corresponds to a point on the complex