ImageTransformer implements ImageTransformer
More...
◆ ImageTransformer() [1/2]
Synapse.ML.Opencv.ImageTransformer.ImageTransformer |
( |
| ) |
|
|
inline |
◆ ImageTransformer() [2/2]
Synapse.ML.Opencv.ImageTransformer.ImageTransformer |
( |
string |
uid | ) |
|
|
inline |
Creates a ImageTransformer with a UID that is used to give the ImageTransformer a unique ID.
- Parameters
-
uid | An immutable unique ID for the object and its derivatives. |
◆ GetColorScaleFactor()
double Synapse.ML.Opencv.ImageTransformer.GetColorScaleFactor |
( |
| ) |
|
Gets colorScaleFactor value
- Returns
- colorScaleFactor: The scale factor for color values. Used for normalization. The color values will be multiplied with the scale factor.
◆ GetInputCol()
string Synapse.ML.Opencv.ImageTransformer.GetInputCol |
( |
| ) |
|
Gets inputCol value
- Returns
- inputCol: The name of the input column
◆ GetNormalizeMean()
double [] Synapse.ML.Opencv.ImageTransformer.GetNormalizeMean |
( |
| ) |
|
Gets normalizeMean value
- Returns
- normalizeMean: The mean value to use for normalization for each channel. The length of the array must match the number of channels of the input image.
◆ GetNormalizeStd()
double [] Synapse.ML.Opencv.ImageTransformer.GetNormalizeStd |
( |
| ) |
|
Gets normalizeStd value
- Returns
- normalizeStd: The standard deviation to use for normalization for each channel. The length of the array must match the number of channels of the input image.
◆ GetOutputCol()
string Synapse.ML.Opencv.ImageTransformer.GetOutputCol |
( |
| ) |
|
Gets outputCol value
- Returns
- outputCol: The name of the output column
◆ GetStages()
Dictionary<string, object> [] Synapse.ML.Opencv.ImageTransformer.GetStages |
( |
| ) |
|
|
inline |
Gets stages value
- Returns
- stages: Image transformation stages
◆ GetTensorChannelOrder()
string Synapse.ML.Opencv.ImageTransformer.GetTensorChannelOrder |
( |
| ) |
|
Gets tensorChannelOrder value
- Returns
- tensorChannelOrder: The color channel order of the output channels. Valid values are RGB and GBR. Default: RGB.
◆ GetTensorElementType()
DataType Synapse.ML.Opencv.ImageTransformer.GetTensorElementType |
( |
| ) |
|
|
inline |
Gets tensorElementType value
- Returns
- tensorElementType: The element data type for the output tensor. Only used when toTensor is set to true. Valid values are DoubleType or FloatType. Default value: FloatType.
◆ GetToTensor()
bool Synapse.ML.Opencv.ImageTransformer.GetToTensor |
( |
| ) |
|
Gets toTensor value
- Returns
- toTensor: Convert output image to tensor in the shape of (C * H * W)
◆ Load()
◆ Read()
Get the corresponding JavaMLReader instance.
- Returns
- an JavaMLReader<ImageTransformer> instance for this ML instance.
◆ Save()
void Synapse.ML.Opencv.ImageTransformer.Save |
( |
string |
path | ) |
|
Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala.
- Parameters
-
path | The path to save the object to |
◆ SetColorScaleFactor()
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetColorScaleFactor |
( |
double |
value | ) |
|
Sets value for colorScaleFactor
- Parameters
-
value | The scale factor for color values. Used for normalization. The color values will be multiplied with the scale factor. |
- Returns
- New ImageTransformer object
◆ SetInputCol()
Sets value for inputCol
- Parameters
-
value | The name of the input column |
- Returns
- New ImageTransformer object
◆ SetNormalizeMean()
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetNormalizeMean |
( |
double [] |
value | ) |
|
Sets value for normalizeMean
- Parameters
-
value | The mean value to use for normalization for each channel. The length of the array must match the number of channels of the input image. |
- Returns
- New ImageTransformer object
◆ SetNormalizeStd()
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetNormalizeStd |
( |
double [] |
value | ) |
|
Sets value for normalizeStd
- Parameters
-
value | The standard deviation to use for normalization for each channel. The length of the array must match the number of channels of the input image. |
- Returns
- New ImageTransformer object
◆ SetOutputCol()
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetOutputCol |
( |
string |
value | ) |
|
Sets value for outputCol
- Parameters
-
value | The name of the output column |
- Returns
- New ImageTransformer object
◆ SetStages()
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetStages |
( |
Dictionary< string, object > [] |
value | ) |
|
◆ SetTensorChannelOrder()
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetTensorChannelOrder |
( |
string |
value | ) |
|
Sets value for tensorChannelOrder
- Parameters
-
value | The color channel order of the output channels. Valid values are RGB and GBR. Default: RGB. |
- Returns
- New ImageTransformer object
◆ SetTensorElementType()
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetTensorElementType |
( |
DataType |
value | ) |
|
Sets value for tensorElementType
- Parameters
-
value | The element data type for the output tensor. Only used when toTensor is set to true. Valid values are DoubleType or FloatType. Default value: FloatType. |
- Returns
- New ImageTransformer object
◆ SetToTensor()
Sets value for toTensor
- Parameters
-
value | Convert output image to tensor in the shape of (C * H * W) |
- Returns
- New ImageTransformer object
The documentation for this class was generated from the following file:
- synapse/ml/opencv/ImageTransformer.cs