Skip to content
Snippets Groups Projects
Commit 7de1ad1d authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Removed display/clipping range minimum distance.

parent 3b733c86
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,5 @@ class MaskOpts(volumeopts.Nifti1Opts): ...@@ -80,6 +80,5 @@ class MaskOpts(volumeopts.Nifti1Opts):
self.threshold.xmax = self.dataMax + dMinDistance self.threshold.xmax = self.dataMax + dMinDistance
self.threshold.xlo = self.dataMin + dMinDistance self.threshold.xlo = self.dataMin + dMinDistance
self.threshold.xhi = self.dataMax + dMinDistance self.threshold.xhi = self.dataMax + dMinDistance
self.setConstraint('threshold', 'minDistance', dMinDistance)
volumeopts.Nifti1Opts.__init__(self, overlay, *args, **kwargs) volumeopts.Nifti1Opts.__init__(self, overlay, *args, **kwargs)
...@@ -717,14 +717,11 @@ class VolumeOpts(Nifti1Opts): ...@@ -717,14 +717,11 @@ class VolumeOpts(Nifti1Opts):
self.displayRange.xmin = self.dataMin self.displayRange.xmin = self.dataMin
self.displayRange.xmax = self.dataMax self.displayRange.xmax = self.dataMax
# Keep range values 0.01% apart.
dMinDistance = abs(self.dataMax - self.dataMin) / 10000.0 dMinDistance = abs(self.dataMax - self.dataMin) / 10000.0
self.setConstraint('displayRange', 'minDistance', dMinDistance)
if self.clipImage is None: if self.clipImage is None:
self.clippingRange.xmin = self.dataMin - dMinDistance self.clippingRange.xmin = self.dataMin - dMinDistance
self.clippingRange.xmax = self.dataMax + dMinDistance self.clippingRange.xmax = self.dataMax + dMinDistance
self.setConstraint('clippingRange', 'minDistance', dMinDistance)
def __overlayListChanged(self, *a): def __overlayListChanged(self, *a):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment