C# Class CNTK.CntkBitmapExtensions

Mostrar archivo Open project: Microsoft/CNTK

Public Methods

Method Description
ExtractCHW ( this image ) : List

Extracts image pixels in CHW

ExtractHWC ( this image ) : List

Extracts image pixels in HWC

ParallelExtractCHW ( this image ) : List

Extracts image pixels in CHW using parallelization

ParallelExtractHWC ( this image ) : List

Extracts image pixels in HWC using multiple threads

Resize ( this image, int width, int height, bool useHighQuality ) : Bitmap

Resizes an image

Private Methods

Method Description
GetPixelMapper ( PixelFormat pixelFormat, int heightStride ) : Func

Returns a function for extracting the R-G-B values properly from an image based on its pixel format

Method Details

ExtractCHW() public static method

Extracts image pixels in CHW
public static ExtractCHW ( this image ) : List
image this The bitmap image to extract features from
return List

ExtractHWC() public static method

Extracts image pixels in HWC
public static ExtractHWC ( this image ) : List
image this The bitmap image to extract features from
return List

ParallelExtractCHW() public static method

Extracts image pixels in CHW using parallelization
public static ParallelExtractCHW ( this image ) : List
image this The bitmap image to extract features from
return List

ParallelExtractHWC() public static method

Extracts image pixels in HWC using multiple threads
public static ParallelExtractHWC ( this image ) : List
image this The bitmap image to extract features from
return List

Resize() public static method

Resizes an image
public static Resize ( this image, int width, int height, bool useHighQuality ) : Bitmap
image this The image to resize
width int New width in pixels
height int New height in pixesl
useHighQuality bool Resize quality
return System.Drawing.Bitmap