Thanks for the responses. I've managed to get it to work by using the "corner" function then comparing the number of corners MATLAB finds in the reference files to the input ones.
Its not perfect, as the input images aren't as 'perfect' as the reference ones, but it's near enough for the time...
I am attempting to write a code to recognise silverware. I am hoping to be able to have something set up where I can tell Matlab where the reference images are, then simply open/import the image I want to be 'recognised' and Matlab will run a code and determine the type.
This is for a proof of...