6 writes to ColorsToExtract
Microsoft.ML.ImageAnalytics (6)
ImagePixelExtractor.cs (6)
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++; } 667ColorsToExtract = colorsToExtract; 708ColorsToExtract = (ImagePixelExtractingEstimator.ColorBits)ctx.Reader.ReadByte();
14 references to ColorsToExtract
Microsoft.ML.ImageAnalytics (14)
ImagePixelExtractor.cs (14)
363ImagePixelExtractingEstimator.GetOrder(ex.OrderOfExtraction, ex.ColorsToExtract, out int a, out int r, out int b, out int g); 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++; 709Contracts.CheckDecode(ColorsToExtract != 0); 710Contracts.CheckDecode((ColorsToExtract & ImagePixelExtractingEstimator.ColorBits.All) == ColorsToExtract); 720int planes = (int)ColorsToExtract; 740int planes = (int)ColorsToExtract; 753Contracts.Assert(ColorsToExtract != 0); 754Contracts.Assert((ColorsToExtract & ImagePixelExtractingEstimator.ColorBits.All) == ColorsToExtract); 755ctx.Writer.Write((byte)ColorsToExtract);