Kaedim interview question

Write an Algorithm to convert given images color schema to 3D object.