Feature detection from local energy