How do I produce a solid green image directly above an imported image
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have imported an image and I require there to be a solid green image of the same dimensions directly above the imported image. How would I go about doing this? I have attempted using patch but to no success.
2 comentarios
KALYAN ACHARJYA
el 3 de Jun. de 2019
Editada: KALYAN ACHARJYA
el 3 de Jun. de 2019
directly above the imported image??
Question is not clear? What result you are expecting? May be you require one green image (plane) having size equal to the processed image. Clarify ?
Respuesta aceptada
KSSV
el 3 de Jun. de 2019
I1 = imread('peppers.png') ;
[nx,ny,nz] = size(I1) ;
I2 = zeros(nx,ny,nz) ;
I2(:,:,2) = 255 ;
I12 = vertcat(I2,I1) ;
imshow(I12)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!