ros-perception / ros-perception/image_common

yuv422_yuy2 incorrectly (de)compressed

Open
#293 2 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.