class_docstr: Generate contour for each instance in a 2D array. Use `GenerateSuccinctContour` to only include
  the pixels to which lines need to be drawn
  
  Args:
      min_num_points: assumed that the created contour does not form a contour if it does not contain more points
          than the specified value. Defaults to 3.
      contour_level: an optional value for `skimage.measure.find_contours` to find contours in the array.
          If not provided, the level is set to `(max(image) + min(image)) / 2`.
class_docstr_tok: ["Generate","contour","for","each","instance","in","a","2D","array",".","Use","`","GenerateSuccinctContour","`","to","only","include","the","pixels","to","which","lines","need","to","be","drawn","Args",":","min_num_points",":","assumed","that","the","created","contour","does","not","form","a","contour","if","it","does","not","contain","more","points","than","the","specified","value",".","Defaults","to","3.","contour_level",":","an","optional","value","for","`","skimage.measure.find_contours","`","to","find","contours","in","the","array",".","If","not","provided",",","the","level","is","set","to","`","(","max","(","image",")","+","min","(","image",")",")","\/","2","`","."]
code: def __init__(
      self, min_num_points: int = 3, contour_level: float | None = None
  ) -> None:
      self.contour_level = contour_level
      self.min_num_points = min_num_points
  
imports: from __future__ import annotations
  import warnings
  from typing import Callable, Sequence
  import numpy
  import torch
  from monai.config.type_definitions import DtypeLike, NdarrayOrTensor
  from monai.transforms import Activations, AsDiscrete, BoundingRect, FillHoles, GaussianSmooth, RemoveSmallObjects, SobelGradients
  from monai.transforms.transform import Transform
  from monai.transforms.utils_pytorch_numpy_unification import max, maximum, min, sum, unique
  from monai.utils import TransformBackends, convert_to_numpy, optional_import
  from monai.utils.misc import ensure_tuple_rep
  from monai.utils.type_conversion import convert_to_dst_type, convert_to_tensor
label_desc: Use image node_id 1 to create a new GenerateInstanceContour object from inherited base classes: Transform with example: obj = GenerateInstanceContour(min_num_points, contour_level)