def _replace_small_bb(self):
        """replaces boxes that are smaller than some area with a minimum sized box centered
        on the old one. if the box is out of bounds it is clipped to the image boundries
        """
        if self.replace_small:
            if len(self.boxes_xyxy):
                self.boxes_xyxy = replace_small_boxes(self.boxes_xyxy, min_area=self.min_area_replace, 
                                new_size=self.new_size)
                self.boxes_xyxy = clip_boxes(self.boxes_xyxy, 0, 0, self.size[0], self.size[1])
replaces boxes that are smaller than some area with a minimum sized box centered
        on the old one. if the box is out of bounds it is clipped to the image boundries
        
src/marqo/s2_inference/processing/image.py