From focal stack and perspective views, we have produced depth map by three methods: locally STD, Laplacian filter, and gradient-based method.
From focal stack, we developed an algorithm to pick up the most focus-matched image with the target image. And then we produce panorama at different focus by the accelerated stitching algorithm.
Finally, anaglyphs are generated from the leftmost image and rightmost image from sub image array and stitched into panorama.
Anaglyphs (a) leftmost image (b) rightmost image (c) Anaglyphs generating from (a) and (b)
Panorama of anaglyphs
Translation-capable Panorama Using Light Field Imaging
MATLAB code for generating panoramic stereo images