Add contour comparison and animation together with similarity metrics #101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several new functionalities and improvements in the image alignment and comparison features of the
unraphaelproject. The most important changes include the addition of new functions for feature detection, homography computation, and image animation, as well as enhancements to the user interface for image comparison. Solves issues #98, #96 and #94New functionalities:
src/unraphael/dash/align.py: Added functionsdetect_and_compute_features,match_features,compute_homography,apply_homography, andhomography_matrixto support feature detection and homography computation for image alignment.src/unraphael/dash/pages/4_compare.py: Introduced functionsextract_foreground_mask,extract_outer_contour_from_mask,overlay_contours,warp_image_skimage,blend_images_skimage, andanimate_imagesto enhance image processing capabilities.User interface enhancements:
src/unraphael/dash/pages/4_compare.py: Added new display options "animation" and "contour comparison" in thedisplay_images_widgetfunction to provide more ways to compare images.src/unraphael/dash/pages/4_compare.py: Updated theprevious_imagefunction to include SSIM and CWSIM similarity metrics and support for the new display options.Code improvements:
src/unraphael/dash/widgets.py: Changeduse_container_widthtouse_column_widthin theshow_images_widgetandimage_downloads_widgetfunctions for better layout consistency. [1] [2]