Skip to content

[CoP] Remove white border from CoP result images - #190

Merged
Haralishev77 merged 2 commits into
mainfrom
feature/remove-white-borders-from-CoP-results
Aug 10, 2026
Merged

[CoP] Remove white border from CoP result images#190
Haralishev77 merged 2 commits into
mainfrom
feature/remove-white-borders-from-CoP-results

Conversation

@Haralishev77

Copy link
Copy Markdown
Member

Summary

Remove artificial white borders from Cooperative Perception visualization images by saving the rendered RGB canvas directly instead of embedding it in a Matplotlib figure.

Changes

  • Updated the Cooperative Perception visualizer to save canvas arrays directly with plt.imsave().
  • Applied the same fix to the upstream OpenCOOD visualization path.
  • Preserved the configured DPI and exact canvas dimensions.

Validation

  • Simulation run
  • Manual verification

Validated that:

  • Both modified files compile successfully.
  • Saved PNG dimensions exactly match the source canvas.
  • Edge pixels are preserved without additional borders..

Checklist

  • Kept the PR focused and reviewable
  • Updated documentation
  • Added or updated validation steps

@Haralishev77
Haralishev77 requested a review from AndK17 August 10, 2026 11:36
@Haralishev77 Haralishev77 self-assigned this Aug 10, 2026
@Haralishev77 Haralishev77 added enhancement New feature or request CoP Something new in cooperative perception category labels Aug 10, 2026
@Haralishev77
Haralishev77 merged commit 3a9e54f into main Aug 10, 2026
8 checks passed
@Haralishev77
Haralishev77 deleted the feature/remove-white-borders-from-CoP-results branch August 10, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CoP Something new in cooperative perception category enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants