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

feat(compare-images): add spatial tolerance #1181

Conversation

jadh4v
Copy link
Member

@jadh4v jadh4v commented Jul 18, 2024

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.

@jadh4v jadh4v requested a review from thewtex July 18, 2024 01:12
Copy link
Member

@thewtex thewtex left a 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

packages/compare-images/compare-double-images.cxx Outdated Show resolved Hide resolved
@jadh4v jadh4v force-pushed the feat-compare-images-add-spatial-tolerance-option branch from 25058e1 to 9d86b78 Compare July 18, 2024 15:25
@@ -12,6 +12,7 @@ def compare_double_images(
test_image: Image,
baseline_images: List[Image] = [],
difference_threshold: float = 0,
spatial_tolerance: float = 1e-06,
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again

Copy link
Member Author

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.
@jadh4v jadh4v force-pushed the feat-compare-images-add-spatial-tolerance-option branch from 9d86b78 to 75f2db4 Compare July 18, 2024 16:09
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@thewtex thewtex merged commit 11e398f into InsightSoftwareConsortium:main Jul 18, 2024
68 checks passed
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

Successfully merging this pull request may close these issues.

2 participants