Calculate the Depth Of FIeld, In Focus and the Hyperforcal Point of the camera given the make, max aperture, focal length of lens. User provides the desired aperture and distance to the subject.
Developed in Java to utilize Object Oriented Programming.
Provides Backend logic for developing an App (Depth of Field for Camera Lens App)
Source Code includes:
- Model Package contains following classes : Lens, DepthOfFieldCalculator, LensManager, Main
- Test Package contains following classes : DepthOfFieldCalculatorTest
- TextUI Package contains following classes : TextUI
Install IntelliJ Community Edition
JUnit User Guide
Before running Main class or tests in this project, please download following library from the Maven Repository :
org.junit.jupiter:junit-jupiter:5.8.1
Select Main File & Run Current File to obtain depth of field calculations for desired lens combination
Select Test File & Run Current File to test Depth Of Field Calculator Class