Matching Your Camera to Your Optics