Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve focus even if there is no V or U shaped data. #13

Open
simontorres opened this issue Apr 25, 2023 · 0 comments
Open

Solve focus even if there is no V or U shaped data. #13

simontorres opened this issue Apr 25, 2023 · 0 comments

Comments

@simontorres
Copy link
Member

The application should always return a focus value even if the data does not have an ideal range (that's what I mean by V or U shape)
The solution implemented in #12 works but I'm not fully convinced is the best solution.
Figure_1

Current Implementation

To obtain the best focus it uses the Brent optmization method with a bracket that has to define a V or U shape data.

Idea for Implementation

It should implement diferentiated algorithm to get the best focus, depending on the shape of the data.

simontorres added a commit that referenced this issue Apr 25, 2023
- Now the program will not crash and will return None, I'm not fully convinced this is the best solution for this but and idea is described in #13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant