adaptive mean shift and graphing