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++; }
546
Colors
= (ImagePixelExtractingEstimator.ColorBits)ctx.Reader.ReadByte();
622
Colors
= colorsPresent;
18 references to Colors
Microsoft.ML.ImageAnalytics (18)
VectorToImageTransform.cs (18)
369
ImagePixelExtractingEstimator.GetOrder(ex.Order, ex.
Colors
, out int a, out int r, out int b, out int g);
491
public bool Alpha => (
Colors
& ImagePixelExtractingEstimator.ColorBits.Alpha) != 0;
492
public bool Red => (
Colors
& ImagePixelExtractingEstimator.ColorBits.Red) != 0;
493
public bool Green => (
Colors
& ImagePixelExtractingEstimator.ColorBits.Green) != 0;
494
public bool Blue => (
Colors
& ImagePixelExtractingEstimator.ColorBits.Blue) != 0;
547
Contracts.CheckDecode(
Colors
!= 0);
548
Contracts.CheckDecode((
Colors
& ImagePixelExtractingEstimator.ColorBits.All) ==
Colors
);
551
int planes = (int)
Colors
;
623
if ((byte)(
Colors
& ImagePixelExtractingEstimator.ColorBits.Alpha) > 0)
625
if ((byte)(
Colors
& ImagePixelExtractingEstimator.ColorBits.Red) > 0)
627
if ((byte)(
Colors
& ImagePixelExtractingEstimator.ColorBits.Green) > 0)
629
if ((byte)(
Colors
& ImagePixelExtractingEstimator.ColorBits.Blue) > 0)
656
int planes = (int)
Colors
;
673
Contracts.Assert(
Colors
!= 0);
674
Contracts.Assert((
Colors
& ImagePixelExtractingEstimator.ColorBits.All) ==
Colors
);
675
ctx.Writer.Write((byte)
Colors
);