Synapseml
1.0.3
|
ImageTransformer implements ImageTransformer More...
Public Member Functions | |
ImageTransformer () | |
Creates a ImageTransformer without any parameters. More... | |
ImageTransformer (string uid) | |
Creates a ImageTransformer with a UID that is used to give the ImageTransformer a unique ID. More... | |
ImageTransformer | SetAutoConvertToColor (bool value) |
Sets value for autoConvertToColor More... | |
ImageTransformer | SetColorScaleFactor (double value) |
Sets value for colorScaleFactor More... | |
ImageTransformer | SetIgnoreDecodingErrors (bool value) |
Sets value for ignoreDecodingErrors More... | |
ImageTransformer | SetInputCol (string value) |
Sets value for inputCol More... | |
ImageTransformer | SetNormalizeMean (double[] value) |
Sets value for normalizeMean More... | |
ImageTransformer | SetNormalizeStd (double[] value) |
Sets value for normalizeStd More... | |
ImageTransformer | SetOutputCol (string value) |
Sets value for outputCol More... | |
ImageTransformer | SetStages (Dictionary< string, object >[] value) |
Sets value for stages More... | |
ImageTransformer | SetTensorChannelOrder (string value) |
Sets value for tensorChannelOrder More... | |
ImageTransformer | SetTensorElementType (DataType value) |
Sets value for tensorElementType More... | |
ImageTransformer | SetToTensor (bool value) |
Sets value for toTensor More... | |
bool | GetAutoConvertToColor () |
Gets autoConvertToColor value More... | |
double | GetColorScaleFactor () |
Gets colorScaleFactor value More... | |
bool | GetIgnoreDecodingErrors () |
Gets ignoreDecodingErrors value More... | |
string | GetInputCol () |
Gets inputCol value More... | |
double[] | GetNormalizeMean () |
Gets normalizeMean value More... | |
double[] | GetNormalizeStd () |
Gets normalizeStd value More... | |
string | GetOutputCol () |
Gets outputCol value More... | |
Dictionary< string, object >[] | GetStages () |
Gets stages value More... | |
string | GetTensorChannelOrder () |
Gets tensorChannelOrder value More... | |
DataType | GetTensorElementType () |
Gets tensorElementType value More... | |
bool | GetToTensor () |
Gets toTensor value More... | |
void | 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. More... | |
JavaMLWriter | Write () |
| |
JavaMLReader< ImageTransformer > | Read () |
Get the corresponding JavaMLReader instance. More... | |
Static Public Member Functions | |
static ImageTransformer | Load (string path) |
Loads the ImageTransformer that was previously saved using Save(string). More... | |
ImageTransformer implements ImageTransformer
|
inline |
Creates a ImageTransformer without any parameters.
|
inline |
Creates a ImageTransformer with a UID that is used to give the ImageTransformer a unique ID.
uid | An immutable unique ID for the object and its derivatives. |
bool Synapse.ML.Opencv.ImageTransformer.GetAutoConvertToColor | ( | ) |
Gets autoConvertToColor value
double Synapse.ML.Opencv.ImageTransformer.GetColorScaleFactor | ( | ) |
Gets colorScaleFactor value
bool Synapse.ML.Opencv.ImageTransformer.GetIgnoreDecodingErrors | ( | ) |
Gets ignoreDecodingErrors value
string Synapse.ML.Opencv.ImageTransformer.GetInputCol | ( | ) |
Gets inputCol value
double [] Synapse.ML.Opencv.ImageTransformer.GetNormalizeMean | ( | ) |
Gets normalizeMean value
double [] Synapse.ML.Opencv.ImageTransformer.GetNormalizeStd | ( | ) |
Gets normalizeStd value
string Synapse.ML.Opencv.ImageTransformer.GetOutputCol | ( | ) |
Gets outputCol value
|
inline |
Gets stages value
string Synapse.ML.Opencv.ImageTransformer.GetTensorChannelOrder | ( | ) |
Gets tensorChannelOrder value
|
inline |
Gets tensorElementType value
bool Synapse.ML.Opencv.ImageTransformer.GetToTensor | ( | ) |
Gets toTensor value
|
static |
Loads the ImageTransformer that was previously saved using Save(string).
path | The path the previous ImageTransformer was saved to |
JavaMLReader<ImageTransformer> Synapse.ML.Opencv.ImageTransformer.Read | ( | ) |
Get the corresponding JavaMLReader instance.
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.
path | The path to save the object to |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetAutoConvertToColor | ( | bool | value | ) |
Sets value for autoConvertToColor
value | Whether to automatically convert black and white images to color |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetColorScaleFactor | ( | double | value | ) |
Sets value for colorScaleFactor
value | The scale factor for color values. Used for normalization. The color values will be multiplied with the scale factor. |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetIgnoreDecodingErrors | ( | bool | value | ) |
Sets value for ignoreDecodingErrors
value | Whether to throw on decoding errors or just return null |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetInputCol | ( | string | value | ) |
Sets value for inputCol
value | The name of the input column |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetNormalizeMean | ( | double[] | value | ) |
Sets value for normalizeMean
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. |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetNormalizeStd | ( | double[] | value | ) |
Sets value for normalizeStd
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. |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetOutputCol | ( | string | value | ) |
Sets value for outputCol
value | The name of the output column |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetStages | ( | Dictionary< string, object >[] | value | ) |
Sets value for stages
value | Image transformation stages |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetTensorChannelOrder | ( | string | value | ) |
Sets value for tensorChannelOrder
value | The color channel order of the output channels. Valid values are RGB and GBR. Default: RGB. |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetTensorElementType | ( | DataType | value | ) |
Sets value for tensorElementType
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. |
ImageTransformer Synapse.ML.Opencv.ImageTransformer.SetToTensor | ( | bool | value | ) |
Sets value for toTensor
value | Convert output image to tensor in the shape of (C * H * W) |