diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py index e9ddb40..64dc014 100644 --- a/invesalius/data/slice_.py +++ b/invesalius/data/slice_.py @@ -55,9 +55,9 @@ class Slice(object): ps.Publisher().subscribe(self.UpdateWindowLevelBackground,\ 'Bright and contrast adjustment image') - - ps.Publisher().subscribe(self.UpdateColorTableBackground,\ - 'Change color table from background image') + + ps.Publisher().subscribe(self.UpdateColourTableBackground,\ + 'Change colour table from background image') def __set_current_mask_threshold_limits(self, pubsub_evt): thresh_min = pubsub_evt.data[0] @@ -404,30 +404,30 @@ class Slice(object): if not((window == window_level.GetWindow()) and\ (level == window_level.GetLevel())): - + window_level.SetWindow(window) window_level.SetLevel(level) window_level.SetOutputFormatToLuminance() window_level.Update() - + thresh_min, thresh_max = window_level.GetOutput().GetScalarRange() self.lut_bg.SetTableRange(thresh_min, thresh_max) self.img_colours_bg.SetInput(window_level.GetOutput()) - - def UpdateColorTableBackground(self, pubsub_evt): + + def UpdateColourTableBackground(self, pubsub_evt): values = pubsub_evt.data - + if (values[0]): self.lut_bg.SetNumberOfColors(values[0]) - + self.lut_bg.SetSaturationRange(values[1]) self.lut_bg.SetHueRange(values[2]) self.lut_bg.SetValueRange(values[3]) - + thresh_min, thresh_max = self.window_level.GetOutput().GetScalarRange() self.lut_bg.SetTableRange(thresh_min, thresh_max) - - + + def CreateMask(self, imagedata=None, name=None): future_mask = Mask() diff --git a/invesalius/gui/widgets/slice_menu.py b/invesalius/gui/widgets/slice_menu.py index 8453501..5a5cfa8 100644 --- a/invesalius/gui/widgets/slice_menu.py +++ b/invesalius/gui/widgets/slice_menu.py @@ -99,7 +99,7 @@ class SliceMenu(wx.Menu): elif(key in const.SLICE_COLOR_TABLE.keys()): values = const.SLICE_COLOR_TABLE[key] - ps.Publisher().sendMessage('Change color table from background image', values) + ps.Publisher().sendMessage('Change colour table from background image', values) ps.Publisher().sendMessage('Update slice viewer') elif(key in const.IMAGE_TILING.keys()): -- libgit2 0.21.2