-
Notifications
You must be signed in to change notification settings - Fork 164
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
The 2D registration results are dark #409
Comments
For your inverse warped image, you forgot to specify the |
Thanks for replying me, I'll give my example as bellow:
|
If I do
I see that the constrast is much compressed, and the image appears dark. Try replacing your image conversion with this
The imageio docs suggest this as the way to convert an RGB image to grayscale. |
You can try searching for a better affine solution with Beyond that, you're trying to align two different 2D projections of 3D information. The registration only has the 2D grayscale information and local gradients to go on. It may need help (eg, anatomical landmarks). |
I understood, thanks again for helping me!
I'll try the commind line version of ants.
…---Original---
From: "Philip ***@***.***>
Date: Thu, Nov 10, 2022 01:02 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [ANTsX/ANTsPy] The 2D registration results are dark (Issue #409)
You can try searching for a better affine solution with ants.affine_initializer. Unfortunately the Python version only supports rotations, the command line antsAI will also let you search translations.
Beyond that, you're trying to align two different 2D projections of 3D information. The registration only has the 2D grayscale information and local gradients to go on. It may need help (eg, anatomical landmarks).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi, it' me again, when I tried to use the 'ants.affine_initializer', the program seems stuck, it is too slow, I'm not sure is it still working, I've been waiting about 30mins, but it seems still running, is this normal? I used it like this:
|
Describe the bug
Hi, I was using ANTsPy to register 2D images, but I got 2 dark image as warped result and inverse warped result, I don't understand what's going on.
To Reproduce
My code to register the images is as follow:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
This is the warped image I get, the method is "Affine" and the interpolation is set to be "nearestNeighbor"
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: