Borrar filtros
Borrar filtros

Put an image on another image

2 visualizaciones (últimos 30 días)
Ali Purse
Ali Purse el 27 de Oct. de 2018
Respondida: Walter Roberson el 27 de Oct. de 2018
May you please help me how can I put an image on another image and display a single image?

Respuestas (1)

Walter Roberson
Walter Roberson el 27 de Oct. de 2018
Have a look at image(), which permits you to pass data coordinates for lower left and upper right. Note that the coordinates are for the centers of pixels.
Example:
IM1 = randi([0 255], 60, 80, 3, 'uint8');
IM2 = checkerboard(4);
image(IM1);
hold on;
image([5 5], [36 36], IM2, 'CDataMapping', 'scaled'); colormap(gray(64));

Community Treasure Hunt

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

Start Hunting!

Translated by