-
Notifications
You must be signed in to change notification settings - Fork 68
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
Multichannel Images #34
Comments
hi @jn31 can you please post your code here ? i am trying to get imreg_dft working for a similar problem too (4 channels, 3d stack of images) but i get an error - Images must have the same shape. |
Hello! I have had multiple 4 channel images (R,G,B,IR). For the imreg_dfr similarity function you have to choose one of the color channels to run on. So i just used the function:
Where
Where N is number of channels, y numbers of rows and x number of collums. Out of the similarity function you get a
I dont know your code, but the shape issue could come from not taking just one channel for either template or subject image or one image has a 3d shape and not a 2d shape. The result vary based on the choice of the color channel (it must be the same channel on both images) so test which gives best results in your case. So one more time, the fist two arguments of the similarity function are 2d numpy arrays presenting the same color channel in both images. Nice grettings! |
The success correlates with the contrast in the power spectrum. See _get_success. And yes, you have correctly found out that you can use the |
Hello,
I am trying to use your library for registration of a series of 13 images. They have four channels (RGB + IR). When i use the similarity func. on all four channels they all have slightly different translation and rotation results. Could it be possible to just calculate the transformation data on all 4 channels without actually transforming them (would save time) and then choose a transformation of a single channel (the one with the best success rate) and apply it to all 4 ? The 4 channels would then align when they are written to a single image.
Could you also please define the success rate ? How is it calculated ?
Nice Greetings, Jure
The text was updated successfully, but these errors were encountered: