C# 클래스 Encog.Util.DownSample.RGBDownsample

Downsample an image keeping the RGB colors.
상속: IDownSample
파일 보기 프로젝트 열기: encog/encog-silverlight-core

공개 메소드들

메소드 설명
DownSample ( Bitmap image, int height, int width ) : double[]

Called to downsample the image and store it in the down sample component.

DownSampleRegion ( int x, int y ) : void

Called to downsample a region of the image.

FindBounds ( ) : void

This method is called to automatically crop the image so that whitespace is removed.

ProcessImage ( Bitmap image ) : void

Process the image and prepare it to be downsampled.

비공개 메소드들

메소드 설명
HLineClear ( int y ) : bool

This method is called internally to see if there are any pixels in the given scan line. This method is used to perform autocropping.

VLineClear ( int x ) : bool

This method is called internally to see if there are any pixels in the given scan line. This method is used to perform autocropping.

메소드 상세

DownSample() 공개 메소드

Called to downsample the image and store it in the down sample component.
public DownSample ( Bitmap image, int height, int width ) : double[]
image System.Drawing.Bitmap The image to downsample.
height int The height to downsample to.
width int THe width to downsample to.
리턴 double[]

DownSampleRegion() 공개 메소드

Called to downsample a region of the image.
public DownSampleRegion ( int x, int y ) : void
x int The x coordinate of the resulting downsample.
y int The y coordinate of the resulting downsample.
리턴 void

FindBounds() 공개 메소드

This method is called to automatically crop the image so that whitespace is removed.
public FindBounds ( ) : void
리턴 void

ProcessImage() 공개 메소드

Process the image and prepare it to be downsampled.
public ProcessImage ( Bitmap image ) : void
image System.Drawing.Bitmap The image to downsample.
리턴 void