6 writes to Colors
Microsoft.ML.ImageAnalytics (6)
VectorToImageTransform.cs (6)
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(); 622Colors = colorsPresent;
18 references to Colors
Microsoft.ML.ImageAnalytics (18)
VectorToImageTransform.cs (18)
369ImagePixelExtractingEstimator.GetOrder(ex.Order, ex.Colors, out int a, out int r, out int b, out int g); 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; 547Contracts.CheckDecode(Colors != 0); 548Contracts.CheckDecode((Colors & ImagePixelExtractingEstimator.ColorBits.All) == Colors); 551int planes = (int)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) 656int planes = (int)Colors; 673Contracts.Assert(Colors != 0); 674Contracts.Assert((Colors & ImagePixelExtractingEstimator.ColorBits.All) == Colors); 675ctx.Writer.Write((byte)Colors);