Convert image 2d to 3d

Hi friends,
I want to convert 2d image to 3d using OpenCV can anybody share some examples with algorithms.