image-debug-utils
Some niche but useful utilities for imageproc.
Usage
Examples
Visual Comparison
Demonstration of remove_hypotenuse_in_place filtering out high-aspect-ratio artifacts (thin lines) from a synthetic shape.
| Before Processing | After remove_hypotenuse_in_place |
|---|---|
![]() |
![]() |
| Original contours (Red) showing noisy thin lines | Processed contours (Green) with noise removed |
Feature Gallery
| Intelligent Bounding Boxes | Connected Components Labeling |
|---|---|
![]() |
![]() |
| Converting Rotated Rects (Green) to AABB (Red) | Visualizing Top-5 connected regions with distinct colors |
Interactive Demo (WASM)
Try the interactive visualizer to experiment with parameters in real-time.
Run Locally:
Features:
- Mode Selection: Switch between 5 different demonstration modes.
- Filter Contours: Real-time
remove_hypotenuse_in_placehandling (Aspect Ratio). - Sort Contours: Visualize
sort_by_perimeters_ownedandsort_by_direct_children_count_ownedvia heatmaps. - Bounding Boxes: Compare Rotated Rects (Blue) vs Axis-Aligned Bounding Boxes (Red) using
to_axis_aligned_bounding_box. - Connected Components: Visualize
draw_principal_connected_componentswith adjustable Top-N ranking. - Random Images: Instantly fetch fresh content from
picsum.photosto test robustness.



