Git Product home page Git Product logo

Comments (6)

simonster avatar simonster commented on June 17, 2024

Would you mind sending the hdr to [email protected]? The tests pass for me on 0.4 and I can read my volumes, so I don't really have any idea where to start.

I fixed the warnings that are actually coming from this package in cc8728e. The others are coming from StrPack and would need to be fixed there.

from nifti.jl.

PetrKryslUCSD avatar PetrKryslUCSD commented on June 17, 2024

Hi Simon,

Here is the header file: https://www.dropbox.com/s/lzez4rt26kllnej/Tutr012BigVolLftEar45um_periotic_bw_sub2-nii.hdr?dl=0

Thanks for your help.

Petr

from nifti.jl.

simonster avatar simonster commented on June 17, 2024

I created a test.img file full of zeros to accompany that hdr and I get the correct size with 0.4.0-dev+3690. What is your versioninfo()?

from nifti.jl.

PetrKryslUCSD avatar PetrKryslUCSD commented on June 17, 2024

Hi Simon,

I have updated my installation of 0.4, unfortunately with a negative result.
_
_ _ ()_ | A fresh approach to technical computing
() | () () | Documentation: http://docs.julialang.org
_ _ | | __ _ | Type "help()" for help.
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 0.4.0-dev+3723 (2015-03-08 05:30 UTC)
/ |_'|||__'| | Commit b80f7db* (0 days old master)
|__/ | x86_64-w64-mingw32

julia> workspace(); cd("C:/Users/P/Documents/GitHub/VoxelBox.jl"); include("src/
VoxelBox.jl"); cd("examples");

julia> using NIfTI

WARNING: deprecated syntax "(Type=>Integer)[]" at C:\Users\P.julia\v0.4\StrPack
\src\StrPack.jl:25.
Use "Dict{Type,Integer}()" instead.

WARNING: deprecated syntax "{a=>b, ...}" at C:\Users\P.julia\v0.4\StrPack\src\S
trPack.jl:110.
Use "Dict{Any,Any}(a=>b, ...)" instead.

WARNING: deprecated syntax "[a=>b, ...]" at C:\Users\P.julia\v0.4\StrPack\src\S
trPack.jl:300.
Use "Dict(a=>b, ...)" instead.

WARNING: deprecated syntax "[a=>b, ...]" at C:\Users\P.julia\v0.4\StrPack\src\S
trPack.jl:405.
Use "Dict(a=>b, ...)" instead.
WARNING: Dict{K,V}(ks::AbstractArray{K},vs::AbstractArray{V}) is deprecated, use
Dict{K,V}(zip(ks,vs)) instead.
in depwarn at deprecated.jl:40
in call at deprecated.jl:29
in include at boot.jl:249
in include_from_node1 at loading.jl:128
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:51
Warning: New definition
getindex(NIfTI.NIVolume{T,N},Any...) at C:\Users\P.julia\v0.4\NIfTI\src\NIf
TI.jl:500
is ambiguous with:
getindex(AbstractArray{T,N},AbstractArray{T,N}) at abstractarray.jl:478.
To fix, define
getindex(NIfTI.NIVolume{T,N},AbstractArray{T,N})
before the new definition.

julia> ni=niread("Tutr012BigVolLftEar45um_periotic_bw_sub2-nii.hdr");

julia> size(ni.raw)
(409,282,0,0)

julia>

The entire data set has been uploaded to

https://www.dropbox.com/s/ela1dnd71ynxdcn/examples.zip?dl=0

Best regards,

Petr

from nifti.jl.

simonster avatar simonster commented on June 17, 2024

I tried on Linux, and this worked fine. I also tried on Windows, and was able to reproduce your output, but while the size is printed wrong, the values are correct, i.e., size(ni, 3) is 202 and size(ni, 4) is 1. This is a known issue caused by a bug in LLVM (JuliaLang/julia#7434) and not something that can be fixed in this package.

from nifti.jl.

PetrKryslUCSD avatar PetrKryslUCSD commented on June 17, 2024

Curious! Thank you very much for your help.

Petr

from nifti.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.