home

PDF (letter size)

Finding image forward projection and its transpose matrix

Nasser M. Abbasi

California State University, Fullerton, Summer 2008   Compiled on January 30, 2024 at 6:49am

Problem

Write the matrix which implements the forward projection and its transpose.

A simple case would be to consider a 2-D object made up of only 4 pixels and one projection. After that think about an object with many pixels and many projections.

Answer

I will use the convention used by the radon transform in Matlab in setting up the coordinates system which is as shown below (diagram from Matlab documentation page).

In our case, we need to perform the following projection, which is at angle θ=900 as follows

The equation for the above mapping is g=Hf, hence we write(g1g2)=(h11h12h13h14h21h22h23h24)(f1f2f3f4) Hence g1=h11f1+h12f2+h13f3+h14f4g2=h21f1+h22f2+h23f3+h24f4

But g1=f1+f2 from the line integral at the above projection and g2=f3+f4, hence the above 2 equations becomesf1+f2=h11f1+h12f2+h13f3+h14f4f3+f4=h21f1+h22f2+h23f3+h24f4

By comparing coefficients on the LHS and RHS for each of the above equations, we see that for the first equation we obtainh11=1,h12=1,h13=0,h14=0 For the second equation we obtainh21=0,h22=0,h23=1,h24=1 Hence the H matrix isH=(11000011) Taking the transposeHT=(10100101) Hence if we apply HT operator onto the image g, we obtain back a 2×2 image, which is written as(10100101)(g1g2)=(k1k2k3k4) Hence k1=g1,k2=g1,k3=g2,k4=g2. In other words, the image is a 4 pixels [g1g1g2g2]

HT can now be viewed as back projecting the image g into a plane by smearing each pixel gi value over the plane along the line of sight as illustrated below

1 Case of 45 degree

We repeat the above for θ=450

The equation for the above mapping is g=Hf, hence we write(g1g2g3)=(h11h12h13h14h21h22h23h24h31h32h33h34)(f1f2f3f4) Therefore g1=h11f1+h12f2+h13f3+h14f4g2=h21f1+h22f2+h23f3+h24f4g3=h31f1+h32f2+h33f3+h34f4

We see from projection diagram that f1=g1,f3+f2=g2 and f4=g3, hence the above 3 equations becomef1=h11f1+h12f2+h13f3+h14f4f3+f2=h21f1+h22f2+h23f3+h24f4f4=h31f1+h32f2+h33f3+h34f4

By comparing coefficients, we obtain from the first equation h11=1,h12=0,h13=0,h14=0 and from the second equation h21=0,h22=1,h23=1,h24=0 and from the last equation h31=0,h32=0,h33=0,h34=1. Hence the H matrix isH=(100001100001) Using HT to project the image g we obtain(100010010001)(g1g2g3)=(k1k2k3k4) Hence k1=g1,k2=g2,k3=g2,k4=g3, hence the back projection plane isK=[g1g2g2g3] This also can be interpreted as back projecting the image g on a 450 onto a plane by smearing each pixel value gi on each pixel along its line of sight as illustrated below