Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

cell as an input argument for normxcorr2

1 vue (au cours des 30 derniers jours)
emar
emar le 20 Avr 2017
Commenté : emar le 21 Avr 2017
Hello, I want to calculate normalized cross correlation for an image with a lot of templates(31 templates). When I define templates as a cell and i compile :
parfor ii =1 :100
% T {ii,:}=normxcorr2(template{:} ,image{ii});
end
It returns an error, because the inputs of normxcorr2 can't be cells. I can of course use a for loop like :
parfor ii =1 :100
for j= 25:55
% T {ii,j}=normxcorr2(template{j} ,image{ii});
end
end
However it makes more time (because of the nested loop).
My question is if there is a solution to use a cell as a parameter,in order to not use a nested loop.
Thank you in advance

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by