Mosaic images with Matlab -
i have question how can something. have folder different images (each image has 3 bands). example.
img_244_234_1_1.tif img_244_234_1_2.tif img_250_234_1_1.tif img_250_234_1_2.tif
what need mosaic images name (for example, number 244, 250...). now, i'm doing manually in way:
image1 = imread('c:\prueba\img_244_234_1_1.tif','tif'); image2 = imread('c:\prueba\img_244_234_1_2.tif','tif'); image3 = imread('c:\prueba\img_250_234_1_1.tif','tif'); image4 = imread('c:\prueba\img_250_234_1_2.tif','tif'); image_result1 = cat(2,image1,image2); image_result1 = cat(2,image1,image2);
how can automatize using date number (244,250...) it's in same output name position?
really appreciate suggestion.
you can utilize loops (like for x=[244,255]
) , concatenation of strings: ['c:\prueba\img_' x '_234_1_1.tif']
evaluate `'c:\prueba\img_244_234_1_1.tif' if x 244.
matlab mosaic
No comments:
Post a Comment