40 references to Pixels
Microsoft.ML.ImageAnalytics (1)
ImagePixelExtractor.cs (1)
365
ReadOnlySpan<byte> pixelData = src.
Pixels
;
Microsoft.ML.Samples (2)
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScaleInMemory.cs (2)
42
ReadOnlySpan<byte> imageData = image.
Pixels
;
50
ReadOnlySpan<byte> grayImageData = grayImage.
Pixels
;
Microsoft.ML.Tests (37)
ImagesTests.cs (37)
210
ReadOnlySpan<byte> imageData = image.
Pixels
;
260
ReadOnlySpan<byte> imageData = grayImage.
Pixels
;
283
ReadOnlySpan<byte> imageData1 = transformedSingleImage.GrayImage.
Pixels
;
375
ReadOnlySpan<byte> restoredImageData = restoredImage.
Pixels
;
383
ReadOnlySpan<byte> croppedImageData = croppedImage.
Pixels
;
450
ReadOnlySpan<byte> restoredImageData = restoredImage.
Pixels
;
458
ReadOnlySpan<byte> croppedImageData = croppedImage.
Pixels
;
526
ReadOnlySpan<byte> restoredImageData = restoredImage.
Pixels
;
534
ReadOnlySpan<byte> croppedImageData = croppedImage.
Pixels
;
601
ReadOnlySpan<byte> restoredImageData = restoredImage.
Pixels
;
609
ReadOnlySpan<byte> croppedImageData = croppedImage.
Pixels
;
676
ReadOnlySpan<byte> restoredImageData = restoredImage.
Pixels
;
684
ReadOnlySpan<byte> croppedImageData = croppedImage.
Pixels
;
752
ReadOnlySpan<byte> restoredImageData = restoredImage.
Pixels
;
760
ReadOnlySpan<byte> croppedImageData = croppedImage.
Pixels
;
827
ReadOnlySpan<byte> restoredImageData = restoredImage.
Pixels
;
835
ReadOnlySpan<byte> croppedImageData = croppedImage.
Pixels
;
903
ReadOnlySpan<byte> restoredImageData = restoredImage.
Pixels
;
911
ReadOnlySpan<byte> croppedImageData = croppedImage.
Pixels
;
977
ReadOnlySpan<byte> restoredImageData = restoredImage.
Pixels
;
985
ReadOnlySpan<byte> croppedImageData = croppedImage.
Pixels
;
1030
ReadOnlySpan<byte> imageData = image.
Pixels
;
1244
Assert.Equal(image1.
Pixels
.ToArray(), image2.
Pixels
.ToArray());
1245
Assert.Equal(image1.Width * image1.Height * (image1.BitsPerPixel / 8), image1.
Pixels
.Length);
1253
using MLImage image3 = MLImage.CreateFromPixels(image1.Width, image1.Height, image1.PixelFormat, image1.
Pixels
);
1258
Assert.Equal(image1.
Pixels
.ToArray(), image3.
Pixels
.ToArray());
1325
Assert.Throws<InvalidOperationException>(() => image.
Pixels
[0]);
1339
Assert.Equal(image1.
Pixels
.ToArray(), image2.
Pixels
.ToArray());
1346
Assert.Equal(image1.
Pixels
.ToArray(), image2.
Pixels
.ToArray());
1348
Assert.Equal(image1.
Pixels
.ToArray(), image2.
Pixels
.ToArray());
1373
Assert.Equal(image1.
Pixels
.ToArray(), image2.
Pixels
.ToArray());