Eidolon
Classes | Functions | Variables
eidolon.plugins.IRTKPlugin Namespace Reference

Classes

class  BasicIRTKPlugin
 
class  IRTKPluginMixin
 
class  MotionTrackServerDialog
 
class  MotionTrackServerWidget
 

Functions

def isTrackDir (path)
 
def isPositiveDefinite (mat)
 
def detagImage (obj, coresize, revert=False)
 
def applyMotionTrackRange (process, exefile, cwd, isInvert, filelists, extraArgs, environ)
 
def applyMotionTrackTask (exefile, cwd, isInvert, filelists, extraArgs=[], numProcs=0, task=None)
 

Variables

 InterpTypes
 
 ServerMsgs
 
 TrackTypes = enum('motiontrackmultimage','gpunreg','mirtkregister','mirtkregister1file')
 
 JobMetaValues
 
 EnvironVars = enum('LD_LIBRARY_PATH','DYLD_LIBRARY_PATH')
 
string trackconfname = 'track.ini'
 

Function Documentation

◆ applyMotionTrackRange()

def eidolon.plugins.IRTKPlugin.applyMotionTrackRange (   process,
  exefile,
  cwd,
  isInvert,
  filelists,
  extraArgs,
  environ 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ applyMotionTrackTask()

def eidolon.plugins.IRTKPlugin.applyMotionTrackTask (   exefile,
  cwd,
  isInvert,
  filelists,
  extraArgs = [],
  numProcs = 0,
  task = None 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ detagImage()

def eidolon.plugins.IRTKPlugin.detagImage (   obj,
  coresize,
  revert = False 
)
Here is the caller graph for this function:

◆ isPositiveDefinite()

def eidolon.plugins.IRTKPlugin.isPositiveDefinite (   mat)
Returns True if `mat' is a positive definite matrix (ie. all positive eigenvalues).

◆ isTrackDir()

def eidolon.plugins.IRTKPlugin.isTrackDir (   path)
Returns True if `path' is the path to a directory containing tracking information. This is done asynchronously with
a daemon thread. The function will block for up to 1 second and return False if an answer isn't calculated by then.
This ensures the UI is not held up by a slow file system.

Variable Documentation

◆ EnvironVars

EnvironVars = enum('LD_LIBRARY_PATH','DYLD_LIBRARY_PATH')

◆ InterpTypes

InterpTypes
Initial value:
1 = enum(
2  ('Linear','-linear'),
3  ('Bezier Spline','-bspline'),
4  ('Cubic Spline','-cspline'),
5  ('Truncated Sinc','-sinc'),
6  ('Shape Based','-sbased'),
7  ('Gaussian','-gaussian sigma')
8 )

◆ JobMetaValues

JobMetaValues
Initial value:
1 = enum(
2  'pid','rootdir','numtrackfiles','timesteps','tracktype','trackobj','maskobj','trackfile','maskfile',
3  'paramfile','adaptive','resultcode','startdate','enddate','transform','pixdim',
4  doc='Names of fields in job/track ini files storing metadata about the associated operation/job'
5 )

◆ ServerMsgs

ServerMsgs
Initial value:
1 = enum(
2  ('OK',(),'OK Server Response; no values'),
3  ('Except',(Exception,str),'Exception from Server; exception value, stack trace string info'),
4  ('Stat',(int,),'Status Request for Job; Job ID value'),
5  ('RStat',(int,int,int,str),'Status Response; process exit code (None if still running), # of files so far, total # of files, job dir'),
6  ('StartMotionTrack',(bool,str,str,str,str,str,float,dict,str),'Sending motion track job to server;true if data is file path, file blob otherwise, track file,mask file, param filename, directory name, adaptive, config values dict, root directory'),
7  ('RStart',(int,),'Job Send Response; Job ID value'),
8  ('GetResult',(int,bool),'Get job results; job ID value, true if absolute file paths are requested'),
9  ('RGetResult',(list,),'Returned job results; list of file paths or file data blobs'),
10  ('Check',(),'Request the username of whoever started the server; empty'),
11  ('RCheck',(str,),'Username response; username string'),
12  ('Kill',(int,),'Job kill command; Job ID value'),
13  ('RKill',(bool,),'Job kill response; True if successful, False if job was not running'),
14  valtype=(tuple,str),
15  doc='Server request and response messages, containing the types of the arguments and a description'
16 )

◆ trackconfname

string trackconfname = 'track.ini'

◆ TrackTypes

TrackTypes = enum('motiontrackmultimage','gpunreg','mirtkregister','mirtkregister1file')