-
Notifications
You must be signed in to change notification settings - Fork 34
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
bugs #tokazama-imagemeta #21
Comments
Thanks for taking the time to look at all of this!
|
@Tokazama: Any update on this? The design of this looks pretty good and I tested reading which seemed to work fine. Writing however not. I get |
@Tokazama: I am trying to get the tests running but ran into several issues.
|
Sorry for the delayed response. I'll take a look at this over the course of today. |
I'm working on fixing the errors mentioned here and writing better unit testing. I'll likely have something by the end of the day for further review. I'm also going to write down some details related to design choice and small changes I'll probably start working on #16. None of these should be user facing so it's likely of little concern to most. |
Great. Isn't the branch already implementing #16? Or do you refer more to the standardized parameter naming within the ImageMetadata? |
It may be worth trying this all out again if your interested. You will need to explicitly add NIfTI to your File IO registry for now ( see the tests for how to do this). Im working on a couple more things to really stress test the new implementation and then it should be good to go. |
I currently do not have the time to review so go ahead with merging, once you are confident with the design. I would be very interested in learning how to generate a nifti file from scratch. You have one load/ save example but this does not help, if one has just an array at hand. |
First, the new NIfTI integration with JuliaImages looks awesome!
It looks to me like it's close to beeing finished, so here are the things that I saw when trying it:
I wasn't able to open my nifti files yet (not zipped), but I can open your sample files.
I found the following issues:
my NIfTI files have no units attached to them. When I open them following error results from multiplication with
nothing
ERROR: MethodError: no method matching * ::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}, ::Nothing)
I think the problem is that in traits.jl Line 23
get(NiftiUnits, hdr.xyzt_units & 0x07, 1)
does not default to 1 whennothing
is returned, only when the entry is missing.After removing the entry
(Int16(0), nothing)
from the dict that part seemed to work. Or does it make more sense to use theu""
for no units?read.jl Line 94:
"qformcode" => sformcode(hdr),
There appears to be a typo, I guess it should mean
qformcode(hdr)
Another thing I realized while adding the NIfTI package was that the following other packages are not specified in the REQUIRE file and need to be added manually:
StaticArrays
MappedArrays
GeometryTypes
Rotations
The next Error that occurs for my files is:
The text was updated successfully, but these errors were encountered: