ZBLOG

def ps_propagate(data, d, L, beam_c, out_schema = None): ''' Propagates light back through a hologram that was taken using a diverging reference beam. Parameters ---------- data is a holopy Xarray. It is the hologram to r...

These functions implement hologram propagation in holopy, a Python library for digital holography.

ps_propagate(data, d, L, beam_c, out_schema = None) is a function that propagates a hologram along the optical axis by a specified distance or set of distances. The inputs are:

  • data: a holopy xarray containing the hologram to propagate
  • d: the distance(s) in meters to propagate the hologram
  • L: the distance from screen to pinhole in meters
  • beam_c: the x,y coordinates in pixels of the center of the beam
  • out_schema: optional size and pixel spacing of output image.

The function returns an xarray containing the propagated hologram(s) with updated metadata.

ps_propagate_plane(data, d, L, beam_c, out_schema = None, old_Ip = False) is a helper function called by ps_propagate() that propagates a hologram for a single plane. The inputs are similar to ps_propagate(), but also include:

  • old_Ip: a boolean indicating whether to use a previously computed Ip value to speed up calculations.

propagate(data, d, medium_index=None, illum_wavelen=None, cfsp=0, gradient_filter=False) is a wrapper function for ps_propagate() that takes additional parameters:

  • medium_index: the refractive index of the medium
  • illum_wavelen: the wavelength of the illumination source
  • cfsp: integer cascaded free-space propagation factor for transfer function calculation
  • gradient_filter: a float specifying a distance to subtract a second propagated result to enhance contrast of rapidly varying features.

The three functions work together to calculate the transfer function and propagate a hologram. They implement the algorithm described in Jericho and Kreuzer, “Point Source Digital In-Line Holographic Microscopy,” Chapter 1 of Coherent Light Microscopy, Springer, 2010.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=1315

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?