Create image2seq

image2seq.m is a function which is used change a image matrix to a sequence