Thursday, April 7, 2016

Plan to Fix Call Stack Error

  • Array blobs[]           
  • Array goodPixels[]    //the white pixels that were marked during thresholding
  • for (goodPixel in goodPixels) {
    • if (there aren’t any blobs with goodPixel) {
      • Array links[]
      • Array news[]
      • news.append(goodPixel)
      • while (news.length > 0) {
        • int num = news.length
        • for (int index = num-1; index > -1; index--) {
          • checkForNewLinks(news[index])      
          • links.append(news[index])  
          • news.remove(news[index])  
        • }
      • }
      • blobs.append(new Blob(links)) 
    • }
  • }

No comments:

Post a Comment