Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dftfringe_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@
<name>Settings2</name>
<message>
<location filename="settings2.ui" line="14"/>
<source>DFTFring Settings</source>
<source>DFTFringe Settings</source>
<translation type="unfinished"></translation>
</message>
</context>
Expand Down Expand Up @@ -2718,12 +2718,12 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="settingsdft.ui" line="20"/>
<source>Show DFT Thumnail once Mirror is outlined in Igram.</source>
<source>Show DFT Thumbnail once Mirror is outlined in interferogram.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="settingsdft.ui" line="27"/>
<source>SHow Down sized interferogram.</source>
<source>Show downsized interferogram.</source>
<translation type="unfinished"></translation>
</message>
</context>
Expand Down
20 changes: 10 additions & 10 deletions res/Help/lensDistort.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<style>
<style>

p.ex
{
width:800px;
width:800px;
word-wrap:break-word;
}

Expand All @@ -14,7 +14,7 @@ <h3> Note: </h3>
<p class = "ex"> <i><b><font color = "Red">
This is an experimental feature. I do not know if it is accurate or helpful. What I tried to do to verify it was to create a grid target
with DFTFringe and then add barrel or pincushin distortion using Imagick. Then used DFTFringe to find and remove that distortion. That created a straight grid with no visible distorion. So at least I know the distorion can be determined and removed. </p>
<p class = "ex"> Next I tried to measure the distortion of the lens I use to take interferograms a Nikon 200mm zoom at 120 mm fl. DFTFringe measured a very small barrel disitortion. I tried removing that from several igrams I had taken and compared it to the original analysis. The RMS value of the spherical term and final RMS value changed by about .5%.
<p class = "ex"> Next I tried to measure the distortion of the lens I use to take interferograms a Nikon 200mm zoom at 120 mm fl. DFTFringe measured a very small barrel disitortion. I tried removing that from several igrams I had taken and compared it to the original analysis. The RMS value of the spherical term and final RMS value changed by about .5%.
<p class = "ex"> The biggest issue I have at this point is that ImageMagic and OpenCV (used by DFTFringe) have different distortion coefficience. I don't know how to convert from one to the other. So that makes it hard to experiment with them.</P>
<p class = "ex"> I am stoping development on this feature at this point to let other experiment with it.</i></b></font></p>

