ROI Coordinates File Format

This page details the file format when ROI coordinates are written to disk by the ROI Toolkit of Jim.

A coordinates file is a plain text file, consisting of:

  • A header line which looks like one of the following:
      # R A S
    
      # L P S
    
      # x y z
    

depending on the coordinate system chosen.

  • An entry for each ROI, with the following format.
  • A single line to introduce each ROI. If the ROI is annotated:
    #Annotation
    or if the ROI is not annotated:
    #

This is followed by the pixel coordinates related to the ROI, with each coordinate on its own line of text. The coordinates written depend on the type of ROI: - Marker and Text ROIs. The position of the Marker/Text is written. - Line ROIs. The positions of the two ends of the line are written. - Curved Line and Open Spline ROIs. The positions of points along the line are written. - All other types of ROI. For each pixel where the centre of the pixel is within the ROI, the coordinates of the pixel centre are written.