A medical imaging system having an image sensor, a birefringent mask coupled to the image sensor, and processing circuitry that obtains image data from the image sensor, and performs processing on the image data based on unique optical characteristics of a coupled medical device, wherein the processing includes selecting at least one of depth of field expansion and blur improvement based on the unique optical characteristics.