| | 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.Face.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Properties describing noise level of the image. |
| | 18 | | /// </summary> |
| | 19 | | public partial class Noise |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the Noise class. |
| | 23 | | /// </summary> |
| 2 | 24 | | public Noise() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 2 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the Noise class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="noiseLevel">An enum value indicating level of noise. |
| | 33 | | /// Possible values include: 'Low', 'Medium', 'High'</param> |
| | 34 | | /// <param name="value">A number indicating level of noise level |
| | 35 | | /// ranging from 0 to 1. [0, 0.25) is under exposure. [0.25, 0.75) is |
| | 36 | | /// good exposure. [0.75, 1] is over exposure. [0, 0.3) is low noise |
| | 37 | | /// level. [0.3, 0.7) is medium noise level. [0.7, 1] is high noise |
| | 38 | | /// level.</param> |
| 0 | 39 | | public Noise(NoiseLevel noiseLevel = default(NoiseLevel), double value = default(double)) |
| | 40 | | { |
| 0 | 41 | | NoiseLevel = noiseLevel; |
| 0 | 42 | | Value = value; |
| | 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 an enum value indicating level of noise. Possible |
| | 53 | | /// values include: 'Low', 'Medium', 'High' |
| | 54 | | /// </summary> |
| | 55 | | [JsonProperty(PropertyName = "noiseLevel")] |
| 6 | 56 | | public NoiseLevel NoiseLevel { get; set; } |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// Gets or sets a number indicating level of noise level ranging from |
| | 60 | | /// 0 to 1. [0, 0.25) is under exposure. [0.25, 0.75) is good exposure. |
| | 61 | | /// [0.75, 1] is over exposure. [0, 0.3) is low noise level. [0.3, 0.7) |
| | 62 | | /// is medium noise level. [0.7, 1] is high noise level. |
| | 63 | | /// </summary> |
| | 64 | | [JsonProperty(PropertyName = "value")] |
| 0 | 65 | | public double Value { get; set; } |
| | 66 | |
|
| | 67 | | } |
| | 68 | | } |