title: Matlab 2012a Object Detection and Tracking doesn't work
body: <p>I'm working on my thesis project on indoor localization features but I have no problems with regard to <i>object detection and tracking </i>. I am using MATLAB 2012a, but some functions of the code do not work, probably because of the old version of the program. 
  Could you give me some advice? 
  In particular I have problems with the functions of <i>showMatchedFeatures</i> and <i>estimateGeometricTransform</i>.
  This is the error message:</p>
  
  <blockquote>
    <p>Undefined function 'showMatchedFeatures' for input arguments of type 'SURFPoints'.</p>
  </blockquote>
  
  <p>How can I solve my problem without having to download the new version of Matlab?</p>
  
  <p>This is the code:</p>
  
  <p>`</p>
  
  <pre><code>boxImage = imread('img_box.png');
  sceneImage = imread('img_desk.png');
  I= rgb2gray (boxImage);
  K= rgb2gray (sceneImage);
  
  boxPoints = detectSURFFeatures(I)
  scenePoints = detectSURFFeatures(K);
  
  figure; imshow(I);
  title('100 Strongest Feature Points from Box Image');
  hold on;
  plot(boxPoints.selectStrongest(100));
  
  figure; imshow(K);
  title('300 Strongest Feature Points from Scene Image');
  hold on;
  plot(scenePoints.selectStrongest(300));
  
  
  [boxFeatures, boxPoints] = extractFeatures(I, boxPoints);
  [sceneFeatures, scenePoints] = extractFeatures(K, scenePoints);
  
  boxPairs = matchFeatures(boxFeatures, sceneFeatures);
  matchedBoxPoints = boxPoints(boxPairs(:, 1), :);
  matchedScenePoints = scenePoints(boxPairs(:, 2), :);
  figure;
  showMatchedFeatures(boxImage, sceneImage, matchedBoxPoints,matchedScenePoints, 'montage');
  title('Putatively Matched Points (Including Outliers)');
  
  
  
  [tform, inlierBoxPoints, inlierScenePoints] = ...
      estimateGeometricTransform(matchedBoxPoints, matchedScenePoints, 'affine');
  
  boxPolygon = [1, 1;...                           % top-left
          size(boxImage, 2), 1;...                 % top-right
          size(boxImage, 2), size(boxImage, 1);... % bottom-right
          1, size(boxImage, 1);...                 % bottom-left
          1, 1];                   % top-left again to close the polygon
  
  newBoxPolygon = transformPointsForward(tform, boxPolygon);
  
  figure; imshow(sceneImage);
  hold on;
  line(newBoxPolygon(:, 1), newBoxPolygon(:, 2), 'Color', 'y');
  title('Detected Box');
  
  end
  </code></pre>
  
  <p>`</p>
  
  <p>Thank you for your help!</p>