Hello,
I am wanting to create a for loop in Matlab which will allow me to cycle an image through various sizes. The code to do this is imresize(image, scaling factor)
I wrote my loop as follows but it does not work;
for n = 0.1:0.1:1
h = imresize(image1, n)
c = normxcorr2(image2,h)
end
I am wanting to scale image1 through various sizes, correlating it with a larger image each time in order to find the best match. However this is not happening, I know I have written the loop incorrectly but I cannot see where exactly.
I am wanting to create a for loop in Matlab which will allow me to cycle an image through various sizes. The code to do this is imresize(image, scaling factor)
I wrote my loop as follows but it does not work;
for n = 0.1:0.1:1
h = imresize(image1, n)
c = normxcorr2(image2,h)
end
I am wanting to scale image1 through various sizes, correlating it with a larger image each time in order to find the best match. However this is not happening, I know I have written the loop incorrectly but I cannot see where exactly.