
// This scilab code is used to extract features from images 
//using FAST algorithm (this algorithm is best suitable for corner detection)

//The scilab environment for this is : Scilab 6.0.1

//Toolbox used: Image Processing and Computer Vision Toolbox ver. 1.1
              

//OS used : Windows 10 64 bit
// 
//Reference book name : Digital Image Processing
//book author: Rafael C. Gonzalez and Richard E. Woods
// Rosten. Machine Learning for High-speed Corner Detection, 2006.

//clc //to clear command window.
//clear all //to kill previously defined variables.
//xdel(winsid())//to close all currently open figure(s).

//This code uses shapes.jpg image file for processing


//S = imcreatechecker(8,8,[1 0.5]);
S=imread('shapes.jpg');                                 // Reads an input image
fobj = imdetect_FAST(S);                                // Extract features from image using FAST algorithm
imshow(S);                                              // Displays original image
plotfeature(fobj);                                      // Plots the extracted features on the image shown in figure
