Currently it is difficult to use ufraw with hugin without some unnecessary quality loss.
- TCA must be corrected in ufraw, before the Bayer mask interpolation
- distortion and vignetting is performed by hugin. Any processing in ufraw is redundant, with negative impact on image quality. Also there is a problem with black borders of the image which can't be automatically removed in hugin (it would help if ufraw could write images with transparent background).
Add a boolean flag "hugin compatibilty mode" to config and commandline,
- perform only TCA correction
- export vignetting and distortion data in a "lens calibration" .ini file that hugin can read (at the moment I cant find any description of the file format, but it looks trivial, see also http://wiki.panotools.org/Hugin_Camera_and_Lens_tab )