kdl.py 文件源码

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

项目:jamespy_py3 作者: jskDr 项目源码 文件源码
def extention(self, camera_bit_resolution=14):
        fname_org = self.fname_org
        h2d = self.h2d

        cell_df = pd.read_csv(fname_org)
        Limg, Lx, Ly = cell_fd_info(cell_df)

        cell_df_ext = cell_df.copy()

        # Fresnel diffraction
        cell_img_fd_a = cell_fd_conv(cell_df, h2d)
        cell_df_ext['freznel image'] = cell_img_fd_a.reshape(-1)

        # max_v, min_v = np.max(cell_df["image"]), np.min(cell_df["image"])
        cell_img_fd_a_2d = cell_img_fd_a.reshape(Limg, -1)
        cell_img_fd_a_2d_scale = preprocessing.minmax_scale(
            np.abs(cell_img_fd_a_2d)) * (2**camera_bit_resolution)
        cell_img_fd_a_2d_scale_200x144x144 = cell_img_fd_a_2d_scale.reshape(
            Limg, Lx, Ly).astype(int)
        cell_df_ext[
            'mag freznel image'] = cell_img_fd_a_2d_scale_200x144x144.reshape(-1)

        return cell_df_ext


#Deep Learning
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号