Detecting corners
Corner detection (http://en.wikipedia.org/wiki/Corner_detection ) is a standard technique in Computer Vision. scikits-image offers a Harris Corner Detector, which is great, because corner detection is pretty complicated. Obviously, we could do it ourselves from scratch, but that would violate the cardinal rule of not reinventing the wheel.
Getting ready
You might need to install jpeglib
on your system to be able to load the scikits-learn image, which is a JPEG file. If you are on Windows, use the installer; otherwise, download the distribution, unpack it, and build from the top folder with the following command:
./configure make sudo make install
How to do it...
We will load a sample image from scikits-learn. This is not absolutely necessary for this example; you can use any other image instead.
Load the sample image.
scikits-learn currently has two sample JPEG images in a dataset structure. We will look at the first image only:
dataset = load_sample_images() img = dataset...