niftiLoader

Package for loading a directory containing MRI data in NIfTI format. The directory to be loaded must contain as many subdirectories as there are classes of MRI data. Each subdirectory name will be used as the class label for the corresponding .nii files in that subdirectory. (This is the same strategy as the one used by WEKA's TextDirectoryLoader.) Currently, the package only reads volume information for the first time slot from each .nii file. The readDoubleVol(short ttt) method from the Nifti1Dataset class (http://niftilib.sourceforge.net/java_api_html/Nifti1Dataset.html) is used to read the data for each volume into a sparse WEKA instance (with ttt=0). For an LxMxN volume (the dimensions must be the same for each .nii file in the directory!), the order of values in the generated instance is [(z_1, y_1, x_1), ..., (z_1, y_1, x_L), (z_1, y_2, x_1), ..., (z_1, y_M, x_L), (z_2, y_1, x_1), ..., (z_N, y_M, x_L)]. If the volume is an image, then only x and y coordinates are used.

License

License

Categories

Categories

Weka Business Logic Libraries Machine Learning
GroupId

GroupId

nz.ac.waikato.cms.weka
ArtifactId

ArtifactId

nifiLoader
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

niftiLoader
Package for loading a directory containing MRI data in NIfTI format. The directory to be loaded must contain as many subdirectories as there are classes of MRI data. Each subdirectory name will be used as the class label for the corresponding .nii files in that subdirectory. (This is the same strategy as the one used by WEKA's TextDirectoryLoader.) Currently, the package only reads volume information for the first time slot from each .nii file. The readDoubleVol(short ttt) method from the Nifti1Dataset class (http://niftilib.sourceforge.net/java_api_html/Nifti1Dataset.html) is used to read the data for each volume into a sparse WEKA instance (with ttt=0). For an LxMxN volume (the dimensions must be the same for each .nii file in the directory!), the order of values in the generated instance is [(z_1, y_1, x_1), ..., (z_1, y_1, x_L), (z_1, y_2, x_1), ..., (z_1, y_M, x_L), (z_2, y_1, x_1), ..., (z_N, y_M, x_L)]. If the volume is an image, then only x and y coordinates are used.
Project URL

Project URL

http://weka.sourceforge.net/doc.packages/niftiLoader
Project Organization

Project Organization

University of Waikato, Hamilton, NZ
Source Code Management

Source Code Management

https://svn.cms.waikato.ac.nz/svn/weka/tags/nifiLoader-1.0.1

Download nifiLoader

How to add to project

<!-- https://jarcasting.com/artifacts/nz.ac.waikato.cms.weka/nifiLoader/ -->
<dependency>
    <groupId>nz.ac.waikato.cms.weka</groupId>
    <artifactId>nifiLoader</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/nz.ac.waikato.cms.weka/nifiLoader/
implementation 'nz.ac.waikato.cms.weka:nifiLoader:1.0.1'
// https://jarcasting.com/artifacts/nz.ac.waikato.cms.weka/nifiLoader/
implementation ("nz.ac.waikato.cms.weka:nifiLoader:1.0.1")
'nz.ac.waikato.cms.weka:nifiLoader:jar:1.0.1'
<dependency org="nz.ac.waikato.cms.weka" name="nifiLoader" rev="1.0.1">
  <artifact name="nifiLoader" type="jar" />
</dependency>
@Grapes(
@Grab(group='nz.ac.waikato.cms.weka', module='nifiLoader', version='1.0.1')
)
libraryDependencies += "nz.ac.waikato.cms.weka" % "nifiLoader" % "1.0.1"
[nz.ac.waikato.cms.weka/nifiLoader "1.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
nz.ac.waikato.cms.weka : weka-dev jar [3.7.8,)

test (2)

Group / Artifact Type Version
nz.ac.waikato.cms.weka : weka-dev test-jar [3.7.8,)
junit : junit jar 3.8.2

Project Modules

There are no modules declared in this project.

Versions

Version
1.0.1
1.0.0