-
Notifications
You must be signed in to change notification settings - Fork 66
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
Registration error for certain image sizes #38
Comments
Seems like this has to do with BiDiPhaseOffsets. Any ideas @carsen-stringer ? |
ah yes sorry this was only working for frames with even pixels! try now |
Hi @carsen-stringer |
Are they giving different bidiphase offsets depending on the number of pixels? Or is the bidiphase offset the same for both? |
Hi @carsen-stringer,
|
that's strange, now it should avoid any pixel shifts if bidiphase=0. let me know if it works. |
Hi @carsen-stringer ,
My settings in master_file for registration are: The dataset I just tested that failed is 767x767 pixels, x 881 frames, 16-bit TIF. running rigid registration
|
What are your ops.Ly and ops.Lx? Are they 767? |
@carsen-stringer |
Can you host this tiff on dropbox or google drive and share it with me (carsen.stringer@gmail.com)? Sorry I don't know where the script is failing |
the error could not be replicated |
Hi,
I'm getting errors during registration for certain values of image size. I therefore ran some tests, trying to register the same movie after cropping to different sizes.
My movie is 1024x1024 pixels x 881 frames. This works fine, and also registers if I crop to 767x768 or 512x512 pixels. However, 1023x1023 and 767x767 cause crashes as per below:
ERROR with 1023x1023 (x881 frames) and with 767x767 (x881 frames)::
running rigid registration
Error using .*
Array dimensions must match for binary
array op.
Error in BiDiPhaseOffsets (line 18)
cc = ifft(d1 .* d2,[],2);
Error in reg2P (line 44)
BiDiPhase = BiDiPhaseOffsets(IMG);
The text was updated successfully, but these errors were encountered: