how to combine geo.tiff image combine

8 visualizaciones (últimos 30 días)
rishika yadav
rishika yadav el 10 de Ag. de 2022
Respondida: Dolon Mandal el 12 de Sept. de 2023
how to write the two geotiff image in one geotiff image.
my both image dimension are .m*n*2
  3 comentarios
rishika yadav
rishika yadav el 10 de Ag. de 2022
SORRY I CANT
KSSV
KSSV el 10 de Ag. de 2022
Then we cannot help...

Iniciar sesión para comentar.

Respuestas (1)

Dolon Mandal
Dolon Mandal el 12 de Sept. de 2023
To write two GeoTIFF images into one GeoTIFF image in MATLAB, you can use the `geotiffwrite` function along with the `imwrite` function. Here's an example:
% Load the two images
image1 = imread('image1.tif');
image2 = imread('image2.tif');
% Combine the two images into a single 3D array
combinedImage = cat(3, image1, image2);
% Write the combined image as a GeoTIFF
geotiffwrite('combined_image.tif', combinedImage, R, 'GeoKeyDirectoryTag', info.GeoTIFFTags.GeoKeyDirectoryTag);
Hope it helps!

Community Treasure Hunt

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

Start Hunting!

Translated by