read image array jpg and convert to text file in loop

1 view (last 30 days)
first time I have video.avi and split video to image(jpg) that image have array 2d (x,y) . I want to covert array image to text file. So text have many row and column, then I want choose first column and delete other column(sometime I choose 2nd or 3rd ) . All of process in loop when I finish I have many text and in text file contain one column so I want to combine all text file to one text file
Exsample
first column in 1st file first column in 2rd file ............first column in Nth file combine file
1 2 n 1,2....,n
1 2 n 1,2....,n
1 2 n 1,2....,n
1 2 n 1,2....,n
1 2 n 1,2....,n
please help me I have progressive on monday
  1 Comment
game sripradit
game sripradit on 16 Feb 2019
1st column in 1st file 1st column in 2rd file .......1st column in Nth file combine file combine file
1 2 n 1,2....,n
1 2 n 1,2....,n
1 2 n 1,2....,n
1 2 n 1,2....,n
1 2 n 1,2....,n
*edit

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 16 Feb 2019
See attached demos. One breaks apart a video into separate 2-D still image frames. Then the second one writes the image out to a text file with one line per pixel in the form (x,y,R,G,B).
Adapt as needed.
  5 Comments
game sripradit
game sripradit on 17 Feb 2019
Edited: Image Analyst on 17 Feb 2019
I have 1200 image files. I can't do it. Now I go image by image. It so tired.
Please help me.

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!