Skip to content

Implementation of ECC algorithm for image registration (based on OpenCV Implementation) - #7050

Closed
loicmusy wants to merge 16 commits into
scikit-image:mainfrom
loicmusy:ecc_transform
Closed

loicmusy wants to merge 16 commits into
scikit-image:mainfrom
loicmusy:ecc_transform

Conversation

@loicmusy

@loicmusy loicmusy commented Jul 6, 2023

Copy link
Copy Markdown

Description

In this pull request I implement an image registration algoirthm using the Enhanced Correlation Coefficient (as presented in the following paper)
G. D. Evangelidis and E. Z. Psarakis, "Parametric Image Alignment Using Enhanced Correlation Coefficient Maximization," IEEE Trans. Pattern Anal. Mach. Intell., 30, 10, pp. 1858-1865

I used the C++ implementation present in the OpenCV package as inspiration for this code.

By using find_transform_ECC it is possible to find the matrix transformation linking a reference image to a distorted imaged.

It can be used in a lot of fields, but an example close to my work is image registration of image series acquired using Scanning Probe Microscopy.

The implemented function might be better in skimage.transform instead of skimage.registration?

Checklist

Release note

Summarize the introduced changes in the code block below in one or a few sentences. The
summary will be included in the next release notes automatically:

- Add `find_transform_ECC()` in skimage.registration, which allows for the determination of a transformation matrix linking two images.

@loicmusy
loicmusy marked this pull request as draft July 6, 2023 14:13
@loicmusy
loicmusy marked this pull request as ready for review July 11, 2023 12:02
@loicmusy

Copy link
Copy Markdown
Author

Hello @lagru ,
I did not get feedback on this PR yet.
Is there anything I can work on to help it get integrated?

@jni

jni commented Oct 24, 2023

Copy link
Copy Markdown
Member

@Coilm apologies for the lack of response here — I see that your PR came just as we were all heading to the SciPy 2023 conference (Jul 10-16), which is why it seems to have fallen through the cracks.

There's a bit of low-hanging fruit here. I recommend looking at #3544 and the discussion therein for some inspiration, specifically:

  • use the parameter names "reference" and "moving" for the input images
  • use a scikit-image transform class such as AffineTransform to specify the class of transform, rather than a string

I unfortunately don't have time to do an in-depth review, but I hope that we can transform the code to be n-dimensional, rather than hardcoding 2D. It's possible that we can leave this to a later PR, as long as the API itself does not hardcode dimensionality. (e.g. no param_x/param_y type of parameter.)

@lagru

lagru commented Dec 18, 2023

Copy link
Copy Markdown
Member

Hey @Coilm, sorry for the lack of initial response on our part. What's the status on this and on Juan's suggestions? Do you still have time and intend to finish this? :)

@loicmusy

loicmusy commented Dec 20, 2023 •

Copy link
Copy Markdown
Author

Hey @lagru
I didn't have time to work on it (holiday and working on my PhD thesis) but it is definitely something I would like to work on.
Is there a prefered channel that you use to have more live discussion about implementing new requests, discord or slack maybe ? I might need some help on part of it (especially moving away from 2-D to N-D).

@lagru

lagru commented Dec 22, 2023 •

Copy link
Copy Markdown
Member

We have https://skimage.zulipchat.com which is very similar (and in some ways "better") than discord or slack. You GitHub account is enough if you don't want to create a new account. Though, an early draft PR is probably useful regardless, just to see the code in question that we are discussing. (temporarily mistook this PR for an issue 😅)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants