# Extended Depth of Field

![(Left) With EDF. (Right) Without EDF](https://1268872846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWT7bo4Xbl2jOnmH1yB%2F-LwF-EgU1e8naphgzgvt%2F-LwFQPDBUkLVwcW0S88A%2F2019-12-16%2012_31_18-comparison.png?alt=media\&token=9d8a07e5-1ebd-46b2-9ac3-14ec5bc58829)

Extended depth of field algorithm is a proven method of generating a best focus composite image from a z-stack. The particular complex wavelet implementation used in CODEX is [Saphicon AllFocus](http://www.saphicon.com/edf-image-gallery.htm), following the technique first described by Brigette Forster in 2004. This allows for the best image quality and advantages of smaller processed datasets without losing meaningful fluorescence data. This algorithm can be toggled off for backwards compatibility with 3D volumetric output.

[Forster, B., Van De Ville, D., Berent, J., Sage, D., & Unser, M. (2004). Complex wavelets for extended depth‐of‐field: A new method for the fusion of multichannel microscopy images. Microscopy research and technique, 65(1‐2), 33-42.](https://onlinelibrary.wiley.com/doi/abs/10.1002/jemt.20092)

[ImageJ Implementation](https://imagej.net/Extended_Depth_of_Field)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.codex.bio/codex/processor/technical-notes/extended-depth-of-field.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
