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

Fix PointXYZRGBA ctor, set A as 255 by default #4799

Merged
merged 1 commit into from
Jun 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common/include/pcl/impl/point_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,13 +604,13 @@ namespace pcl
rgba = p.rgba;
}

inline PointXYZRGBA (): PointXYZRGBA (0, 0, 0, 0) {}
inline PointXYZRGBA (): PointXYZRGBA (0, 0, 0, 255) {}

inline PointXYZRGBA (std::uint8_t _r, std::uint8_t _g, std::uint8_t _b, std::uint8_t _a):
PointXYZRGBA (0.f, 0.f, 0.f, _r, _g, _b, _a) {}

inline PointXYZRGBA (float _x, float _y, float _z):
PointXYZRGBA (_x, _y, _z, 0, 0, 0, 0) {}
PointXYZRGBA (_x, _y, _z, 0, 0, 0, 255) {}

inline PointXYZRGBA (float _x, float _y, float _z, std::uint8_t _r,
std::uint8_t _g, std::uint8_t _b, std::uint8_t _a)
Expand Down