1. A machine implemented method, the method comprising: identifying an approximate location of a feature in a preliminary image that was captured by an image sensor; computing, using processing circuitry coupled to the image sensor, a gradient phase map of image pixel intensities within the approximate location; determining a projection result by applying a projection function to the gradient phase map; and analyzing the projection result to determine a state of the feature.