1. A method for barcode imaging, comprising: capturing image data that is used to form an image with a light field imager, wherein the image includes a barcode; locating the barcode within the image; measuring a variance of at least a portion of the barcode region of the image; and translating the measured variance into a depth value used for refocusing at least a portion of the image.