Search code examples
matlabmatlab-cvst

object detection using matlab computer vision toolbox


while developing simple algorithm for object detection in a scene with matlab tool box here is the code I wrote

https://i.sstatic.net/fkV6v.jpg

then I found these errors https://i.sstatic.net/0xSXX.jpg

please can anybody help


Solution

  • The command detectSURFFeatures() takes a 2-D (grayscale) image as input. Your first image, box_image, is a color image. Convert it to grayscale by using the command rgb2gray() and use to detect SURF features.