-
Notifications
You must be signed in to change notification settings - Fork 21
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
Ruler update #30
Ruler update #30
Conversation
It might be useful to show the various designs (CSV files) in the README.md tiled as a single image file with a label for the measured lengthscale. |
I'm not convinced that this should be merged:
|
Here is another issue. |
The
The advantages of using the |
That example runs for me (32GB ram) in about 30 seconds without running out of memory. It also runs with |
Conclusion: let's go with min(open-design, design-close), use opencv, use the new definition of interfacial pixels, and use the simplest-to-explain definition of the discretized "circular" kernel. |
One other feature relates to the padding of the edge pixels of the design region. Our convention will be:
|
Obsoleted by recent changes. |
A new version of
ruler
, i.e.,ruler_cv.py
, is added. This version relies on thecv2
module of OpenCV. Tests based on @mfschubert's design patterns are also included. Overall, compared with the results of the old version, minimum length scales estimated by the new version are closer to the declared values. However, the new version does not work for 3d patterns, becausecv2
does not support 3d calculation. Since almost all design patterns in this project are 2d (and the only 3d patterns have constant 2d cross sections, which can be treated as 2d patterns), maybe we could just delete the old version and use the new version, which only supports 2d calculation.