Entrance Pupil AND Exit Pupil

Entrance Pupil

The entrance pupil of a system is the imageof the aperture stop as seen from a point on the optic axis in the objectplane.


In the illustration, the physical apertureis behind the lens. You can see that more light will get through the physicalaperture behind the lens than would have if the lens were not present. Theextreme ray is one that is refracted by the lens so that it just passes throughthe aperture. Tracing the projected path of that extreme ray without the lens,you can see that the entrance pupil is the size aperture that would be requiredto pass that extreme ray in the absence of the lens.


Exit Pupil

The exit pupil of a system is the image ofthe aperture stop as seen from a point on the optic axis in the image plane.

In this case where the physical aperturestop is in front of the lens, the exit pupil is the image of that aperture stopas seen from the optic axis in the image plane, looking back through the lens.In this case the entrance pupil is just the physical aperture since there is nolens intervening from the standpoint of the object.



FROM:

http://hyperphysics.phy-astr.gsu.edu/hbase/geoopt/stop.html#c3

https://en.wikipedia.org/wiki/Entrance_pupil





### 关于 `self.exit` 和 `self.entrance` 的赋值 在 Python 中,类的实例属性可以通过 `self` 进行访问和修改。当提到 `self.exit` 或 `self.entrance` 时,通常是在定义一个类的方法内部操作这些属性[^1]。 如果需要初始化或设置默认值给 `exit` 和 `entrance` 属性,可以利用字典方法 `.setdefault()` 来实现更简洁的操作。例如: ```python class ExampleClass: def __init__(self, key_exit, key_entrance, get_value_func): self.attributes = {} self.set_attribute(key_exit, 'exit', get_value_func) self.set_attribute(key_entrance, 'entrance', get_value_func) def set_attribute(self, key, attr_name, default_func): value = self.attributes.setdefault(key, default_func(key)) setattr(self, attr_name, value) ``` 上述代码展示了如何通过自定义函数来动态设定对象的属性值,并将其存储到字典中以便后续使用。这里的关键在于调用了 `setattr` 函数以及字典的 `.setdefault()` 方法。 对于为何不采用类似于其他语言中的 `switch/case` 结构,在 Python 设计哲学里提倡简单性和可读性,因此推荐使用字典映射或者条件分支语句替代复杂的多路判断逻辑[^2]。 尽管如此,从 Python 3.10 开始引入了结构化模式匹配 (Structural Pattern Matching),即 `match-case` 语法作为新的控制流工具之一用于处理多种情况下的数据解包与比较需求。 #### 示例解释 假设我们有一个场景需要记录某个建筑物的不同入口 (`entrance`) 及出口(`exit`) 并关联特定的功能,则可以用如下方式创建此类并完成相应属性分配: ```python def generate_default(name): return f"default_{name}" building = ExampleClass('main_door', 'side_gate', generate_default) print(building.exit) # Output: main_door's corresponding value or generated one. print(building.entrance) # Output: side_gate's corresponding value or generated one. ``` 此例子说明了即使键不存在也能自动获取预设好的缺省返回项从而顺利完成整个流程配置过程.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值