Low level functions for IO on .mnc and .xfm files

Minc2.append_grid_transformMethod
append_grid_transform(h::TransformHandle, grid_file::String; inv::Bool=false)

Low level: Append grid transform to an open transformation handle

source
Minc2.append_linear_transformMethod
append_linear_transform(h::TransformHandle, lin::AffineTransform)

Low level: Append affine transform to an open transformation handle

source
Minc2.concat_xfmMethod
concat_xfm(h::TransformHandle, i::TransformHandle)

Low level: concatenate two transfomations

source
Minc2.get_grid_transformMethod
get_grid_transform(h::TransformHandle; n::Int64=0)

Low level: extract reference to a grid file from open handle

source
Minc2.get_linear_transformMethod
get_linear_transform(h::TransformHandle; n::Int64=0)::AffineTransform{Float64}

Low level: extract AffineTransform{Float64} from open handle

source
Minc2.get_linear_transform_paramMethod
get_linear_transform_param(h::TransformHandle;n::Int64=0,center::Union{Nothing,Vector{Float64}}=nothing)

Low level: extact transformation parameters from affine transform , returns named tuple with fields center, translations, scales, shears, rotations

source
Minc2.get_n_concatMethod
get_n_concat(h::TransformHandle)::Int64

Low level: Get number of transformations in open handle

source
Minc2.get_n_typeMethod
get_n_type(h::TransformHandle; n::Int64=0)::XFM

Low level: Get transform type for nth transform in open handle

source
Minc2.inverse_transform_pointMethod
inverse_transform_point(h::TransformHandle, xyz::Vector{Float64})::Vector{Float64}

Low level: Inverse transform point xyz using minc transform h

source
Minc2.load_transformsMethod
load_transforms(h::TransformHandle)::Vector{AnyTransform}

Low level: Load all transforms from open .XFM handle

source
Minc2.save_transformsMethod
save_transforms(fname::String, 
    xfm::Union{Vector{XFM}, XFM};
    grid_store::Type{T}=Float32 ) where {T, XFM<:AnyTransform}

Save transformations into .xfm file,

Arguments

  • fname: output file name
  • xfm: vector of transformations to save, or a single transformation
  • grid_store: type of storage for grid files (default: Float32)
source
Minc2.save_xfm_fileMethod
save_xfm_file(h::TransformHandle, path::String)

Low level: Save information into file from an open handle

source
Minc2.transform_pointMethod
transform_point(h::TransformHandle, xyz::Vector{Float64})::Vector{Float64}

Low level: Transform point xyz using minc transform h

source