-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat(compare-images): add spatial tolerance #1181
feat(compare-images): add spatial tolerance #1181
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jadh4v !
Minor request inline
25058e1
to
9d86b78
Compare
@@ -12,6 +12,7 @@ def compare_double_images( | |||
test_image: Image, | |||
baseline_images: List[Image] = [], | |||
difference_threshold: float = 0, | |||
spatial_tolerance: float = 1e-06, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again
@@ -12,6 +12,7 @@ async def compare_double_images_async( | |||
test_image: Image, | |||
baseline_images: List[Image] = [], | |||
difference_threshold: float = 0, | |||
spatial_tolerance: float = 1e-06, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also missed out on updating the wasm binary
Add an option to pass spatial tolerance when comparing image direction matrix and origin for spatial overlap. Also export `toScalarDouble` js function for external use.
9d86b78
to
75f2db4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Add an option to pass spatial tolerance when comparing image direction matrix and origin for spatial overlap.
Also export
toScalarDouble
js function for external use.