Skip to content

zla182/cmpt276Ass1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmpt276Ass1

This project shows lens focal length, aperture, and distance data through UI.

Description

The model package is the part of the application that manages the data and most of the logic of the application. user interface (UI) classes in the UI package will call classes from this package, but the model package classes will not call UI classes.

Environment

  • Java SE JDK
  • IntelliJ Comminity Edition

Testing

  • Write a JUnit 5 test class for your depth of field calculator class which tests all of its methods. Test at least three different lens and camera setting combinations.

Expected output

Hyperfocal distance

  • With a given lens and camera settings, the hyperfocal distance is the distance from the camera beyond which all objects will seem in focus. Hyper focal distance:

  •  [mm] = (lens focal length [mm])^2 /  (selected aperture * cameras circle of confusion [mm])
         

Near focal point

  • Near focal point is distance from the camera to the nearest point which will seem in focus.

  • Near Focal Point [mm] = (hyper focal point [mm] * distance to subject [mm]) 
     / (hyper focal point [mm] + (distance to subject [mm] – lens focal length [mm]))

Far focal point

  • Far focal point is distance from the camera to the farthest point which will seem in focus.

  • Far Focal Point [mm] = (hyper focal point [mm] * distance to subject [mm]) 
     / (hyper focal point [mm] – (distance to subject [mm] – lens focal length [mm]))

Author

@ Zla182

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages