24 references to BitsPerPixel
Microsoft.ML.Samples (1)
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScaleInMemory.cs (1)
58
int pixelSize = image.
BitsPerPixel
/ 8;
Microsoft.ML.Tests (23)
ImagesTests.cs (23)
217
int pixelSize = image.
BitsPerPixel
/ 8;
267
int pixelSize = grayImage.
BitsPerPixel
/ 8;
290
int pixelSize1 = transformedSingleImage.GrayImage.
BitsPerPixel
/ 8;
391
int pixelSize = restoredImage.
BitsPerPixel
/ 8;
466
int pixelSize = restoredImage.
BitsPerPixel
/ 8;
542
int pixelSize = restoredImage.
BitsPerPixel
/ 8;
617
int pixelSize = restoredImage.
BitsPerPixel
/ 8;
692
int pixelSize = restoredImage.
BitsPerPixel
/ 8;
768
int pixelSize = restoredImage.
BitsPerPixel
/ 8;
843
int pixelSize = restoredImage.
BitsPerPixel
/ 8;
919
int pixelSize = restoredImage.
BitsPerPixel
/ 8;
993
int pixelSize = restoredImage.
BitsPerPixel
/ 8;
1037
int pixelSize = image.
BitsPerPixel
/ 8;
1241
Assert.Equal(32, image1.
BitsPerPixel
);
1242
Assert.Equal(image1.
BitsPerPixel
, image2.
BitsPerPixel
);
1245
Assert.Equal(image1.Width * image1.Height * (image1.
BitsPerPixel
/ 8), image1.Pixels.Length);
1256
Assert.Equal(image1.
BitsPerPixel
, image3.
BitsPerPixel
);
1294
Assert.Equal(image1.
BitsPerPixel
, image2.
BitsPerPixel
);
1314
Assert.Equal(32, image.
BitsPerPixel
);
1324
Assert.Throws<InvalidOperationException>(() => image.
BitsPerPixel
);