6 writes to ColorsToExtract
Microsoft.ML.ImageAnalytics (6)
ImagePixelExtractor.cs (6)
618
if (item.UseAlpha ?? options.UseAlpha) {
ColorsToExtract
|= ColorBits.Alpha; Planes++; }
619
if (item.UseRed ?? options.UseRed) {
ColorsToExtract
|= ColorBits.Red; Planes++; }
620
if (item.UseGreen ?? options.UseGreen) {
ColorsToExtract
|= ColorBits.Green; Planes++; }
621
if (item.UseBlue ?? options.UseBlue) {
ColorsToExtract
|= ColorBits.Blue; Planes++; }
667
ColorsToExtract
= colorsToExtract;
708
ColorsToExtract
= (ImagePixelExtractingEstimator.ColorBits)ctx.Reader.ReadByte();
14 references to ColorsToExtract
Microsoft.ML.ImageAnalytics (14)
ImagePixelExtractor.cs (14)
363
ImagePixelExtractingEstimator.GetOrder(ex.OrderOfExtraction, ex.
ColorsToExtract
, out int a, out int r, out int b, out int g);
669
if ((
ColorsToExtract
& ColorBits.Alpha) == ColorBits.Alpha) Planes++;
670
if ((
ColorsToExtract
& ColorBits.Red) == ColorBits.Red) Planes++;
671
if ((
ColorsToExtract
& ColorBits.Green) == ColorBits.Green) Planes++;
672
if ((
ColorsToExtract
& ColorBits.Blue) == ColorBits.Blue) Planes++;
709
Contracts.CheckDecode(
ColorsToExtract
!= 0);
710
Contracts.CheckDecode((
ColorsToExtract
& ImagePixelExtractingEstimator.ColorBits.All) ==
ColorsToExtract
);
720
int planes = (int)
ColorsToExtract
;
740
int planes = (int)
ColorsToExtract
;
753
Contracts.Assert(
ColorsToExtract
!= 0);
754
Contracts.Assert((
ColorsToExtract
& ImagePixelExtractingEstimator.ColorBits.All) ==
ColorsToExtract
);
755
ctx.Writer.Write((byte)
ColorsToExtract
);