In this blog post, I am going to try to explain to you what to do once we know the interlace pattern values per pixel, which is basically, know which camera’s pixel should be accessed.Remember how each pixel information of the 2×4 is contained in 3 rows? This is a big key to obtain the pixel to access each image.

Basically, what we are trying to achieve is create a table like the following as long as we treat the pixels as a continuous array.

However this is unconvenient, since that in order to access the pixel values a values of the row and the column are required. So instead we look for something like this.

Having this in mind, we can do two equations, one for the rows and one for the columns of the images. So given a value of a row and a column of a pixel, we can obtain the row and the columns ( in each triplet more than 1 pixel might be accessed)

Let’s start with the local row of each image of the 2×4, since the access is the same along three rows(R) of the interlaced.

Now, the local column is pretty easy too. Since there are only 8 images, we need to check the result of dividing the column(C) we are looking at plus R(+0) G(+1) B(+2) by the 8 views.

Now we just need to add this values to the offset of each image (since each image “starts” at one pixel specifically), the image number we know it from the equation we obtained in the previous tutorial , in order to know the offset we should make a simple that gives us the starting pixel of each image.

Along with the equation of the previous tutorial and these we have all the information needed to obtain the values of each image and create the interlacing pattern.