< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageProcessingSettings
Assembly:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ImageProcessingSettings.cs
Covered lines:3
Uncovered lines:3
Coverable lines:6
Total lines:62
Line coverage:50% (3 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_AugmentationMethods()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ImageProcessingSettings.cs

#LineLine coverage
 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
 11namespace 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>
 9026        public ImageProcessingSettings()
 27        {
 28            CustomInit();
 9029        }
 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>
 040        public ImageProcessingSettings(IDictionary<string, bool?> augmentationMethods = default(IDictionary<string, bool
 41        {
 042            AugmentationMethods = augmentationMethods;
 43            CustomInit();
 044        }
 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")]
 18059        public IDictionary<string, bool?> AugmentationMethods { get; set; }
 60
 61    }
 62}