iphonejudy macrumors 6502 Original poster Sep 12, 2008 301 1 Oct 6, 2009 #1 I want to find the closest black pixel in the surrounding of the touch coordinates(x,y)of an image. So i can get the bounds of an image. Any help pls?
I want to find the closest black pixel in the surrounding of the touch coordinates(x,y)of an image. So i can get the bounds of an image. Any help pls?
robbieduncan Moderator emeritus Jul 24, 2002 25,611 893 Harrogate Oct 6, 2009 #2 Push the pixel coordinates surrounding the touch into a list check each one and if it's not black push the pixels that it touches that are outside the checked area onto the back of the list. Keep going until you find a black pixel.
Push the pixel coordinates surrounding the touch into a list check each one and if it's not black push the pixels that it touches that are outside the checked area onto the back of the list. Keep going until you find a black pixel.