Calculate all the levels and obtain 240x255 Matrix for 40 images