Comments (4)
Looks like libjpeg supports ppm (see line 142 External/libjpeg/jconfig.h
)
from open3d.
Very good. Yes, we need to support these file formats. However, we have two viable solutions.
-
If ppm is natively supported by libjpeg, then the solution is simple, just copy
FileJPG.h/cpp
toFilePPM.h/cpp
and edit the interface. -
If option 1 is too complicated, we don't need to introduce new libraries for parsing image.
py3d
supports creating anImage
from a numpy array. E.g.
print("Convet a numpy image to Image and show it with DrawGeomtries().")
y = mpimg.imread("../TestData/lena_color.jpg")
print(y.shape)
yy = Image(y)
print(yy)
DrawGeometries([yy])
So for the NYU data, we don't even need to write a parser for ppm. Just in our python tutorial, we read the image using this method. This is actually the benefit of using Python. Open3D need not to support everything. We just write 3D algorithms in C++, and Python can take care of the auxiliary functionalities.
from open3d.
I agree. I also thought the same thing, and I was working on option 2. Actually it turns out that even mathploblib.image
is not friendly toward NYU pgm depth format, and I had to write a python function for this. You will check this issue from new commit.
from open3d.
Addressed in #42
from open3d.
Related Issues (20)
- compute_vertex_normals produces wrong results when mesh previous has incorrect normals HOT 3
- Segmentation fault (core dumped) caused by `numpy` 2.0.0 HOT 2
- Segmentation Fault with numpy `1.25.2` arrays when using conversion methods HOT 1
- Open3D failed to build with error : downloading 'https://github.com/isl-org/Open3D/releases/download/v0.12.0/mkl-include-2020.1-intel_216-win-64.tar.bz2W' failed on windows using MSVC HOT 5
- How I used ray casting here?
- MAx Supported GCC G++ versions 'tbb::task' has not been declared HOT 1
- Implementation of o3d.t.geometry.TriangleMesh.clip_plane HOT 1
- Basic operations on point clouds not working, exited with code=3221225477 HOT 3
- 'o3d.visualization.draw_geometries' is not working when I pass camera parameters to it. HOT 2
- some funtion is not valid in vscode such as "build a coordinate and make visualization" HOT 5
- Run ICP Point_to_Point and Point_to Plane for my own pointclouds and KITTI dataset
- Error passing strings to functions
- Is it possible to run open3d GPU rendering via ssh?
- Minimal oriented bounding box is not minimal HOT 1
- C++ Types in Python Documentation HOT 1
- Open3D development wheels are unavailable HOT 1
- Animation camera trajectory json creation
- Open3D on WSL2 unable to visualize. Error: GLFW Error: Wayland: The platform does not support setting the window position, Failed to initialize GLEW., [DrawGeometries] Failed creating OpenGL window.
- how to set VerbosityContextManager in c++
- multiview registration without odometry edge.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open3d.