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

toCompressedImageMsg is missing full format #382

Open
christian-rauch opened this issue Apr 19, 2021 · 0 comments
Open

toCompressedImageMsg is missing full format #382

christian-rauch opened this issue Apr 19, 2021 · 0 comments

Comments

@christian-rauch
Copy link
Contributor

Typically, the format in the CompressedImage type contains the data format and the compression algorithm, e.g.: "16UC1; png compressed " for a sensor that published depth as 16bit image.

The method toCompressedImageMsg however only sets the format:

std::string format = getFormat(dst_format);
ros_image.format = format;
cv::imencode("." + format, image, ros_image.data);

hence the format will only contain png without the datatype.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant