摘要: import nrrd import numpy as np # 读取 .nrrd 文件 def read_and_save_nrrd(filename, save_path): # 读取文件 data, header = nrrd.read(filename) # 打印数据和选项信息 print( 阅读全文
posted @ 2024-08-29 10:40 hxqmw 阅读(17) 评论(0) 推荐(0) 编辑
摘要: import open3d as o3d from scipy.ndimage import binary_fill_holes def merge_ply(ply1, ply2, output_path): # 加载两个多边形模型 mesh1 = o3d.io.read_triangle_mesh 阅读全文
posted @ 2024-08-29 10:09 hxqmw 阅读(11) 评论(0) 推荐(0) 编辑
摘要: import trimesh import matplotlib.pyplot as plt # 读取点云文件 mesh = trimesh.load_mesh('test.ply') # 计算法线 mesh.vertex_normals # 创建一个新的图形窗口 fig = plt.figure( 阅读全文
posted @ 2024-08-28 13:56 hxqmw 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import trimesh import matplotlib.pyplot as plt # 读取点云文件 mesh = trimesh.load_mesh('test.ply') # 计算法线 mesh.vertex_normals # 创建一个新的图形窗口 fig = plt.figure( 阅读全文
posted @ 2024-08-28 10:04 hxqmw 阅读(8) 评论(0) 推荐(0) 编辑
摘要: import open3d as o3d import numpy as np # 加载点云数据 pcd = o3d.io.read_point_cloud("test.ply") # 设置法线估计的搜索参数 search_param = o3d.geometry.KDTreeSearchParam 阅读全文
posted @ 2024-08-28 09:29 hxqmw 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 添加QCustomplot报错: QPrinter@@QAE@W4PrinterMode@0@@Z),函数 "public: bool __thiscall QCustomPlot::savePdf(class QString const &,int,int,enum QCP::ExportPen, 阅读全文
posted @ 2024-07-13 16:21 hxqmw 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 报错内容: ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\Administrator\\AppData\\Local\\Packages\\P 阅读全文
posted @ 2024-06-28 19:36 hxqmw 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1 import matplotlib.pyplot as plt 2 from mpl_toolkits.mplot3d import Axes3D 3 import numpy as np 4 import nibabel as nib 5 6 def bresenham_3d(p0, p1, 阅读全文
posted @ 2024-06-18 15:36 hxqmw 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 举例: 绘制一个正方体 1 import matplotlib.pyplot as plt 2 from mpl_toolkits.mplot3d import Axes3D 3 import numpy as np 4 import nibabel as nib 5 6 # 创建一个图形对象 7 阅读全文
posted @ 2024-06-18 14:06 hxqmw 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ERROR: Failed to find vcvars Traceback (most recent call last): File "F:\code\chromium_git\chromium\src\cef\tools\\make_distrib.py", line 954, in <mod 阅读全文
posted @ 2024-05-08 11:31 hxqmw 阅读(13) 评论(0) 推荐(0) 编辑