Example #1
0
 def __init__(self, image, zoom_out):
     self.image = image
     self.view_image = cv.CreateImage((image.width, image.height),
                                      image.depth, 3)
     self.mode = SET
     self.tile_params = []
     ZoomWindow.__init__(self, "PointWindow", 100, zoom_out)
Example #2
0
 def __init__(self, image, zoom_out):
     self.image = image
     self.view_image = cv.CreateImage( (image.width, image.height), image.depth, 3)
     self.click_pt = None
     self.update_label = False
     self.patch = None
     ZoomWindow.__init__(self,"Predicted",-1,zoom_out)
Example #3
0
 def __init__(self, image, mask, output_path, default_brush_size=5, zoom_out=1):
     self.image = image
     self.output_path = output_path
     self.visible_image = cv.CreateImage((image.width,image.height),image.depth,3)
     self.mask = mask
     self.erase = False
     self.brush_size = default_brush_size
     ZoomWindow.__init__(self, "MaskLabeler", 100, zoom_out=zoom_out)
 def __init__(self, image, zoom_out):
     self.image = image
     self.distance_layer = cv.CreateImage( (image.width, image.height), image.depth, 3)
     self.view_image = cv.CreateImage( (image.width, image.height), image.depth, 3)
     self.knn = None
     self.show_patch = False
     self.view_mode = NN
     self.log_scale = True
     self.gamma = 0.1
     self.distance_map = None
     self.shape_map = None
     self.size_map = None
     ZoomWindow.__init__(self,"Reference",-1,zoom_out)
Example #5
0
 def __init__(self,
              image,
              mask,
              output_path,
              default_brush_size=5,
              zoom_out=1):
     self.image = image
     self.output_path = output_path
     self.visible_image = cv.CreateImage((image.width, image.height),
                                         image.depth, 3)
     self.mask = mask
     self.erase = False
     self.brush_size = default_brush_size
     ZoomWindow.__init__(self, "MaskLabeler", 100, zoom_out=zoom_out)
Example #6
0
    def __init__(self, image, params):
        self.params = params
        gray_image_1d = cv.CreateImage((image.width,image.height),image.depth,1)
        cv.CvtColor(image,gray_image_1d,cv.CV_RGB2GRAY)
        self.gray_image = cv.CreateImage((image.width,image.height),image.depth,3)
        cv.CvtColor(gray_image_1d, self.gray_image, cv.CV_GRAY2RGB)
        self.label_image = cv.CreateImage((image.width,image.height),image.depth,3)
        self.label_mat = cv.CreateMat(image.height,image.width,cv.CV_8UC1)
        self.visible_image = cv.CreateImage((image.width,image.height),image.depth,3)

        self.brush_size = params.default_brush_size
        self.brush_label = 0
        
        self.clear()
        
        ZoomWindow.__init__(self, "Labeler", 100, params.default_zoom)
Example #7
0
 def __init__(self, image, zoom_out):
     self.image = image
     self.view_image = cv.CreateImage( (image.width, image.height), cv.IPL_DEPTH_32F, 1)
     self.mode = 0
     self.smooth_param = 3
     ZoomWindow.__init__(self,"GradientViewer", 100, zoom_out)
Example #8
0
 def __init__(self, image, zoom_out):
     self.image = image
     self.view_image = cv.CreateImage( (image.width, image.height), image.depth, 3)
     self.mode = SET
     self.tile_params = []
     ZoomWindow.__init__(self,"PointWindow", 100, zoom_out)
Example #9
0
 def __init__(self, image, zoom_out, id):
     self.image = image
     self.view_image = cv.CreateImage( (image.width, image.height), image.depth, 3)
     self.click_pt = None
     self.id = id
     ZoomWindow.__init__(self,"Window %d"%id,-1,zoom_out)
 def __init__(self, image, zoom_out):
     self.image = image
     self.view_image = cv.CreateImage( (image.width, image.height), image.depth, 3)
     self.click_pt = None
     self.update_nn = False
     ZoomWindow.__init__(self,"Compared",-1,zoom_out)
Example #11
0
 def __init__(self, image, zoom_out, feature_map, id):
     self.image = image
     self.feature_map = feature_map
     self.view_image = cv.CreateImage( (image.width, image.height), image.depth, 3)
     self.view_mode = PLAIN
     ZoomWindow.__init__(self,"Viewer %d"%id,-1,zoom_out)