/ / Substituindo uma função 'transformPointsForward' no Matlab - matlab, matlab-cvst

Substituindo uma função 'transformPointsForward' em Matlab - matlab, matlab-cvst

Eu tenho algum problema no Matlab. Eu estou trabalhando e tento usar este ref: http://www.mathworks.com/help/vision/gs/object-detection-and-tracking.html Mas na última versão do Matlab não há nenhuma função chamada "transformPointsForward". O que posso substituir? Bloquear, onde usa:

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.Location);
figure; imshow(sceneImage);

Muito Obrigado!

Respostas:

4 para resposta № 1

transformPointsFoward só está disponível a partir de 2013a. Se você está usando uma versão mais antiga, você vai querer olhar para tformfwd em vez disso, também da caixa de ferramentas de processamento de imagens.