I have two images with the object of focus in the centre of each. I then need to crop around these (basically to save time during my analysis porgram). The problem then becomes the cropped images are different sizes - in terms of pixel value.
I am trying to get transects from the same positions along each object, and if the sizes are different, the transects will be in the wrong place, and if the aspect ratio changes this corrupts the correct data.
I haven't been able to find a way to resize one image to the other without losing the aspect ratio of whichever image that was resized.
To resize the images I used:
[rowsA colsA RGBA]=size(A);
[rowsB colsB RGBB]=size(B);
Thank you all for any help or ideas.