File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #################################
2- #
3- # Imports from useful Python libraries
4- #
5- #################################
6-
71import matplotlib .pyplot as plt
82from matplotlib import patheffects
93import numpy as np
104
11- #################################
12- #
13- # Imports from CellProfiler
14- #
15- ##################################
16-
175import cellprofiler_core .module
186import cellprofiler_core .setting .text
197
4129
4230class HelloWorld (cellprofiler_core .module .ImageProcessing ):
4331 module_name = "HelloWorld"
44- category = "Info"
4532
4633 variable_revision_number = 1
4734
@@ -53,9 +40,6 @@ def create_settings(self):
5340 def settings (self ):
5441 return super ().settings () + [self .overlay_text ]
5542
56- def visible_settings (self ):
57- return super ().visible_settings () + [self .overlay_text ]
58-
5943 def run (self , workspace ):
6044 self .function = self .place_text_on_image
6145 super ().run (workspace )
@@ -88,4 +72,3 @@ def place_text_on_image(self,
8872 annotated_img = np .asarray (fig .canvas .renderer .buffer_rgba ())
8973 plt .close (fig )
9074 return annotated_img
91-
You can’t perform that action at this time.
0 commit comments