docstr: 设置是否只保留推理结果中的最大联通块
  
  Parameters
  ----------
  do_filter : bool
      是否只保存推理结果中的最大联通块
docstr_tok: ["\u8bbe\u7f6e\u662f\u5426\u53ea\u4fdd\u7559\u63a8\u7406\u7ed3\u679c\u4e2d\u7684\u6700\u5927\u8054\u901a\u5757","Parameters","--","--","--","--","--","do_filter",":","bool","\u662f\u5426\u53ea\u4fdd\u5b58\u63a8\u7406\u7ed3\u679c\u4e2d\u7684\u6700\u5927\u8054\u901a\u5757"]
code: def filterLargestCC(self, do_filter: bool):
      """设置是否只保留推理结果中的最大联通块
  
      Parameters
      ----------
      do_filter : bool
          是否只保存推理结果中的最大联通块
      """
      if not isinstance(do_filter, bool):
          return
      self.lccFilter = do_filter
  
imports: import json
  import logging
  import os.path
  import time
  import cv2
  import numpy
  import paddle
  from skimage.measure import label
  import util
  from eiseg import logger
  from inference import clicker
  from inference.predictor import get_predictor
  from eiseg.models import EISegModel
  from util import LabelList
  from util.vis import draw_with_blend_and_clicks
label_desc: Use image node_id 2 for calling the InteractiveController obj's underlying member method code with example usage: obj.filterLargestCC(do_filter) without return types