I am writing a lens correctionion code and the process should do several things:
- Inverse fisheye projection to obtain rectilinear image
- Barrel/pincushion correction
- Vignetting correction
- Lateral chromatic aberration correction
The problem is - in what order apply these steps?
Should the image be first "de-fished" or the chromatic aberration, vignetting etc. affects already formed fisheye image?
I am not familiar with optics so maybe any ordering is okay as long as correct models/parameters are used - but I would like to go for simplest solution in that case - e.g. if chromatic aberration is most easily corrected in rectilinear images, then de-fishing should go first.