Skip to content

Commit

Permalink
Minor edits for Midterm
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrayanRoy committed Mar 7, 2024
1 parent 93577fd commit c4aed36
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 28 deletions.
30 changes: 16 additions & 14 deletions presentation/finalpresentation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -112,31 +112,30 @@ knitr::include_graphics("pimg/zhu.png")

# Our Approach: Main Idea

* Use of more general prior for image proposed by Nandy (2021).
* Use of more **general prior** for image proposed by Nandy (2021).

--

* Parametric models to estimate level of blur as surrogate for depth.

--

* Instead of doing post estimation segmentation, start with pre-segmented image.

* Estimate blur (depth) for each segment separately.

* Use of Modern segmentation algorithms such as **Segment-Anything**.

```{r ,warning=FALSE,echo=FALSE,out.width='33%',fig.align='center',echo=FALSE,fig.cap="Figure: Segmented Image by SAM"}
knitr::include_graphics("pimg/seg1.png")
```

---

# Point Spread Function

* When light rays spread from a point source and hit the camera lens, they should ideally refract and converge on the corresponding pixel of the original scene.

--

* However, if the source is out of focus, the refracted rays spread out over neighboring pixels as well.

--

* This spreading pattern is called the Point Spread Function (PSF) or Blur Kernel.

--
Expand Down Expand Up @@ -372,7 +371,7 @@ knitr::include_graphics("pimg/exp2.png")

---

# Challenges in ML Estimation(Contd.)
# Challenges in ML Estimation

* Global maxima don't always correspond to the actual parameters of the blur kernel.

Expand Down Expand Up @@ -401,9 +400,11 @@ knitr::include_graphics("pimg/deconv_prob.png")

--

* We considered five sharp images and randomly selected patches of various sizes from them.
* We consider five sharp images and true parameter values $r_{true} = 1, 3, 5$.

* For each value of $r_{true}$, patches of fixed size are randomly selected, and defocus blur is simulated.

* In each case, we have found $\hat{r}$ as a function of $\sigma$ and plotted it.
* $\hat{r}$ is determined as a function of $\sigma$ in each case and plotted.

--

Expand Down Expand Up @@ -451,15 +452,15 @@ knitr::include_graphics("pimg/ourap.png")

* Instead of manually selecting patches, we require a more general method.

--

* Selecting overlapping local patches for each pixel can be useful.

--

* But it may yield poor results in certain situations.

* We will use segments obtained by the segmentation algorithm to estimate blur.
--

* We will use segments obtained by the segmentation algorithm.

---

Expand All @@ -477,6 +478,7 @@ knitr::include_url("https://segment-anything.com/",height = "500px")

* It can take **prompts** such as - box, points, texts as input to perform segmentation.

--

```{r ,warning=FALSE,echo=FALSE,out.width='80%',fig.align='center',echo=FALSE,fig.cap="Figure: Automatic and Manual Segmentation by SAM"}
Expand Down
30 changes: 16 additions & 14 deletions presentation/finalpresentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,31 +122,30 @@

# Our Approach: Main Idea

* Use of more general prior for image proposed by Nandy (2021).
* Use of more **general prior** for image proposed by Nandy (2021).

--

* Parametric models to estimate level of blur as surrogate for depth.

--

* Instead of doing post estimation segmentation, start with pre-segmented image.

* Estimate blur (depth) for each segment separately.

* Use of Modern segmentation algorithms such as **Segment-Anything**.

<div class="figure" style="text-align: center">
<img src="pimg/seg1.png" alt="Figure: Segmented Image by SAM" width="33%" />
<p class="caption">Figure: Segmented Image by SAM</p>
</div>

---

# Point Spread Function

* When light rays spread from a point source and hit the camera lens, they should ideally refract and converge on the corresponding pixel of the original scene.

--

* However, if the source is out of focus, the refracted rays spread out over neighboring pixels as well.

--

* This spreading pattern is called the Point Spread Function (PSF) or Blur Kernel.

--
Expand Down Expand Up @@ -382,7 +381,7 @@

---

# Challenges in ML Estimation(Contd.)
# Challenges in ML Estimation

* Global maxima don't always correspond to the actual parameters of the blur kernel.

Expand Down Expand Up @@ -411,9 +410,11 @@

--

* We considered five sharp images and randomly selected patches of various sizes from them.
* We consider five sharp images and true parameter values `\(r_{true} = 1, 3, 5\)`.

* For each value of `\(r_{true}\)`, patches of fixed size are randomly selected, and defocus blur is simulated.

* In each case, we have found `\(\hat{r}\)` as a function of `\(\sigma\)` and plotted it.
* `\(\hat{r}\)` is determined as a function of `\(\sigma\)` in each case and plotted.

--

Expand Down Expand Up @@ -452,15 +453,15 @@

* Instead of manually selecting patches, we require a more general method.

--

* Selecting overlapping local patches for each pixel can be useful.

--

* But it may yield poor results in certain situations.

* We will use segments obtained by the segmentation algorithm to estimate blur.
--

* We will use segments obtained by the segmentation algorithm.

---

Expand All @@ -476,6 +477,7 @@

* It can take **prompts** such as - box, points, texts as input to perform segmentation.

--

<div class="figure" style="text-align: center">
<img src="pimg/couple.png" alt="Figure: Automatic and Manual Segmentation by SAM" width="80%" />
Expand Down
Binary file modified presentation/pimg/ourap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c4aed36

Please sign in to comment.