| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Collections; |
| | | 15 | | using System.Collections.Generic; |
| | | 16 | | using System.Linq; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Represents image preprocessing settings used by image augmentation. |
| | | 20 | | /// </summary> |
| | | 21 | | public partial class ImageProcessingSettings |
| | | 22 | | { |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of the ImageProcessingSettings class. |
| | | 25 | | /// </summary> |
| | 90 | 26 | | public ImageProcessingSettings() |
| | | 27 | | { |
| | | 28 | | CustomInit(); |
| | 90 | 29 | | } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Initializes a new instance of the ImageProcessingSettings class. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="augmentationMethods">Gets or sets enabled image |
| | | 35 | | /// transforms. The key corresponds to the transform name. If value is |
| | | 36 | | /// set to true, then correspondent transform is enabled. Otherwise |
| | | 37 | | /// this transform will not be used. |
| | | 38 | | /// Augmentation will be uniformly distributed among enabled |
| | | 39 | | /// transforms.</param> |
| | 0 | 40 | | public ImageProcessingSettings(IDictionary<string, bool?> augmentationMethods = default(IDictionary<string, bool |
| | | 41 | | { |
| | 0 | 42 | | AugmentationMethods = augmentationMethods; |
| | | 43 | | CustomInit(); |
| | 0 | 44 | | } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// An initialization method that performs custom operations like setting defaults |
| | | 48 | | /// </summary> |
| | | 49 | | partial void CustomInit(); |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// Gets or sets enabled image transforms. The key corresponds to the |
| | | 53 | | /// transform name. If value is set to true, then correspondent |
| | | 54 | | /// transform is enabled. Otherwise this transform will not be used. |
| | | 55 | | /// Augmentation will be uniformly distributed among enabled |
| | | 56 | | /// transforms. |
| | | 57 | | /// </summary> |
| | | 58 | | [JsonProperty(PropertyName = "augmentationMethods")] |
| | 180 | 59 | | public IDictionary<string, bool?> AugmentationMethods { get; set; } |
| | | 60 | | |
| | | 61 | | } |
| | | 62 | | } |