Grunt
2014-04-23 04:04:10
I want to have a function that gives coordinates of everything in a continuous area based on a HUE criteria. If that doesn't exist, I am thinking of using making one with the quick fill algorithm, http://www.codeproject.com/Articles/6017/QuickFill-An-efficient-flood-fill-algorithm
Some more information: I want to directly sample each coordinates for its color from the client itself. Standard Non-recursive flood fill doesn't work because its arrays store an additional piece of information (it can change a target color to the fill color, and use that to distinguish coordinates that's already been targeted). I don't want to store colors into a 3D Tpoint array, and then use standard flood fill methods. I rather have an algorithm that directly tells you a continuous area of a specific color.
To me, the quickfill alogrithm is the most interesting. Any thoughts on what algorithm to use?
Some more information: I want to directly sample each coordinates for its color from the client itself. Standard Non-recursive flood fill doesn't work because its arrays store an additional piece of information (it can change a target color to the fill color, and use that to distinguish coordinates that's already been targeted). I don't want to store colors into a 3D Tpoint array, and then use standard flood fill methods. I rather have an algorithm that directly tells you a continuous area of a specific color.
To me, the quickfill alogrithm is the most interesting. Any thoughts on what algorithm to use?