9 writes to Planes
Microsoft.ML.ImageAnalytics (9)
ImagePixelExtractor.cs (9)
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++; } 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++; 723Planes = (byte)planes;
9 references to Planes
Microsoft.ML.ImageAnalytics (9)
ImagePixelExtractor.cs (9)
408idst += ex.Planes; 458Contracts.Assert(column.Planes > 0); 470types[i] = new VectorDataViewType(column.OutputAsFloatArray ? NumberDataViewType.Single : NumberDataViewType.Byte, height, width, column.Planes); 472types[i] = new VectorDataViewType(column.OutputAsFloatArray ? NumberDataViewType.Single : NumberDataViewType.Byte, column.Planes, height, width); 622Contracts.CheckUserArg(Planes > 0, nameof(item.UseRed), "Need to use at least one color plane"); 673Contracts.CheckParam(Planes > 0, nameof(colorsToExtract), "Need to use at least one color plane."); 724Contracts.Assert(0 < Planes && Planes <= 4); 743Contracts.Assert(planes == Planes);