41 references to Bgra32
Microsoft.ML.ImageAnalytics (6)
ImagePixelExtractor.cs (1)
368MLPixelFormat.Bgra32 => (3, 2, 1, 0),
MLImage.cs (4)
83if (pixelFormat != MLPixelFormat.Bgra32 && pixelFormat != MLPixelFormat.Rgba32) 103SKBitmap image = new SKBitmap(new SKImageInfo(width, height, pixelFormat == MLPixelFormat.Bgra32 ? SKColorType.Bgra8888 : SKColorType.Rgba8888)); 267SKColorType.Bgra8888 => MLPixelFormat.Bgra32, 285return MLPixelFormat.Bgra32;
VectorToImageTransform.cs (1)
418dst = MLImage.CreateFromPixels(width, height, MLPixelFormat.Bgra32, imageData);
Microsoft.ML.OnnxTransformerTest (1)
OnnxTransformTests.cs (1)
616Image = MLImage.CreateFromPixels(Width, Height, MLPixelFormat.Bgra32, imageData);
Microsoft.ML.Samples (4)
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (1)
118Image = MLImage.CreateFromPixels(width, height, MLPixelFormat.Bgra32, imageData);
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScaleInMemory.cs (3)
45MLPixelFormat.Bgra32 => (3, 2, 1, 0), 53MLPixelFormat.Bgra32 => (3, 2, 1, 0), 110Image = MLImage.CreateFromPixels(width, height, MLPixelFormat.Bgra32, imageData);
Microsoft.ML.Tests (30)
ImagesTests.cs (30)
213MLPixelFormat.Bgra32 => (3, 2, 1, 0), 263MLPixelFormat.Bgra32 => (3, 2, 1, 0), 286MLPixelFormat.Bgra32 => (3, 2, 1, 0), 325Image = MLImage.CreateFromPixels(width, height, MLPixelFormat.Bgra32, imageData); 378MLPixelFormat.Bgra32 => (3, 2, 1, 0), 386MLPixelFormat.Bgra32 => (3, 2, 1, 0), 453MLPixelFormat.Bgra32 => (3, 2, 1, 0), 461MLPixelFormat.Bgra32 => (3, 2, 1, 0), 529MLPixelFormat.Bgra32 => (3, 2, 1, 0), 537MLPixelFormat.Bgra32 => (3, 2, 1, 0), 604MLPixelFormat.Bgra32 => (3, 2, 1, 0), 612MLPixelFormat.Bgra32 => (3, 2, 1, 0), 679MLPixelFormat.Bgra32 => (3, 2, 1, 0), 687MLPixelFormat.Bgra32 => (3, 2, 1, 0), 755MLPixelFormat.Bgra32 => (3, 2, 1, 0), 763MLPixelFormat.Bgra32 => (3, 2, 1, 0), 830MLPixelFormat.Bgra32 => (3, 2, 1, 0), 838MLPixelFormat.Bgra32 => (3, 2, 1, 0), 906MLPixelFormat.Bgra32 => (3, 2, 1, 0), 914MLPixelFormat.Bgra32 => (3, 2, 1, 0), 980MLPixelFormat.Bgra32 => (3, 2, 1, 0), 988MLPixelFormat.Bgra32 => (3, 2, 1, 0), 1033MLPixelFormat.Bgra32 => (3, 2, 1, 0), 1246Assert.True(image1.PixelFormat == MLPixelFormat.Rgba32 || image1.PixelFormat == MLPixelFormat.Bgra32); 1269Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(10, 10, MLPixelFormat.Bgra32, Array.Empty<byte>())); 1270Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(0, 10, MLPixelFormat.Bgra32, new byte[10])); 1271Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(10, 0, MLPixelFormat.Bgra32, new byte[10])); 1272Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(10, 10, MLPixelFormat.Bgra32, new byte[401])); 1309MLImage image = MLImage.CreateFromPixels(10, 10, MLPixelFormat.Bgra32, new byte[10 * 10 * 4]); 1315Assert.Equal(MLPixelFormat.Bgra32, image.PixelFormat);