def METHOD_NAME(self, height, width, detections: dict):
    self.image_height = height
    self.image_width = width
    self.pixel_scores = self._set_pixel_scores(detections['model/segm_logits/add'])
    self.link_scores = self._set_link_scores(detections['model/link_logits_/add'])
    self.pixel_mask = self.pixel_scores >= self.pixel_conf_threshold
    self.link_mask = self.link_scores >= self.link_conf_threshold
    self.points = list(zip(*np.where(self.pixel_mask)))
    self.h, self.w = np.shape(self.pixel_mask)
    self.group_mask = dict.fromkeys(self.points, -1)
    self.bboxes = None
    self.root_map = None
    self.mask = None
    self._decode()