Robust and adaptive feature detector