Decomposing Projection Using OpenCV and C++

 

  And the output is: