Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Error Message in RGBDInageFactory.cpp #6236

Closed
3 tasks done
redhermes opened this issue Jun 29, 2023 · 2 comments
Closed
3 tasks done

Incorrect Error Message in RGBDInageFactory.cpp #6236

redhermes opened this issue Jun 29, 2023 · 2 comments
Assignees
Labels
bug Not a build issue, this is likely a bug.

Comments

@redhermes
Copy link

Checklist

Describe the issue

I have been trying to determine what was wrong with my .png file due to the error message "Unsupported image format." in RGBDImage::CreateFromColorAndDepth (line 21). In fact, the problem is not an unsupported image format, but the color and depth images were not the same size.

Steps to reproduce the bug

Call CreateFromColorAndDepth() with two file of different sizes.

Error message

RuntimeError: �[1;31m[Open3D Error] (static std::shared_ptropen3d::geometry::RGBDImage open3d::geometry::RGBDImage::CreateFromColorAndDepth(const open3d::geometry::Image&, const open3d::geometry::Image&, double, double, bool)) /root/Open3D/cpp/open3d/geometry/RGBDImageFactory.cpp:21: Unsupported image format.
�[0;m

Expected behavior

An error message that indicates the color and depth file are not the same size.

Open3D, Python and System information

Should not matter but:
Open3D 0.7.0, Python 3.10 Fedora Linux 38

Additional information

Hate to tell you how much time I wasted on this...

@redhermes redhermes added the bug Not a build issue, this is likely a bug. label Jun 29, 2023
@theNded
Copy link
Contributor

theNded commented Aug 10, 2023

Thanks for pointing out the issue. I will make a PR and fix this.

@theNded theNded self-assigned this Aug 10, 2023
theNded added a commit that referenced this issue Aug 15, 2023
* fix 6291

* fix 6236

* address review comments
@theNded
Copy link
Contributor

theNded commented Aug 15, 2023

Closed via #6305

@theNded theNded closed this as completed Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug.
Projects
None yet
Development

No branches or pull requests

2 participants