You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the context of fixes and potential improvements to the imageruler (#24 , #22 , #23 ), it may be worth reconsidering the API. Currently, the API is a bit complex, accommodating e.g. periodic boundary conditions, optional border exclusion for violation detection, padding modes, kernel shapes, and non-square pixels in the top-level functions.
Some of the previously-identified issues only arise when these features are exercised. In the photonics-opt-testbed (code search), only periodic boundaries are used, and so it seems we could get away with something like,
Aiming for a simpler API should make it easier to develop a well-tested and reliable implementation of the imageruler algorithm. I would be happy to contribute improvements to the codebase, but believe it is probably worth discussing larger changes before submitting a PR. In particular, it would be good to hear if there is a case for retaining the the phys_size, margin_size, pad_mode, and kernel_shape arguments.
The text was updated successfully, but these errors were encountered:
At least some of the features can be changed from function parameters to function compositions — e.g. padding can be a separate function, resizing to square pixels can be a separate function.
And some parameters like kernel_shape they only seem to have been needed in the research phase.
In the context of fixes and potential improvements to the imageruler (#24 , #22 , #23 ), it may be worth reconsidering the API. Currently, the API is a bit complex, accommodating e.g. periodic boundary conditions, optional border exclusion for violation detection, padding modes, kernel shapes, and non-square pixels in the top-level functions.
Some of the previously-identified issues only arise when these features are exercised. In the photonics-opt-testbed (code search), only periodic boundaries are used, and so it seems we could get away with something like,
Aiming for a simpler API should make it easier to develop a well-tested and reliable implementation of the imageruler algorithm. I would be happy to contribute improvements to the codebase, but believe it is probably worth discussing larger changes before submitting a PR. In particular, it would be good to hear if there is a case for retaining the the
phys_size
,margin_size
,pad_mode
, andkernel_shape
arguments.The text was updated successfully, but these errors were encountered: