ros-perception / ros-perception/image_common
yuv422_yuy2 incorrectly (de)compressed
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 153
- Forks
- 253
- Avg merge
- 5m
- Merged PRs (30d)
- 1
Description
Hey,
using usb_cam and my webcam, the image is published as yuv422_yuy2.
The compressed topic has the encoding yuv422_yuy2; jpeg compressed mono8 (which sounds like it doesn't really support compressing yuv and compresses the data as mono8).
When I receive this image with image_transport, I get the original encoding but the step size is incorrect.
YUV has a bit depth of 16bits but the step size of the decompressed image is equal to the width of the image not 2 * the width like it should be and the uncompressed image is.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with usb_cam and image_transport using a webcam publishing yuv422_yuy2. Trace how the compressed topic encoding and decompressed image step size are handled, then verify that the decompressed step is twice the image width and that the encoding remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100