13 Replies Latest reply on Aug 12, 2010 4:23 PM by forum.ware

    Analyzing binary image - quick way to determine number of consecutive white pixels?


      Using ESTK and ExtendScript.


      I want to determine the length of each white area intercepted by a 1px wide line through a grayscale image following a threshold operation.  Currently stepping through each pixel and checking the histogram count at intensity[0], but it's slower than my limited patience can tolerate.  Is there a good chord length or similar algorithm or a faster method to evaluate individual pixels than a for or while loop?


      Thanks for any help...