Skip to content

Commit

Permalink
Merge pull request #2978 from pieleric/fix-digitalcamera-depthoffield…
Browse files Browse the repository at this point in the history
…-formula-error

[fix] DigitalCamera depthOfField formula error
  • Loading branch information
pieleric authored Dec 17, 2024
2 parents 91bb53b + bb8ce96 commit 507ed60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/odemis/model/_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def updateMetadata(self, md):

try:
# from https://www.microscopyu.com/articles/formulas/formulasfielddepth.html
dof = (l * ri) / na ** 2 + (ri * pxs_sensor) / (mag - na)
dof = (l * ri) / na ** 2 + (ri * pxs_sensor) / (mag * na)
try:
self.depthOfField._set_value(dof, force_write=True)
except (IndexError, TypeError):
Expand Down

0 comments on commit 507ed60

Please sign in to comment.