~gcg/splithopkinsontools/trunk

« back to all changes in this revision

Viewing changes to trackROI.py

  • Committer: gcg
  • Date: 2018-03-16 16:21:26 UTC
  • Revision ID: gcg-20180316162126-uwdmokuwqfljive0
switched LineScanAnalysis to OpenCV

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        #print "shift start=%d, old optimum shift=%d, shift_stop=%d" % (shift_start, self.optshift, shift_stop)
81
81
        
82
82
        # restrict range of possible shifts
83
 
        shift_start = max(shift_start, self.optshift - 100) # bounded from the left by shift_start
84
 
        shift_stop = min(shift_stop, self.optshift + 100) # bounded on the right
 
83
        maxShift = 20
 
84
        shift_start = max(shift_start, self.optshift - maxShift) # bounded from the left by shift_start
 
85
        shift_stop = min(shift_stop, self.optshift + maxShift) # bounded on the right
85
86
        #print "RESTRICTED: shift start=%d, old optimum shift=%d, shift_stop=%d" % (shift_start, self.optshift, shift_stop)
86
87
    
87
88
        #print "shift range:", shift_start, shift_stop, shift_stop - shift_start