As a refresher, I make a temporary array and store every nth pixel in the array to calculate the minimum distance due to computational limitations. Originally, I had been retrieving my distance values by calculations of a subset of every 5000 pixels of the frame. I have changed my program to be more accurate and evaluate every 2500 pixels of the frame. Through testing, I have noticed performance significantly decreases if this value is divided further. I will be keeping the subset value of 2500. I have created a variable called "pixeloffset" to represent this value. Everything is coded based on this value except for the size of the temporary array. Because the value must be an exact size depending on the subset intervals, I was unable to calculate the temp array size based on one value.
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
April 2015
Categories |