Пример #1
0
def roi1():
    roi1_properties = {'x': [1, 1, 3, 3], 'y': [1, 3, 3, 1]}
    fig = plt.figure()
    roi1 = RoiPoly(color='r', fig=fig, show_fig=False)
    roi1.x = roi1_properties['x']
    roi1.y = roi1_properties['y']
    return roi1
Пример #2
0
def roi1():
    roi1_properties = {
        'x': [1, 1, 3, 3],
        'y': [1, 3, 3, 1]
    }
    fig = plt.figure()
    roi1 = RoiPoly(color='r', fig=fig, show_fig=False)
    roi1.x = roi1_properties['x']
    roi1.y = roi1_properties['y']
    return roi1
Пример #3
0
 def setUp(self):
     roi1_properties = {'x': [1, 1, 3, 3], 'y': [1, 3, 3, 1]}
     fig = plt.figure()
     roi1 = RoiPoly(color='r', fig=fig, show_fig=False)
     roi1.x = roi1_properties['x']
     roi1.y = roi1_properties['y']
     self.roi1 = roi1
     self.img1 = np.ones((5, 5)) * range(5)
     self.roi1_expected_mask = np.array(
         [[False, False, False, False, False],
          [False, False, False, False, False],
          [False, True, True, True, False],
          [False, True, True, True, False],
          [False, False, False, False, False]])