7 instantiations of ImagePixelExtractingEstimator
Microsoft.ML.ImageAnalytics (2)
ExtensionsCatalog.cs (2)
125
=> new
ImagePixelExtractingEstimator
(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName, colorsToExtract, orderOfExtraction, interleavePixelColors, offsetImage, scaleImage, outputAsFloatArray);
135
=> new
ImagePixelExtractingEstimator
(CatalogUtils.GetEnvironment(catalog), columnOptions);
Microsoft.ML.TensorFlow.Tests (3)
TensorflowTests.cs (3)
151
.Append(new
ImagePixelExtractingEstimator
(_mlContext, "Input", "ImageCropped", interleavePixelColors: true))
1024
.Append(new
ImagePixelExtractingEstimator
(_mlContext, "Input",
1161
.Append(new
ImagePixelExtractingEstimator
(_mlContext, "Input", "ImageCropped", interleavePixelColors: true))
Microsoft.ML.Tests (2)
ImagesTests.cs (2)
52
.Append(new
ImagePixelExtractingEstimator
(env, "ImagePixels", "ImageReal"))
76
.Append(new
ImagePixelExtractingEstimator
(env, "ImagePixels", "ImageReal"))
274 references to ImagePixelExtractingEstimator
Microsoft.ML.AutoML (142)
ApplyOnnxModel.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ApplyOnnxModelOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
Concatenate.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ConcatOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ConvertType.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ConvertTypeOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
DnnFeaturizerImage.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
DnnFeaturizerImageOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ExtractPixels.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ExtractPixelsOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FastForestBinary.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FastForestOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FastForestOva.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FastForestRegression.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FastTreeBinary.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FastTreeOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FastTreeOva.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FastTreeRegression.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FastTreeTweedieRegression.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FeaturizeText.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
FeaturizeTextOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ForecastBySsa.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ImageClassificationMulti.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ImageClassificationOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LbfgsLogisticRegressionBinary.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LbfgsLogisticRegressionOva.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LbfgsMaximumEntropyMulti.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LbfgsOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LbfgsPoissonRegressionRegression.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LgbmOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LightGbmBinary.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LightGbmMulti.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LightGbmRegression.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LoadImageOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LoadImages.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
LoadRawImageBytes.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
MapKeyToValue.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
MapKeyToValueOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
MapValueToKey.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
MapValueToKeyOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
MatrixFactorization.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
MatrixFactorizationOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
Naive.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
NaiveOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
NamedEntityRecognitionMulti.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
NamedEntityRecognitionOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
NormalizeMinMax.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
NormalizeMinMaxOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
NormalizeText.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
NormalizeTextOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ObjectDetectionMulti.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ObjectDetectionOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
OneHotEncoding.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
OneHotHashEncoding.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
OneHotOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
QuestionAnsweringMulti.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
QuestionAnsweringOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ReplaceMissingValueOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ReplaceMissingValues.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ResizeImageOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
ResizeImages.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
SdcaLogisticRegressionBinary.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
SdcaLogisticRegressionOva.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
SdcaMaximumEntropyMulti.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
SdcaOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
SdcaRegression.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
SentenceSimilarityOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
SentenceSimilarityRegression.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
SsaOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
TextClassificationMulti.cs (2)
6
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
7
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
TextClassificationOption.generated.cs (2)
4
using ColorsOrder = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorsOrder;
5
using ColorBits = Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
.ColorBits;
Microsoft.ML.ImageAnalytics (120)
ExtensionsCatalog.cs (25)
94
/// Create a <see cref="
ImagePixelExtractingEstimator
"/>, which extracts pixels values from the data specified in column: <paramref name="inputColumnName"/>
116
public static
ImagePixelExtractingEstimator
ExtractPixels(this TransformsCatalog catalog,
119
ImagePixelExtractingEstimator
.ColorBits colorsToExtract =
ImagePixelExtractingEstimator
.Defaults.Colors,
120
ImagePixelExtractingEstimator
.ColorsOrder orderOfExtraction =
ImagePixelExtractingEstimator
.Defaults.Order,
122
float offsetImage =
ImagePixelExtractingEstimator
.Defaults.Offset,
123
float scaleImage =
ImagePixelExtractingEstimator
.Defaults.Scale,
124
bool outputAsFloatArray =
ImagePixelExtractingEstimator
.Defaults.Convert)
128
/// Create a <see cref="
ImagePixelExtractingEstimator
"/>, which extracts pixel values from the data specified in column: <see cref="
ImagePixelExtractingEstimator
.ColumnOptions.InputColumnName"/>
129
/// to a new column: <see cref="
ImagePixelExtractingEstimator
.ColumnOptions.Name"/>.
132
/// <param name="columnOptions">The <see cref="
ImagePixelExtractingEstimator
.ColumnOptions"/> describing how the transform handles each image pixel extraction output input column pair.</param>
134
internal static
ImagePixelExtractingEstimator
ExtractPixels(this TransformsCatalog catalog, params
ImagePixelExtractingEstimator
.ColumnOptions[] columnOptions)
208
/// <param name="colorsPresent">Specifies which <see cref="
ImagePixelExtractingEstimator
.ColorBits"/> are in present the input pixel vectors. The order of colors is specified in <paramref name="orderOfColors"/>.</param>
214
/// <param name="defaultAlpha">Default value for alpha color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Alpha"/>.</param>
215
/// <param name="defaultRed">Default value for red color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Red"/>.</param>
216
/// <param name="defaultGreen">Default value for green color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Green"/>.</param>
217
/// <param name="defaultBlue">Default value for blue color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Blue"/>.</param>
225
ImagePixelExtractingEstimator
.ColorBits colorsPresent =
ImagePixelExtractingEstimator
.Defaults.Colors,
226
ImagePixelExtractingEstimator
.ColorsOrder orderOfColors =
ImagePixelExtractingEstimator
.Defaults.Order,
227
bool interleavedColors =
ImagePixelExtractingEstimator
.Defaults.Interleave,
ImagePixelExtractor.cs (30)
32
/// <see cref="ITransformer"/> resulting from fitting an <see cref="
ImagePixelExtractingEstimator
"/>.
52
public
ImagePixelExtractingEstimator
.ColorsOrder? Order;
108
public
ImagePixelExtractingEstimator
.ColorsOrder Order =
ImagePixelExtractingEstimator
.Defaults.Order;
111
public bool Interleave =
ImagePixelExtractingEstimator
.Defaults.Interleave;
114
public bool Convert =
ImagePixelExtractingEstimator
.Defaults.Convert;
143
private readonly
ImagePixelExtractingEstimator
.ColumnOptions[] _columns;
148
internal IReadOnlyCollection<
ImagePixelExtractingEstimator
.ColumnOptions> Columns => _columns.AsReadOnly();
166
ImagePixelExtractingEstimator
.ColorBits colorsToExtract =
ImagePixelExtractingEstimator
.Defaults.Colors,
167
ImagePixelExtractingEstimator
.ColorsOrder orderOfExtraction =
ImagePixelExtractingEstimator
.Defaults.Order,
168
bool interleavePixelColors =
ImagePixelExtractingEstimator
.Defaults.Interleave,
169
float offsetImage =
ImagePixelExtractingEstimator
.Defaults.Offset,
170
float scaleImage =
ImagePixelExtractingEstimator
.Defaults.Scale,
171
bool outputAsFloatArray =
ImagePixelExtractingEstimator
.Defaults.Convert)
172
: this(env, new
ImagePixelExtractingEstimator
.ColumnOptions(outputColumnName, inputColumnName, colorsToExtract, orderOfExtraction, interleavePixelColors, offsetImage, scaleImage, outputAsFloatArray))
181
internal ImagePixelExtractingTransformer(IHostEnvironment env, params
ImagePixelExtractingEstimator
.ColumnOptions[] columns)
187
private static (string outputColumnName, string inputColumnName)[] GetColumnPairs(
ImagePixelExtractingEstimator
.ColumnOptions[] columns)
202
var columns = new
ImagePixelExtractingEstimator
.ColumnOptions[options.Columns.Length];
206
columns[i] = new
ImagePixelExtractingEstimator
.ColumnOptions(item, options);
233
_columns = new
ImagePixelExtractingEstimator
.ColumnOptions[ColumnPairs.Length];
235
_columns[i] = new
ImagePixelExtractingEstimator
.ColumnOptions(ColumnPairs[i].outputColumnName, ColumnPairs[i].inputColumnName, ctx);
363
ImagePixelExtractingEstimator
.GetOrder(ex.OrderOfExtraction, ex.ColorsToExtract, out int a, out int r, out int b, out int g);
708
ColorsToExtract = (
ImagePixelExtractingEstimator
.ColorBits)ctx.Reader.ReadByte();
710
Contracts.CheckDecode((ColorsToExtract &
ImagePixelExtractingEstimator
.ColorBits.All) == ColorsToExtract);
715
OrderOfExtraction = (
ImagePixelExtractingEstimator
.ColorsOrder)ctx.Reader.ReadByte();
754
Contracts.Assert((ColorsToExtract &
ImagePixelExtractingEstimator
.ColorBits.All) == ColorsToExtract);
790
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(
ImagePixelExtractingEstimator
)),
801
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(
ImagePixelExtractingEstimator
)), new ImagePixelExtractingTransformer(env, columns))
MLImage.cs (1)
13
using static Microsoft.ML.Transforms.Image.
ImagePixelExtractingEstimator
;
VectorToImageTransform.cs (64)
51
public
ImagePixelExtractingEstimator
.ColorsOrder? Order;
110
public bool ContainsAlpha = (
ImagePixelExtractingEstimator
.Defaults.Colors &
ImagePixelExtractingEstimator
.ColorBits.Alpha) > 0;
113
public bool ContainsRed = (
ImagePixelExtractingEstimator
.Defaults.Colors &
ImagePixelExtractingEstimator
.ColorBits.Red) > 0;
116
public bool ContainsGreen = (
ImagePixelExtractingEstimator
.Defaults.Colors &
ImagePixelExtractingEstimator
.ColorBits.Green) > 0;
119
public bool ContainsBlue = (
ImagePixelExtractingEstimator
.Defaults.Colors &
ImagePixelExtractingEstimator
.ColorBits.Blue) > 0;
122
public
ImagePixelExtractingEstimator
.ColorsOrder Order =
ImagePixelExtractingEstimator
.Defaults.Order;
125
public bool Interleave =
ImagePixelExtractingEstimator
.Defaults.Interleave;
191
/// <param name="colorsPresent">Specifies which <see cref="
ImagePixelExtractingEstimator
.ColorBits"/> are in present the input pixel vectors. The order of colors is specified in <paramref name="orderOfColors"/>.</param>
197
/// <param name="defaultAlpha">Default value for alpha color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Alpha"/>.</param>
198
/// <param name="defaultRed">Default value for red color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Red"/>.</param>
199
/// <param name="defaultGreen">Default value for green color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Green"/>.</param>
200
/// <param name="defaultBlue">Default value for blue color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Blue"/>.</param>
204
ImagePixelExtractingEstimator
.ColorBits colorsPresent =
ImagePixelExtractingEstimator
.Defaults.Colors,
205
ImagePixelExtractingEstimator
.ColorsOrder orderOfColors =
ImagePixelExtractingEstimator
.Defaults.Order,
206
bool interleavedColors =
ImagePixelExtractingEstimator
.Defaults.Interleave,
369
ImagePixelExtractingEstimator
.GetOrder(ex.Order, ex.Colors, out int a, out int r, out int b, out int g);
452
/// <seealso cref="ImageEstimatorsCatalog.ConvertToImage(TransformsCatalog, int, int, string, string,
ImagePixelExtractingEstimator
.ColorBits,
ImagePixelExtractingEstimator
.ColorsOrder, bool, float, float, int, int, int, int)" />
476
public readonly
ImagePixelExtractingEstimator
.ColorBits Colors;
477
public readonly
ImagePixelExtractingEstimator
.ColorsOrder Order;
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;
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();
548
Contracts.CheckDecode((Colors &
ImagePixelExtractingEstimator
.ColorBits.All) == Colors);
558
Order =
ImagePixelExtractingEstimator
.ColorsOrder.ARGB;
561
Order = (
ImagePixelExtractingEstimator
.ColorsOrder)ctx.Reader.ReadByte();
595
/// <param name="colorsPresent">Specifies which <see cref="
ImagePixelExtractingEstimator
.ColorBits"/> are present in the input pixel vectors. The order of colors is specified in <paramref name="orderOfColors"/>.</param>
601
/// <param name="defaultAlpha">Default value for alpha color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Alpha"/>.</param>
602
/// <param name="defaultRed">Default value for red color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Red"/>.</param>
603
/// <param name="defaultGreen">Default value for green color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Green"/>.</param>
604
/// <param name="defaultBlue">Default value for blue color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Blue"/>.</param>
608
ImagePixelExtractingEstimator
.ColorBits colorsPresent =
ImagePixelExtractingEstimator
.Defaults.Colors,
609
ImagePixelExtractingEstimator
.ColorsOrder orderOfColors =
ImagePixelExtractingEstimator
.Defaults.Order,
610
bool interleavedColors =
ImagePixelExtractingEstimator
.Defaults.Interleave,
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)
674
Contracts.Assert((Colors &
ImagePixelExtractingEstimator
.ColorBits.All) == Colors);
699
/// <param name="colorsPresent">Specifies which <see cref="
ImagePixelExtractingEstimator
.ColorBits"/> are in present the input pixel vectors. The order of colors is specified in <paramref name="orderOfColors"/>.</param>
705
/// <param name="defaultAlpha">Default value for alpha color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Alpha"/>.</param>
706
/// <param name="defaultRed">Default value for red color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Red"/>.</param>
707
/// <param name="defaultGreen">Default value for green color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Green"/>.</param>
708
/// <param name="defaultBlue">Default value for blue color, would be overridden if <paramref name="colorsPresent"/> contains <see cref="
ImagePixelExtractingEstimator
.ColorBits.Blue"/>.</param>
715
ImagePixelExtractingEstimator
.ColorBits colorsPresent =
ImagePixelExtractingEstimator
.Defaults.Colors,
716
ImagePixelExtractingEstimator
.ColorsOrder orderOfColors =
ImagePixelExtractingEstimator
.Defaults.Order,
717
bool interleavedColors =
ImagePixelExtractingEstimator
.Defaults.Interleave,
Microsoft.ML.Tests (12)
ImagesTests.cs (12)
348
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped",
ImagePixelExtractingEstimator
.ColorBits.All, interleavePixelColors: true, scaleImage: 2f / 19, offsetImage: 30).Transform(cropped);
350
ImagePixelExtractingEstimator
.ColorBits.All, interleavedColors: true, scaleImage: 19 / 2f, offsetImage: -30).Transform(pixels);
499
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped",
ImagePixelExtractingEstimator
.ColorBits.All, orderOfExtraction:
ImagePixelExtractingEstimator
.ColorsOrder.ABRG).Transform(cropped);
501
ImagePixelExtractingEstimator
.ColorBits.All, orderOfColors:
ImagePixelExtractingEstimator
.ColorsOrder.ABRG).Transform(pixels);
573
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped",
ImagePixelExtractingEstimator
.ColorBits.All, scaleImage: 2f / 19, offsetImage: 30).Transform(cropped);
576
ImagePixelExtractingEstimator
.ColorBits.All, scaleImage: 19 / 2f, offsetImage: -30).Transform(pixels);
724
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped",
ImagePixelExtractingEstimator
.ColorBits.All, interleavePixelColors: true).Transform(cropped);
727
ImagePixelExtractingEstimator
.ColorBits.All, interleavedColors: true).Transform(pixels);
875
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped",
ImagePixelExtractingEstimator
.ColorBits.All).Transform(cropped);
878
ImagePixelExtractingEstimator
.ColorBits.All).Transform(pixels);