https://wiki.panotools.org/index.php?title=Tca_correct&feed=atom&action=history
Tca correct - Revision history
2024-03-29T12:58:23Z
Revision history for this page on the wiki
MediaWiki 1.35.3
https://wiki.panotools.org/index.php?title=Tca_correct&diff=11191&oldid=prev
Aston: typos
2009-03-31T16:21:15Z
<p>typos</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:21, 31 March 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3" >Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Using with fulla ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Using with fulla ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[fulla]] is a command-line tool for correcting [[lens distortion]], [[vignetting]] and [[TCA]] (chromatic aberration). It is capable of applying the full panotools polynomial to the red and blue channels.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[fulla]] is a command-line tool for correcting [[lens distortion]], [[vignetting]] and [[TCA]] (chromatic aberration). It is capable of applying the full panotools polynomial to the red and blue channels<ins class="diffchange diffchange-inline">, thereby correcting any transverse chromatic aberration</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>First calculate some TCA correction parameters for a sample image, notice that I'm only going to bother optimising ''b'' and ''v'' parameters in the [[lens correction model]], you might get better results with the full ''abcv'' set of parameters:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>First calculate some TCA correction parameters for a sample image, notice that I'm only going to bother optimising ''b'' and ''v'' parameters in the [[lens correction model]], you might get better results with the full ''abcv'' set of parameters:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l27" >Line 27:</td>
<td colspan="2" class="diff-lineno">Line 27:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> tca_correct -o v DSC_3194.ppm</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> tca_correct -o v DSC_3194.ppm</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>After while some [[fulla]] correction parameters will be outputted:</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>After <ins class="diffchange diffchange-inline">a </ins>while some [[fulla]] correction parameters will be outputted:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> -r 0.0000000:0.0000000:0.0000000:1.0005943 -b 0.0000000:0.0000000:0.0000000:1.0008306</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> -r 0.0000000:0.0000000:0.0000000:1.0005943 -b 0.0000000:0.0000000:0.0000000:1.0008306</div></td></tr>
</table>
Aston
https://wiki.panotools.org/index.php?title=Tca_correct&diff=11190&oldid=prev
Aston: basic page
2009-03-31T16:14:45Z
<p>basic page</p>
<p><b>New page</b></p><div>'''tca_correct''' is a command-line tool shipped with [[hugin]] that can be used to automatically calculate lens [[TCA|chromatic aberration]] correction parameters. Ideal sample photos would have a lot of contrast over the entire image area, little saturated colour and no blown highlights.<br />
<br />
== Using with fulla ==<br />
<br />
[[fulla]] is a command-line tool for correcting [[lens distortion]], [[vignetting]] and [[TCA]] (chromatic aberration). It is capable of applying the full panotools polynomial to the red and blue channels.<br />
<br />
First calculate some TCA correction parameters for a sample image, notice that I'm only going to bother optimising ''b'' and ''v'' parameters in the [[lens correction model]], you might get better results with the full ''abcv'' set of parameters:<br />
<br />
tca_correct -o bv DSC_3194.ppm<br />
<br />
This outputs some fulla parameters like so:<br />
<br />
-r 0.0000000:0.0001197:0.0000000:0.9997630 -b 0.0000000:-0.0001142:0.0000000:1.0001841<br />
<br />
You can now use these with fulla when converting photos from this lens:<br />
<br />
fulla -r 0.0:0.0001197:0.0:0.9997630 -b 0.0:-0.0001142:0.0:1.0001841 -o corrected.tif DSC_3194.ppm<br />
<br />
== Using with dcraw ==<br />
<br />
[[dcraw]] is a command-line [[RAW]] converter with the ability to apply scaling of red/blue channels at the Bayer interpolation stage. Simple scaling is not as sophisticated as the panotools polynomial used in [[fulla]] but is good enough for nearly all purposes. Start by extracting a test image from a RAW file:<br />
<br />
dcraw DSC_3194.NEF<br />
<br />
Then run '''tca_correct''' on this PPM image, but tell it to only optimise ''v'' [[field of view]] for the red and blue channels:<br />
<br />
tca_correct -o v DSC_3194.ppm<br />
<br />
After while some [[fulla]] correction parameters will be outputted:<br />
<br />
-r 0.0000000:0.0000000:0.0000000:1.0005943 -b 0.0000000:0.0000000:0.0000000:1.0008306<br />
<br />
The two useful numbers (1.0005943 and 1.0008306) are the inverse of the numbers required by dcraw, so get a calculator and calculate the reciprocal of each:<br />
<br />
1 / 1.0005943 = 0.999406<br />
1 / 1.0008306 = 0.999170<br />
<br />
Now when converting RAW files from this lens you can use the dcraw -C parameter to correct [[TCA]]:<br />
<br />
dcraw -C 0.999406 0.999170 [OPTIONS...] DSC_3194.NEF<br />
<br />
[[Category:Software:Platform:Windows]]<br />
[[Category:Software:Platform:Linux]]<br />
[[Category:Software:Platform:Mac OS X]]<br />
[[Category:Software:Hugin]]</div>
Aston