Gray-level corner detection