class_docstr: Transformer for common image processing stages.
docstr: Thresholds the image, please see OpenCV threshold function documentation for more information
  
  Args:
      threshold: (double) The threshold value
      max_val (double): The maximum value to use
      threshold_type (double): The type of threshold, can be binary, binary_inv, trunc, zero, zero_inv
docstr_tok: ["Thresholds","the","image",",","please","see","OpenCV","threshold","function","documentation","for","more","information","Args",":","threshold",":","(","double",")","The","threshold","value","max_val","(","double",")",":","The","maximum","value","to","use","threshold_type","(","double",")",":","The","type","of","threshold",",","can","be","binary",",","binary_inv",",","trunc",",","zero",",","zero_inv"]
code: def threshold(self, threshold, max_val, threshold_type):
      """
      Thresholds the image, please see OpenCV threshold function documentation for more information
  
      Args:
          threshold: (double) The threshold value
          max_val (double): The maximum value to use
          threshold_type (double): The type of threshold, can be binary, binary_inv, trunc, zero, zero_inv
  
      """
      self._java_obj.threshold(threshold, max_val, threshold_type)
      return self
  
imports: import sys
  from typing import List
  import pyspark
  from pyspark import SparkContext
  from pyspark.ml.common import inherit_doc
  from pyspark.sql.types import *
  from pyspark.sql.types import Row, _create_row
  import numpy
  from synapse.ml.opencv._ImageTransformer import _ImageTransformer
  from pyspark.ml.common import inherit_doc
label_desc: Use image node_id 6 for calling the ImageTransformer obj's underlying member method code with example usage: obj.threshold(threshold, max_val, threshold_type) and returns: self