Class FileTrackVis

java.lang.Object
gov.nih.mipav.model.file.FileBase
gov.nih.mipav.model.file.FileTrackVis

public class FileTrackVis extends FileBase
Reads a .trk track file as a MIPAV mask image.
Author:
justinsenseney
  • Field Details

    • fileInfo

      private FileInfoTrackVis fileInfo
      Fileinfo for image
    • nScalars

      private short nScalars
      Number of scalars for each datapoint
    • nProperties

      private short nProperties
      Number of properties associated with each track
    • numTracks

      private int numTracks
      If 0 then # of tracks is unknown
    • image

      private ModelImage image
      Created image
    • trans

      private TransMatrix trans
      Transformation matrix for image
  • Constructor Details

  • Method Details

    • readHeader

      public boolean readHeader() throws IOException
      Reads TrackVis header, first 1000 bytes of TRK file.
      Throws:
      IOException - if there is an error reading the file
    • readImage

      public ModelImage readImage()
      Reads TrackVis series of tracks and creates masks from them, based on stored fileInfo.
    • getFileInfo

      public FileInfoTrackVis getFileInfo()
    • setFileInfo

      public void setFileInfo(FileInfoTrackVis fileInfo)