Notifications
Clear all

[Closed] Fastest way to get transparent image bounding box

Would it be quicker to check the sum total of the alpha values of 1 line of pixels > 0 before running through pixel by pixel?

1 Reply
 lo1
(@lo1)
Joined: 11 months ago

Posts: 0

How do you get the sum of the values without iterating over each pixel?

I’m not sure there is, just a random thought I had when I was trying to do something similar a while back. I’m sure there’s some clever way of looking at the array size in memory or something like that… but beyond my geekage level.

Page 2 / 2