Skip to content

Commit

Permalink
Added docs on Wavefront reconstruction for Roddier method and more ge…
Browse files Browse the repository at this point in the history
…nerally to study Transport of intensity equation (TIE)
  • Loading branch information
gnthibault committed Jul 15, 2021
1 parent 8bdd5e3 commit 1ebf0ea
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 10 deletions.
4 changes: 2 additions & 2 deletions NormalizingFlows.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@
"### Introduction\n",
"\n",
"The fundamental equation we need here, is known for a very long time, and relates to change of variable, initially used to integrate quantities in physics.\n",
"Given an invertible function:$f:\\underset{Z}{z} \\mapsto \\underset{X}{x}$ and a distribution $p_{\\theta}(z), \\; z \\in Z$, the change of variable forumla reads\n",
"Given an invertible function:$f:\\underset{Z}{z} \\mapsto \\underset{X}{x}$ and a distribution $p_{\\theta}(z), \\; z \\in Z$, the change of variable formula reads\n",
"\n",
"\\begin{align*}\n",
" p_{\\theta}'(x) &= p_{\\theta}\\left( f^{-1}(x) \\right) |det \\left( J_{f^{-1}} \\right)| \\\\\n",
Expand Down Expand Up @@ -2569,7 +2569,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down
38 changes: 36 additions & 2 deletions RoddierWaveFrontReconstruction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,45 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Irradiance transport equation\n",
"### Irradiance transport equation / Transport of intensity equation (TIE)\n",
"\n",
"#### Introduction\n",
"Although this equation is referred to as \"Irradiance transport equation\" in the original paper from Roddier, it is more often refered to as \"transport of intensity equation\", see wikipedia: https://en.m.wikipedia.org/wiki/Transport-of-intensity_equation\n",
"\n",
"It has been extensively studied in the past, and still is a topic of interest for some physics researchers, we find interesting to cite two papers before going into more details for Roddier method.\n",
"\n",
"The first one, named ***Deterministic phase retrieval: a Green's function solution*** is an article from 1983 that aimed at studying the partial differential equation, and formulate a solution based on Green's function:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#IFrame(\"doc/Optics/teague1983.pdf\", width=1200, height=800)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The second one, named: ***On a universal solution to the transport-of-intensity equation*** presents an iterative approach to solve the pde, with stability considerations:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#IFrame(\"doc/Optics/1912.07371.pdf\", width=1200, height=800)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The irradiance transport partial differential equation reads:\n",
"\n",
"\\begin{align*}\n",
Expand Down Expand Up @@ -267,7 +301,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.8.10"
}
},
"nbformat": 4,
Expand Down
Binary file added doc/Optics/1912.07371.pdf
Binary file not shown.
Binary file added doc/Optics/teague1983.pdf
Binary file not shown.
15 changes: 9 additions & 6 deletions keras-vq-vae-for-image-generation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2.4.1\n",
"2.4.0\n"
"ename": "ModuleNotFoundError",
"evalue": "No module named 'tensorflow'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-1-1310f9d43c9e>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 7\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 8\u001b[0m \u001b[0;31m# TF/Keras\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 9\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mtensorflow\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mtf\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 10\u001b[0m \u001b[0;31m#import tensorflow.keras as K\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 11\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mtensorflow\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mkeras\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'tensorflow'"
]
}
],
Expand Down Expand Up @@ -1146,7 +1149,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1ebf0ea

Please sign in to comment.