2 instantiations of VectorToImageConvertingEstimator
Microsoft.ML.ImageAnalytics (2)
ExtensionsCatalog.cs (2)
195=> new VectorToImageConvertingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions); 234=> new VectorToImageConvertingEstimator(CatalogUtils.GetEnvironment(catalog), imageHeight, imageWidth, outputColumnName, inputColumnName, colorsPresent, orderOfColors, interleavedColors, scaleImage, offsetImage);
50 references to VectorToImageConvertingEstimator
Microsoft.ML.ImageAnalytics (49)
ExtensionsCatalog.cs (11)
192/// <param name="columnOptions">The <see cref="VectorToImageConvertingEstimator.ColumnOptions"/> describing how the transform handles each vector to image conversion column pair.</param> 194internal static VectorToImageConvertingEstimator ConvertToImage(this TransformsCatalog catalog, params VectorToImageConvertingEstimator.ColumnOptions[] columnOptions) 198/// Create a <see cref="VectorToImageConvertingEstimator"/>, which creates image from the data from the column specified in <paramref name="inputColumnName"/> 224public static VectorToImageConvertingEstimator ConvertToImage(this TransformsCatalog catalog, int imageHeight, int imageWidth, string outputColumnName, string inputColumnName = null, 228float scaleImage = VectorToImageConvertingEstimator.Defaults.Scale, 229float offsetImage = VectorToImageConvertingEstimator.Defaults.Offset, 230int defaultAlpha = VectorToImageConvertingEstimator.Defaults.DefaultAlpha, 231int defaultRed = VectorToImageConvertingEstimator.Defaults.DefaultRed, 232int defaultGreen = VectorToImageConvertingEstimator.Defaults.DefaultGreen, 233int defaultBlue = VectorToImageConvertingEstimator.Defaults.DefaultBlue)
VectorToImageTransform.cs (38)
32/// <see cref="ITransformer"/> resulting from fitting a <see cref="VectorToImageConvertingEstimator"/>. 134public Single Offset = VectorToImageConvertingEstimator.Defaults.Offset; 137public Single Scale = VectorToImageConvertingEstimator.Defaults.Scale; 140public int DefaultAlpha = VectorToImageConvertingEstimator.Defaults.DefaultAlpha; 143public int DefaultRed = VectorToImageConvertingEstimator.Defaults.DefaultRed; 146public int DefaultGreen = VectorToImageConvertingEstimator.Defaults.DefaultGreen; 149public int DefaultBlue = VectorToImageConvertingEstimator.Defaults.DefaultBlue; 171private readonly VectorToImageConvertingEstimator.ColumnOptions[] _columns; 176internal IReadOnlyCollection<VectorToImageConvertingEstimator.ColumnOptions> Columns => _columns.AsReadOnly(); 178internal VectorToImageConvertingTransformer(IHostEnvironment env, params VectorToImageConvertingEstimator.ColumnOptions[] columns) 207float scaleImage = VectorToImageConvertingEstimator.Defaults.Scale, 208float offsetImage = VectorToImageConvertingEstimator.Defaults.Offset, 209int defaultAlpha = VectorToImageConvertingEstimator.Defaults.DefaultAlpha, 210int defaultRed = VectorToImageConvertingEstimator.Defaults.DefaultRed, 211int defaultGreen = VectorToImageConvertingEstimator.Defaults.DefaultGreen, 212int defaultBlue = VectorToImageConvertingEstimator.Defaults.DefaultBlue) 213: this(env, new VectorToImageConvertingEstimator.ColumnOptions(outputColumnName, imageHeight, imageWidth, inputColumnName, colorsPresent, orderOfColors, interleavedColors, scaleImage, offsetImage, defaultAlpha, defaultRed, defaultGreen, defaultBlue)) 226var columns = new VectorToImageConvertingEstimator.ColumnOptions[args.Columns.Length]; 230columns[i] = new VectorToImageConvertingEstimator.ColumnOptions(item, args); 247_columns = new VectorToImageConvertingEstimator.ColumnOptions[ColumnPairs.Length]; 249_columns[i] = new VectorToImageConvertingEstimator.ColumnOptions(ColumnPairs[i].outputColumnName, ColumnPairs[i].inputColumnName, ctx); 291private static (string outputColumnName, string inputColumnName)[] GetColumnPairs(VectorToImageConvertingEstimator.ColumnOptions[] columns) 345VectorToImageConvertingEstimator.ColumnOptions ex, bool needScale) where TValue : IConvertible 423private static ImageDataViewType[] ConstructTypes(VectorToImageConvertingEstimator.ColumnOptions[] columns) 611float scaleImage = VectorToImageConvertingEstimator.Defaults.Scale, 612float offsetImage = VectorToImageConvertingEstimator.Defaults.Offset, 613int defaultAlpha = VectorToImageConvertingEstimator.Defaults.DefaultAlpha, 614int defaultRed = VectorToImageConvertingEstimator.Defaults.DefaultRed, 615int defaultGreen = VectorToImageConvertingEstimator.Defaults.DefaultGreen, 616int defaultBlue = VectorToImageConvertingEstimator.Defaults.DefaultBlue) 718float scaleImage = VectorToImageConvertingEstimator.Defaults.Scale, 719float offsetImage = VectorToImageConvertingEstimator.Defaults.Offset, 720int defaultAlpha = VectorToImageConvertingEstimator.Defaults.DefaultAlpha, 721int defaultRed = VectorToImageConvertingEstimator.Defaults.DefaultRed, 722int defaultGreen = VectorToImageConvertingEstimator.Defaults.DefaultGreen, 723int defaultBlue = VectorToImageConvertingEstimator.Defaults.DefaultBlue) 724: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(VectorToImageConvertingEstimator)), 735: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(VectorToImageConvertingEstimator)), new VectorToImageConvertingTransformer(env, columnOptions))
Microsoft.ML.Tests (1)
ImagesTests.cs (1)
1093var pipeline = mlContext.Transforms.ConvertToImage(224, 224, "Features");