SuperpixelTransformer

class SuperpixelTransformer.SuperpixelTransformer(cellSize=16.0, inputCol=None, modifier=130.0, outputCol=None)[source]

Bases: mmlspark.Utils.ComplexParamsMixin, pyspark.ml.util.JavaMLReadable, pyspark.ml.util.JavaMLWritable, pyspark.ml.wrapper.JavaTransformer

Parameters:
  • cellSize (double) – Number that controls the size of the superpixels (default: 16.0)
  • inputCol (str) – The name of the input column
  • modifier (double) – Controls the trade-off spatial and color distance (default: 130.0)
  • outputCol (str) – The name of the output column (default: [self.uid]_output)
getCellSize()[source]
Returns:Number that controls the size of the superpixels (default: 16.0)
Return type:double
getInputCol()[source]
Returns:The name of the input column
Return type:str
static getJavaPackage()[source]

Returns package name String.

getModifier()[source]
Returns:Controls the trade-off spatial and color distance (default: 130.0)
Return type:double
getOutputCol()[source]
Returns:The name of the output column (default: [self.uid]_output)
Return type:str
classmethod read()[source]

Returns an MLReader instance for this class.

setCellSize(value)[source]
Parameters:cellSize (double) – Number that controls the size of the superpixels (default: 16.0)
setInputCol(value)[source]
Parameters:inputCol (str) – The name of the input column
setModifier(value)[source]
Parameters:modifier (double) – Controls the trade-off spatial and color distance (default: 130.0)
setOutputCol(value)[source]
Parameters:outputCol (str) – The name of the output column (default: [self.uid]_output)
setParams(cellSize=16.0, inputCol=None, modifier=130.0, outputCol=None)[source]

Set the (keyword only) parameters

Parameters:
  • cellSize (double) – Number that controls the size of the superpixels (default: 16.0)
  • inputCol (str) – The name of the input column
  • modifier (double) – Controls the trade-off spatial and color distance (default: 130.0)
  • outputCol (str) – The name of the output column (default: [self.uid]_output)