Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Detect boundaries within .png's - and croppingby etj (Deacon) |
on Apr 21, 2022 at 07:58 UTC ( [id://11143159]=note: print w/replies, xml ) | Need Help?? |
Intriguingly, there's no cropping type functionality in core PDL. A bit of a ponder suggests a good approach would be to (for rows), assuming an image of (rgba,x,y):
Then do the same for $img->xchg(1,2) for the columns, and hey presto, there's your bounding box!
In Section
Seekers of Perl Wisdom
|
|