Expand All @@ -25,7 +25,7 @@ <h1> Lens Distortion calibration and removal </h1>
<h2> Target creation</h2>
<p class = "ex"> You can use DFTFringe to create a target eithier on a computer screen or on a printer. Because computer screens can be bigger than most home printer paper you might want to use the computer screen.</p>
<br>
You can select from three target styles.<p class = "ex">
You can select from three target styles.<p class = "ex">
<style>
table, th, td {
border: 1px solid black;
Expand All @@ -43,10 +43,10 @@ <h2> Target creation</h2>
</tr>
</table>
</p>
<p class = "ex">
<p class = "ex">

The circle grid and chess board images can be used by the automatic calibration feature.<br>
The line grid can be used for manual inspection or used with <a href = http://hugin.sourceforge.net/tutorials/calibration/en.shtml>Hugins lens Calibration tutorial</a>.
The line grid can be used for manual inspection or used with <a href = http://hugin.sourceforge.net/tutorials/calibration/en.shtml>Hugin lens Calibration tutorial</a>.
<h2>Calibration procedure</h2>
</P>
<p class = "ex">
Expand All @@ -64,7 +64,7 @@ <h2>Calibration procedure</h2>
<li>You can then save the results by pressing the "Save lens parms" button. Give the lens a name and press "OK"
</li>
</ul>
<h3>Manual data entry</h3><p class = "ex">
<h3>Manual data entry</h3><p class = "ex">
You can also edit or enter all you lens data manually if you know them already.
</P>
<h3>Camera matrix FL value explained
Expand All @@ -74,14 +74,14 @@ <h3>Camera matrix FL value explained
That will give you the focal length in mm the the target image was taken.
</p>
<h3>Removing distortion from an interferogram</h3>
<p class = "ex">
<p class = "ex">
The purpose of the above was to measure the distorion of a lens so that it can be removed from an interferogram. You can enable distortion removal when the interferogram is first loaded. To do that go to the configuration/preferences menu and select interferogram. Click on the
<a href = igramSettingsLens.png>"Remove lens distortion" </a>checkbox. You will see a list of lenses that you have calibrated. You can click on one and then the program will use those values to remove distortion from any interferogram you load until you change the settings.</P>
<h2>References</h2>
<ol><li><a href = http://www.imagemagick.org/Usage/lens/>ImageMagic</a></li>
<li><a href = http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html>Opencv</a></li>
<li>Hugins<ul>
<li><a href = http://hugin.sourceforge.net/tutorials/calibration/en.shtml>Hugins lens Calibration tutorial</a>
<li>Hugin<ul>
<li><a href = http://hugin.sourceforge.net/tutorials/calibration/en.shtml>Hugin lens Calibration tutorial</a>
<li><a href = http://hugin.sourceforge.net/docs/manual/Lens_correction_model.html>Lens model</a></li>
<li><a href = https://vimeo.com/51999287>setting controls points in Hugin</a></li>
</ul>
Expand Down
18 changes: 9 additions & 9 deletions res/Help/tips.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<style>
<style>
p
{
width:600px;
width:600px;
word-wrap:break-word;
}
p.ex
{
width:300px;
width:300px;
word-wrap:break-word;
}
td {
Expand All @@ -30,7 +30,7 @@ <h2>Cause of Blurry fringes</h2>
<P>Blurry fringes on part of the interferogram are usually caused by vibration of the mirror or interferometer. Faster shutter speed is required to reduce the issue if the vibrations can not be reduced.</p>
</li><li>
<h2>Zernike terms to ignore</h2>
<p> Zernike terms of piston, tilt, defocus, and coma are usually disabled because except for coma they are the result of the setup and not the mirror itself. Coma values depend on tilt values and the outline position of the mirror. It is next to impossible to determine the correct value. For mirrors used in Newtonian collimation will compensate for any coma in the mirror.</p>
<p> Zernike terms of piston, tilt, defocus, and coma are usually disabled because except for coma they are the result of the setup and not the mirror itself. Coma values depend on tilt values and the outline position of the mirror. It is next to impossible to determine the correct value. For mirrors used in Newtonian collimation will compensate for any coma in the mirror.</p>
</li>


Expand Down Expand Up @@ -67,7 +67,7 @@ <h2>Artificial Null</h2>
</dl>
</li>


<li>Artificial nulling has accuracy issues for large, fast mirrors</li>

</ul>
Expand All @@ -81,8 +81,8 @@ <h2> Inverted wavefront and when to invert it back </h2>
<li>The surface analysis is inverted and needs to be inverted back to the correct one.</li>
<li>The surface is not inverted and truly has a conic with the wrong sign from the desired surface.</li>
</ol>
<p>When the sign of Z8 does not match the sign of the desired conic the software will ask the user if the surface should be inverted.
The user then needs to decide. For cases where a known paraboloidial mirror is being measured the answer will be yes.
<p>When the sign of Z8 does not match the sign of the desired conic the software will ask the user if the surface should be inverted.
The user then needs to decide. For cases where a known paraboloidial mirror is being measured the answer will be yes.
If one is testing a sphere (Desired conic of 0.) or a mirror just staring to be corrected the user has a harder time deciding. One method is to heat a portion of the surface with a thumb before taking the interferogram. That will raise the surface slightly. If in the analysis that area is raise then the Z8 sign is correct. If instead there is a dent then the z8 sign is inverted and the wavefront should been inverted.
</p>
<p>For convience the program remembers the answer to the question and will invert any other wavefront it thinks are inverted (sign of Z8 does not match sign of desired conic and you answered yes to the prompt to invert) util the program is restarted.</p>
Expand All @@ -97,7 +97,7 @@ <h2> Gaussian Blur filter </h2>

<li>
<h2> How to deal with out of memory issues </h2>
<p>As igrams get bigger DFTFring can run out of memory and crash when loading several
<p>As igrams get bigger DFTFringe can run out of memory and crash when loading several
wavefronts. The wave front file is the size the mirror is in pixels in the interferogram. There are a few things you can do to help.</p>
<p>After you have a wavefront file save it, then delete it from the program before analyzing another. If you are using the batch analyze feature you can select to save the wavefront file and delete it automatically on each interferogram. When you want to average them all together use the Average wave front command from the Files menu. It will average them all without keeping them all in memory.
</p>
Expand All @@ -115,7 +115,7 @@ <h2> How to deal with out of memory issues </h2>
<ul>
<p>You can tell the program to reduce the size of the interferogram before it analyzes it. Change the DFT control's "DFT Size" on the DFT Tab. This will reduce the size of the image before it make the DFT. The wave front size will match the DFT Size.</p>
<p>You can only do this if the fringes are wide enough to still contain several pixels
ofter the resize. If the fringes become too small then you should not use this method.</P>
after the resize. If the fringes become too small then you should not use this method.</P>
</ul>
</li>
</ol></p>
Expand Down
2 changes: 1 addition & 1 deletion settings2.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>DFTFring Settings</string>
<string>DFTFringe Settings</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
Expand Down
8 changes: 4 additions & 4 deletions settingsdft.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@
<item>
<widget class="QCheckBox" name="ShowDFTTHumbCB">
<property name="text">
<string>Show DFT Thumnail once Mirror is outlined in Igram.</string>
<string>Show DFT Thumbnail once Mirror is outlined in interferogram.</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="showDownSizedIgram">
<property name="text">
<string>SHow Down sized interferogram.</string>
<string>Show downsized interferogram.</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="flipVert">
<property name="text">
<string>Flip analysis vertical</string>
<string>Flip analysis vertically</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="flipHorizontal">
<property name="text">
<string>Flip analysis horizontal</string>
<string>Flip analysis horizontally</string>
</property>
</widget>
</item>
Expand Down
14 changes: 7 additions & 7 deletions settingsigram.ui
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,13 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="importConfig">
<property name="text">
<string>Import interferogram configuration (what hot key &quot;i&quot; does)</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
Expand Down Expand Up @@ -358,13 +365,6 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="importConfig">
<property name="text">
<string>Import interferogram configuration (what hot key &quot;i&quot; does)</string>
</property>
</widget>
</item>
<item>
<widget class="QTableView" name="lenseTableView">
<property name="tabKeyNavigation">
Expand Down
6 changes: 3 additions & 3 deletions settingsigramimportconfig.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
</rect>
</property>
<property name="windowTitle">
<string>&quot;I&quot; hot key config</string>
<string>&quot;i&quot; hot key config</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Choose what the hot key &quot;I&quot; does when pressed on the main window.</string>
<string>Choose what the hot key &quot;i&quot; does when pressed on the main window.</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -47,7 +47,7 @@
<item>
<widget class="QRadioButton" name="openPath">
<property name="text">
<string>Just Open Dir</string>
<string>Just open dir</string>
</property>
</widget>
</item>
Expand Down
Loading