in reply to Re: Detect boundaries within .png's - and cropping
in thread Detect boundaries within .png's - and cropping
Then do the same for $img->xchg(1,2) for the columns, and hey presto, there's your bounding box!$non_blank_rows = ($img->slice('(3)') != 0)->orover; ($low, $high) = $non_blank_rows->which->minmaximum;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Detect boundaries within .png's - and cropping
by etj (Priest) on Apr 25, 2022 at 01:57 UTC | |
by etj (Priest) on May 03, 2022 at 20:35 UTC |