Class FileTrackVis


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

      • 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
      • trans

        private TransMatrix trans
        Transformation matrix for image
    • Constructor Detail

      • FileTrackVis

        public FileTrackVis​(java.lang.String fileName,
                            java.lang.String fileDir)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • readHeader

        public boolean readHeader()
                           throws java.io.IOException
        Reads TrackVis header, first 1000 bytes of TRK file.
        Throws:
        java.io.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.