how to write matlab porgramme to remove one of the RGB channels (make 0) in each of the 10 frames in a sequence?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
suresh gunarathna
el 14 de Oct. de 2018
Comentada: Walter Roberson
el 15 de Oct. de 2018
how to write matlab programme to remove one of the RGB channels in each of the 10 frames in a sequence
0 comentarios
Respuesta aceptada
Walter Roberson
el 14 de Oct. de 2018
frame_to_remove = randi(3);
initialize
for framenum = 1 : 10
advance to frame given by framenum, storing in variable thisframe
thisframe(:,:,frame_to_remove) = 0;
image(thisframe);
drawnow();
end
6 comentarios
Más respuestas (2)
suresh gunarathna
el 14 de Oct. de 2018
3 comentarios
Walter Roberson
el 15 de Oct. de 2018
You will need to say more clearly what the question is then. Is the question to figure out which of the three channels is non-zero ?
suresh gunarathna
el 15 de Oct. de 2018
2 comentarios
Walter Roberson
el 15 de Oct. de 2018
Required output is not stated. Is the required output a new movie that is 3 times as long as the original movie, with the first 10 frames being the original with red removed, the second 10 being the original frames with green removed, the third 10 being the original frames with blue removed? Or is the desired output a 3 x 10 series of subplots displaying the images? Or a 3 x 10 montage?
Ver también
Categorías
Más información sobre File Operations 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!