Fence detector that uses spatial frequency and color