This is a Harris corner detection program written in MATLAB. You can give it a try to detect keypoints in images based on the Harris corner detection method.