-
Notifications
You must be signed in to change notification settings - Fork 170
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
ITK ERROR: CenteredTransformInitializer: Fixed Image has not been set #437
Comments
Unfortunately, the pointer representation of the image doesn't work on Windows (see #345). Looking at this it occurs to me, is the whole problem that the pointer address is incorrectly formatted on Windows? If "0000018600E3C1C0" was "0x000018600E3C1C0", would it work? |
I see this has already been considered ANTsPy/ants/lib/LOCAL_antsImageWin.cxx Lines 52 to 58 in ac6c264
EDIT: this looks like it should work, because %p should format the pointer with the correct number of leading zeros. |
@amirreza1998 can you try installing a wheel from here? https://github.com/ANTsX/ANTsPy/actions/runs/4478997465 |
Actually I made a mistake, hold on |
OK fixed, this will hopefully read the pointer on Windows https://github.com/ANTsX/ANTsPy/actions/runs/4481220355 |
Can’t we just run a test? automatically on each platform?
On Tue, Mar 21, 2023 at 1:37 PM Philip Cook ***@***.***> wrote:
OK fixed, this will hopefully read the pointer on Windows
https://github.com/ANTsX/ANTsPy/actions/runs/4481220355
—
Reply to this email directly, view it on GitHub
<#437 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACPE7VDYNDQ66JDWLDELJLW5HRMNANCNFSM6AAAAAAVX4EGBY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
brian
|
Yes, I'm trying to run I'll make the tests part of the automated builds going forward. |
@stnava I think I'm making progress on my fork - readimage looks fixed, now working on writeimage. Will update later |
I think #442 has done it - tests run on all platforms |
hi I actually created python 3.7 venv and tried this version: thanks a lot |
I try this version [antspyx-0.3.8-cp39-win_amd64] and everything is smoothly and alright |
Thanks for the update! |
i want to try to create template by
|
This appears to be unrelated to the original posting. Please open a separate issue. |
I think it's related. still have a problem with the pointer because I inspected the source code of create a template and it has registration on it but the issue of saving the warp file of transition has been solved |
Are you able to run the code that you originally posted? |
this is the result of original code above:
it's working ok but still, give exceptions at the beginning
|
This is the result when you run the original code? Ie
|
yes |
Okay, heavily simplify the code to a single |
for more information the error that happend in create template is :
|
Again, I think there's a misunderstanding because you keep referring to "template building" but there was no template building in your original post. Rather, you just iterated a bunch of Tell me, does the following work:
|
this is the result and it doesn't work :
|
May need to install latest version - make sure other versions are purged ….
On Sun, Mar 26, 2023 at 6:03 PM amirreza ***@***.***> wrote:
this is result and it don't work :
itk::ImageFileWriterException (000000F10CBEBBA0)
Location: "unknown"
File: D:\a\ANTsPy\ANTsPy\itksource\Modules\IO\ImageBase\include\itkImageFileWriter.hxx
Line: 117
Description: Could not create IO object for writing file 0000022DF5626DC0
Tried to create one of the following:
BMPImageIO
BioRadImageIO
Bruker2dseqImageIO
GDCMImageIO
GE4ImageIO
GE5ImageIO
GiplImageIO
HDF5ImageIO
JPEGImageIO
JPEG2000ImageIO
LSMImageIO
MGHImageIO
MINCImageIO
MRCImageIO
MetaImageIO
NiftiImageIO
NrrdImageIO
PNGImageIO
StimulateImageIO
TIFFImageIO
VTKImageIO
You probably failed to set a file suffix, or
set the suffix to an unsupported type.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:\python_venv\medvispy\venv\lib\site-packages\ants\registration\interface.py", line 1390, in registration
raise RuntimeError(f"Registration failed with error code {reg_exit}")
RuntimeError: Registration failed with error code 1
—
Reply to this email directly, view it on GitHub
<#437 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACPE7QUFD2JUNT6RSVR4ODW6C4LLANCNFSM6AAAAAAVX4EGBY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
brian
|
Windows tests all look good here https://github.com/ANTsX/ANTsPy/actions/runs/4524955037 |
yes it solved thanks alot |
hi
i have problem with registration with ants. i install ants with pip in windows os but when I try this code below for registration I get error that is mentioned:
my code:
but the result is for each one of registration some thing like below:
and in no one of them save
fwdtransforms
andinvtransforms
I use same code ,library and python distribution in linux and every thing was alright but I need it in windows actually
The text was updated successfully, but these errors were encountered: