gazebosim / gazebosim/gz-rendering
Add functionality for drawing shapes on images
- Dominant language
- C++
- Stars
- 81
- Forks
- 90
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 10
Description
## Desired behavior
It would be nice to give users a way to draw shapes on images, if there's need/interest for it. I imagine that this would be useful for debugging applications, but perhaps there are also other use cases for this functionality.
## Alternatives considered
OpenCV provides methods for doing things like drawing shapes on images. We could add OpenCV as a dependency and provide an API that wraps these OpenCV calls, but this seems like an overkill dependency for functionality that is probably targeted more towards debugging.
## Implementation suggestion
Another option would be to create/implement some simple methods like `DrawLine` or `DrawCircle` that modify the image pixel data at user-defined locations to be a color specified by the user.
## Additional context
Here's a tutorial from OpenCV that showcases some of the methods they have for drawing shapes on images: https://opencv-tutorial.readthedocs.io/en/latest/draw/draw.html
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by locating the image abstraction and its pixel-data APIs, then assess how proposed DrawLine and DrawCircle methods would fit without adding OpenCV. Done would mean an agreed scope and API for drawing user-colored shapes on images.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100