I’ve seen 3D images that are made like this. Two images with slightly different perspectives are shifted back and forth to create a 3D image. Sometimes the result is pretty lame, but I think this artist has mastered the technique! Check the link for more images.
Artist creates 3D images by shifting perspectives