156 references to ColorBits
Microsoft.ML.AutoML (73)
ApplyOnnxModel.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ApplyOnnxModelOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
Concatenate.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ConcatOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ConvertType.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ConvertTypeOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
DnnFeaturizerImage.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
DnnFeaturizerImageOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ExtractPixels.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ExtractPixelsOption.generated.cs (3)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits; 28public ColorBits ColorsToExtract {get; set;} = ColorBits.Rgb;
FastForestBinary.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FastForestOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FastForestOva.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FastForestRegression.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FastTreeBinary.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FastTreeOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FastTreeOva.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FastTreeRegression.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FastTreeTweedieRegression.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FeaturizeText.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
FeaturizeTextOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ForecastBySsa.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ImageClassificationMulti.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ImageClassificationOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LbfgsLogisticRegressionBinary.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LbfgsLogisticRegressionOva.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LbfgsMaximumEntropyMulti.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LbfgsOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LbfgsPoissonRegressionRegression.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LgbmOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LightGbmBinary.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LightGbmMulti.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LightGbmRegression.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LoadImageOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LoadImages.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
LoadRawImageBytes.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
MapKeyToValue.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
MapKeyToValueOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
MapValueToKey.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
MapValueToKeyOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
MatrixFactorization.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
MatrixFactorizationOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
Naive.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
NaiveOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
NamedEntityRecognitionMulti.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
NamedEntityRecognitionOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
NormalizeMinMax.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
NormalizeMinMaxOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
NormalizeText.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
NormalizeTextOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ObjectDetectionMulti.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ObjectDetectionOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
OneHotEncoding.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
OneHotHashEncoding.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
OneHotOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
QuestionAnsweringMulti.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
QuestionAnsweringOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ReplaceMissingValueOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ReplaceMissingValues.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ResizeImageOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
ResizeImages.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
SdcaLogisticRegressionBinary.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
SdcaLogisticRegressionOva.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
SdcaMaximumEntropyMulti.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
SdcaOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
SdcaRegression.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
SentenceSimilarityOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
SentenceSimilarityRegression.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
SsaOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
TextClassificationMulti.cs (1)
7using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
TextClassificationOption.generated.cs (1)
5using ColorBits = Microsoft.ML.Transforms.Image.ImagePixelExtractingEstimator.ColorBits;
Microsoft.ML.ImageAnalytics (73)
ExtensionsCatalog.cs (7)
119ImagePixelExtractingEstimator.ColorBits colorsToExtract = ImagePixelExtractingEstimator.Defaults.Colors, 208/// <param name="colorsPresent">Specifies which <see cref="ImagePixelExtractingEstimator.ColorBits"/> are in present the input pixel vectors. The order of colors is specified in <paramref name="orderOfColors"/>.</param> 214/// <param name="defaultAlpha">Default value for alpha color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Alpha"/>.</param> 215/// <param name="defaultRed">Default value for red color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Red"/>.</param> 216/// <param name="defaultGreen">Default value for green color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Green"/>.</param> 217/// <param name="defaultBlue">Default value for blue color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Blue"/>.</param> 225ImagePixelExtractingEstimator.ColorBits colorsPresent = ImagePixelExtractingEstimator.Defaults.Colors,
ImagePixelExtractor.cs (27)
166ImagePixelExtractingEstimator.ColorBits colorsToExtract = ImagePixelExtractingEstimator.Defaults.Colors, 503/// <seealso cref="ImageEstimatorsCatalog.ExtractPixels(TransformsCatalog, string, string, ColorBits, ColorsOrder, bool, float, float, bool)" /> 510public const ColorBits Colors = ColorBits.Rgb; 543internal static void GetOrder(ColorsOrder order, ColorBits colors, out int a, out int r, out int b, out int g) 557if ((colors & ColorBits.Alpha) != 0) 561if ((colors & ColorBits.Red) != 0) 565if ((colors & ColorBits.Blue) != 0) 569if ((colors & ColorBits.Green) != 0) 589public readonly ColorBits ColorsToExtract; 618if (item.UseAlpha ?? options.UseAlpha) { ColorsToExtract |= ColorBits.Alpha; Planes++; } 619if (item.UseRed ?? options.UseRed) { ColorsToExtract |= ColorBits.Red; Planes++; } 620if (item.UseGreen ?? options.UseGreen) { ColorsToExtract |= ColorBits.Green; Planes++; } 621if (item.UseBlue ?? options.UseBlue) { ColorsToExtract |= ColorBits.Blue; Planes++; } 656ColorBits colorsToExtract = Defaults.Colors, 669if ((ColorsToExtract & ColorBits.Alpha) == ColorBits.Alpha) Planes++; 670if ((ColorsToExtract & ColorBits.Red) == ColorBits.Red) Planes++; 671if ((ColorsToExtract & ColorBits.Green) == ColorBits.Green) Planes++; 672if ((ColorsToExtract & ColorBits.Blue) == ColorBits.Blue) Planes++; 708ColorsToExtract = (ImagePixelExtractingEstimator.ColorBits)ctx.Reader.ReadByte(); 710Contracts.CheckDecode((ColorsToExtract & ImagePixelExtractingEstimator.ColorBits.All) == ColorsToExtract); 754Contracts.Assert((ColorsToExtract & ImagePixelExtractingEstimator.ColorBits.All) == ColorsToExtract); 784ColorBits colorsToExtract = Defaults.Colors,
VectorToImageTransform.cs (39)
110public bool ContainsAlpha = (ImagePixelExtractingEstimator.Defaults.Colors & ImagePixelExtractingEstimator.ColorBits.Alpha) > 0; 113public bool ContainsRed = (ImagePixelExtractingEstimator.Defaults.Colors & ImagePixelExtractingEstimator.ColorBits.Red) > 0; 116public bool ContainsGreen = (ImagePixelExtractingEstimator.Defaults.Colors & ImagePixelExtractingEstimator.ColorBits.Green) > 0; 119public bool ContainsBlue = (ImagePixelExtractingEstimator.Defaults.Colors & ImagePixelExtractingEstimator.ColorBits.Blue) > 0; 191/// <param name="colorsPresent">Specifies which <see cref="ImagePixelExtractingEstimator.ColorBits"/> are in present the input pixel vectors. The order of colors is specified in <paramref name="orderOfColors"/>.</param> 197/// <param name="defaultAlpha">Default value for alpha color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Alpha"/>.</param> 198/// <param name="defaultRed">Default value for red color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Red"/>.</param> 199/// <param name="defaultGreen">Default value for green color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Green"/>.</param> 200/// <param name="defaultBlue">Default value for blue color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Blue"/>.</param> 204ImagePixelExtractingEstimator.ColorBits colorsPresent = ImagePixelExtractingEstimator.Defaults.Colors, 452/// <seealso cref="ImageEstimatorsCatalog.ConvertToImage(TransformsCatalog, int, int, string, string, ImagePixelExtractingEstimator.ColorBits, ImagePixelExtractingEstimator.ColorsOrder, bool, float, float, int, int, int, int)" /> 476public readonly ImagePixelExtractingEstimator.ColorBits Colors; 491public bool Alpha => (Colors & ImagePixelExtractingEstimator.ColorBits.Alpha) != 0; 492public bool Red => (Colors & ImagePixelExtractingEstimator.ColorBits.Red) != 0; 493public bool Green => (Colors & ImagePixelExtractingEstimator.ColorBits.Green) != 0; 494public bool Blue => (Colors & ImagePixelExtractingEstimator.ColorBits.Blue) != 0; 505{ Colors |= ImagePixelExtractingEstimator.ColorBits.Alpha; Planes++; } 507{ Colors |= ImagePixelExtractingEstimator.ColorBits.Red; Planes++; } 509{ Colors |= ImagePixelExtractingEstimator.ColorBits.Green; Planes++; } 511{ Colors |= ImagePixelExtractingEstimator.ColorBits.Blue; Planes++; } 546Colors = (ImagePixelExtractingEstimator.ColorBits)ctx.Reader.ReadByte(); 548Contracts.CheckDecode((Colors & ImagePixelExtractingEstimator.ColorBits.All) == Colors); 595/// <param name="colorsPresent">Specifies which <see cref="ImagePixelExtractingEstimator.ColorBits"/> are present in the input pixel vectors. The order of colors is specified in <paramref name="orderOfColors"/>.</param> 601/// <param name="defaultAlpha">Default value for alpha color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Alpha"/>.</param> 602/// <param name="defaultRed">Default value for red color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Red"/>.</param> 603/// <param name="defaultGreen">Default value for green color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Green"/>.</param> 604/// <param name="defaultBlue">Default value for blue color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Blue"/>.</param> 608ImagePixelExtractingEstimator.ColorBits colorsPresent = ImagePixelExtractingEstimator.Defaults.Colors, 623if ((byte)(Colors & ImagePixelExtractingEstimator.ColorBits.Alpha) > 0) 625if ((byte)(Colors & ImagePixelExtractingEstimator.ColorBits.Red) > 0) 627if ((byte)(Colors & ImagePixelExtractingEstimator.ColorBits.Green) > 0) 629if ((byte)(Colors & ImagePixelExtractingEstimator.ColorBits.Blue) > 0) 674Contracts.Assert((Colors & ImagePixelExtractingEstimator.ColorBits.All) == Colors); 699/// <param name="colorsPresent">Specifies which <see cref="ImagePixelExtractingEstimator.ColorBits"/> are in present the input pixel vectors. The order of colors is specified in <paramref name="orderOfColors"/>.</param> 705/// <param name="defaultAlpha">Default value for alpha color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Alpha"/>.</param> 706/// <param name="defaultRed">Default value for red color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Red"/>.</param> 707/// <param name="defaultGreen">Default value for green color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Green"/>.</param> 708/// <param name="defaultBlue">Default value for blue color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="ImagePixelExtractingEstimator.ColorBits.Blue"/>.</param> 715ImagePixelExtractingEstimator.ColorBits colorsPresent = ImagePixelExtractingEstimator.Defaults.Colors,
Microsoft.ML.Tests (10)
ImagesTests.cs (10)
348var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All, interleavePixelColors: true, scaleImage: 2f / 19, offsetImage: 30).Transform(cropped); 350ImagePixelExtractingEstimator.ColorBits.All, interleavedColors: true, scaleImage: 19 / 2f, offsetImage: -30).Transform(pixels); 499var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All, orderOfExtraction: ImagePixelExtractingEstimator.ColorsOrder.ABRG).Transform(cropped); 501ImagePixelExtractingEstimator.ColorBits.All, orderOfColors: ImagePixelExtractingEstimator.ColorsOrder.ABRG).Transform(pixels); 573var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All, scaleImage: 2f / 19, offsetImage: 30).Transform(cropped); 576ImagePixelExtractingEstimator.ColorBits.All, scaleImage: 19 / 2f, offsetImage: -30).Transform(pixels); 724var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All, interleavePixelColors: true).Transform(cropped); 727ImagePixelExtractingEstimator.ColorBits.All, interleavedColors: true).Transform(pixels); 875var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All).Transform(cropped); 878ImagePixelExtractingEstimator.ColorBits.All).Transform(pixels);