RoughSurface

Functions

RoughSurface.read_surfMethod
read_surf()

从文件读取表面数据, 与写入数据保持一致, 默认txt文件的数据用制表符分割, csv文件的数据用``,''分割, jld2则为直接保存二进制文件.

source
RoughSurface.write_surfMethod
write_surf()

将表面数据写入文件, 默认txt文件的数据用制表符分割, csv文件的数据用``,''分割, jld2则为直接保存二进制文件

source

Example

using RoughSurface

surf_mat = Base.rand(Float64, (480, 640));
file_path = "test.csv";

# 将表面数据surf_mat写入当前路径的test.csv文件
write_surf(file_path, surf_mat);

# 从当前路径的test.csv文件读取surf_mat
surf_read = read_surf(file_path);

# 显示表面数据surf_mat
show_surf(surf_mat);

Index