Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfxmap_python
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfxmap_python
Commits
143fbea0
Commit
143fbea0
authored
Jan 07, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交,测试代码
parent
c6a2943d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
test.py
script/test.py
+9
-2
No files found.
script/test.py
View file @
143fbea0
...
...
@@ -17,10 +17,17 @@ if __name__ == '__main__':
file_path
=
"D:/pointcloud1.pcd"
pcd
=
o3d
.
io
.
read_point_cloud
(
file_path
)
print
(
pcd
)
print
(
pcd
.
dimension
())
center
=
np
.
array
([
0
,
0
,
0
])
scalepcd
=
pcd
.
scale
(
0.001
,
center
)
print
(
scalepcd
)
# downpcd = pcd.voxel_down_sample(0.01)
# print(downpcd)
def
save_pcd
(
vis
):
#io.write_point_cloud(file_path, pcd, write_ascii=True)
#print(file_path)
return
False
key_to_callback
=
{}
key_to_callback
[
ord
(
"S"
)]
=
save_pcd
o3d
.
visualization
.
draw_geometries_with_key_callbacks
([
pcd
],
key_to_callback
)
\ No newline at end of file
o3d
.
visualization
.
draw_geometries_with_key_callbacks
([
scalepcd
],
key_to_callback
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment