Question: develop matlab code to detect corners without using the built in corners function! using the below code for gradient. The input is formed by an
develop matlab code to detect corners without using the built in corners function!
using the below code for gradient.
The input is formed by an image, I, and two parameters: the threshold lamda2, toa, and the linear size of a square window, say 2N+1 pixels.
for each point p:
form a matrix C of 15X15 whose pixel neighbourhoods are lamda>20 over a (2N+1)X(2N+1) neighborhood Q of p;
compute the lamda2 the smaller the eigen value of C;
if lamda2>toa, save the coordinates of p into the list L
sort L in decreasing order of lamda2
scanning the sorted list top to bottom: for each current point,p, delete all points appearing further on the list which belong to the neighbourhood of p
the output is a list of feature points for which lamda2 >toa and whose neighbourhoods do not over lap
clear all; clc;
img = imread ('Flowers.jpg');
%Show input image figure, imshow(img); %img = rgb2gray(img); img = double (img);
%Value for Thresholding T_Low = 0.075; T_High = 0.175;
%Gaussian Filter Coefficient sigma=1; f=[]; for i = 1:5 f(i)= (1/(2*pi()*sigma^2)^0.5)*exp((-(i)^2)/2*sigma^2); end f=f/sum(f);
%Convolution of image by Gaussian Coefficient A=conv2(img, f, 'same');
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
