detector.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:prysm 作者: brandondube 项目源码 文件源码
def analytic_ft(self, unit_x, unit_y):
        ''' Analytic fourier transform of a pixel aperture.

        Args:
            unit_x (`numpy.ndarray`): sample points in x axis.

            unit_y (`numpy.ndarray`): sample points in y axis.

        Returns:
            `numpy.ndarray`: 2D numpy array containing the analytic fourier transform.

        '''
        xq, yq = np.meshgrid(unit_x, unit_y)
        return (sinc(xq * self.size_x / 1e3) *
                sinc(yq * self.size_y / 1e3)).astype(config.precision)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号