A method and system detects candidate targets or objects from a viewed
scene by simplifying the data, converting the data to gradient magnitude
and direction data which is thresholded to simplify the data. Horizontal
edges within the data are softened to reduce their masking of adjacent
non-horizontal features. One or more target boxes are stepped across the
image data and the number of directions of gradient direction data within
the box is used to determine the presence of a target. Atmospheric
attenuation is compensated. The thresholding used in one embodiment
compares the gradient magnitude data to a localized threshold calculated
from the local variance of the image gradient magnitude data. Imagery
subsets are containing the candidate targets may then be used to detect
and identify features and apply a classifier function to screen candidate
detections and determine a likely target.