Filter löschen
Filter löschen

How can I convert movie to 3 channels frames

1 Ansicht (letzte 30 Tage)
Ali Noori
Ali Noori am 16 Jun. 2015
Kommentiert: arun am 16 Jun. 2015
How can I convert movie.avi into 3 channels frames (red, green, & blue) and store the red channel images in folder1 and green channel images in folder2 and blue channel images in folder3
  1 Kommentar
arun
arun am 16 Jun. 2015
1) U should convert the movie into images that u can refer http://in.mathworks.com/help/matlab/examples/convert-between-image-sequences-and-video.html Then u can covert the image files into red blue and green images by accessing the index i'm assuming name of the variable that holds image file info is "RGB".
R=RGB(:,:,1);
G=RGB(:,:,2);
B=RGB(:,:,3);
Then u can refer the following link to create a new folder in matlab http://in.mathworks.com/help/matlab/ref/mkdir.html then u can use the following command to write the image file
imwrite(image,'<foldr path>','jpg')

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by