IDL code for analyzing features in images