. Shouldn't this be
NIVolume(header::NIfTI1Header, extensions::Vector{NIfTI1Extension}, raw::AbstractArray{T,N}) where {T<:Number,N} = let
NIVolume{T,N,typeof(raw)}(header, extensions, raw)
# Why is this not using T? That is the type of the `raw` array elements!?
#NIVolume{typeof(one(T)*1f0+1f0),N,typeof(raw)}(header, extensions, raw)
end
Why does the constructor not refer to the type of the element of
raw?The lines
NIfTI.jl/src/NIfTI.jl
Line 152 in 704f7c8
NIfTI.jl/src/NIfTI.jl
Line 153 in 704f7c8
create the volume of type
Float32instead ofT. Shouldn't this be?