| Crates.io | image-debug-utils |
| lib.rs | image-debug-utils |
| version | 0.1.0 |
| created_at | 2026-01-19 08:57:49.206004+00 |
| updated_at | 2026-01-19 08:57:49.206004+00 |
| description | Niche but useful utilities for imageproc, including contour filtering, sorting, and visualization helpers. |
| homepage | |
| repository | https://github.com/bioinformatist/image-debug-utils |
| max_upload_size | |
| id | 2054039 |
| size | 612,410 |
Some niche but useful utilities for imageproc.
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 |
| Intelligent Bounding Boxes | Connected Components Labeling |
|---|---|
![]() |
![]() |
| Converting Rotated Rects (Green) to AABB (Red) | Visualizing Top-5 connected regions with distinct colors |
Try the interactive visualizer to experiment with parameters in real-time.
Run Locally:
cd examples/visualizer
trunk serve
Features:
remove_hypotenuse_in_place handling (Aspect Ratio).sort_by_perimeters_owned and sort_by_direct_children_count_owned via heatmaps.to_axis_aligned_bounding_box.draw_principal_connected_components with adjustable Top-N ranking.picsum.photos to test robustness.