edu.washington.biostr.sig.brainj3d.volume
Class AnalyzeSPMDecoder

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.volume.AnalyzeSPMDecoder
All Implemented Interfaces:
Decoder, Serializable

public class AnalyzeSPMDecoder
extends Object
implements Serializable, Decoder

Title: Brain Visualizer

Description: Displays and allows manipulation of 3d brain models

Copyright: Copyright (c) 2002

Company: Structural Informatics Group

This loads a file in Analyze 7.5 format with SPM's extensions. SPM defines the following fields in specific ways: image_dimension.funused1 is a scaling factor to multiply all of the voxels by. This is useful primarily for byte format. It also uses the Originator field for the central voxel. This 10 char field is instead read as 3 shorts. It also adds a third file, which represents a transform

Version:
1.0
Author:
Eider Moore, Andrew Poliakov
See Also:
Serialized Form

Constructor Summary
AnalyzeSPMDecoder()
          Create an AnalyzeSPMLoader.
 
Method Summary
 Data decode(String directory, URL[] urls, FileGroup source)
          The urls are expected in alphabetical order of extension (.hdr, .img, .mat)
 int getNumberOfFiles()
           
 Class<? extends Data> getResultType()
          Return the class of the Data that will be returned by decode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzeSPMDecoder

public AnalyzeSPMDecoder()
Create an AnalyzeSPMLoader.

Method Detail

decode

public Data decode(String directory,
                   URL[] urls,
                   FileGroup source)
            throws BadDataFile,
                   FileNotFoundException,
                   IOException
The urls are expected in alphabetical order of extension (.hdr, .img, .mat)

Specified by:
decode in interface Decoder
Parameters:
directory -
urls -
Returns:
Throws:
BadDataFile
MissingDataFile
FileNotFoundException
IOException

getNumberOfFiles

public int getNumberOfFiles()
Specified by:
getNumberOfFiles in interface Decoder

getResultType

public Class<? extends Data> getResultType()
Description copied from interface: Decoder
Return the class of the Data that will be returned by decode.

Specified by:
getResultType in interface Decoder
Returns:


Copyright © 2006 University of Washington. All Rights Reserved.