C# 클래스 Features.ImageInfo

상속: IDisposable
파일 보기 프로젝트 열기: esheleg/PhotoSelect 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
GRAY_FILTER AForge.Imaging.Filters.Grayscale
MAX_GRAY_VALUE int
MAX_IMAGE_AREA int

공개 메소드들

메소드 설명
Dispose ( ) : void
ImageInfo ( ImageInfo from ) : System

DeepCopy Constructor

ImageInfo ( ImageInfo origIm, System.Drawing.Size newSize ) : System

Copyies _imGray with newSize, updates size and and null's the rest of the valeus

ImageInfo ( string path ) : System
conv2 ( ImageInfo im, int kernel ) : ImageInfo

runs a two dimentional convolution on im, where f is im and g is filter

conv2 ( int kernel ) : void

Runs a 2dim conv with kernel, saves res in getIm() and sets null to all other properties.

croppedSize ( System.Drawing.Size origSize ) : System.Drawing.Size

finds the propper width and height that will save the image proportion and will have an area <= MAX_IMAGE_AREA

getHist ( ) : Histogram
getIm ( ) : System.Drawing.Bitmap
getImF ( ) : float[]
getImb ( ) : byte[]
getPath ( ) : string
oirgIm2grayCropped ( System image ) : void

convers the image into a grayscaled bimap with an area

writeImage ( ImageInfo imInf ) : void

writes a jpg formated image from imInfo.getIm() into imInf.getPath() ****** IF EXISTS, WILL OVERWRITE THE imInf.getPath() image *******

writeImage ( ImageInfo imInf, string path ) : void

writes a jpg formated image from imInfo.getIm() into path ****** IF EXISTS, WILL OVERWRITE THE image in path*******

writeImage ( string path, System.Drawing.Bitmap im ) : void

writes a jpg formated image to path

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
ImageInfo ( System.Drawing.Bitmap imGray ) : System

this construr gets the _imGray of an ImageInfo in order to get another object of that image without any more data, can be used when running filters on images

copyHist ( Histogram from ) : Histogram

return a full depp copy

createHist ( ) : Histogram

**** THIS FUNCTION CAN BE CALLED ONLY ONES IN THE OBJECT LIFE TIME*** creates an AForge.Math.Histogram object from _imGray into _hist

createImb ( ) : byte[]

**** THIS FUNCTION CAN BE CALLED ONLY ONES IN THE OBJECT LIFE TIME*** creates an AForge.Math.Histogram object from _imGray into _hist

createImf ( ) : float[]

**** THIS FUNCTION CAN BE CALLED ONLY ONES IN THE OBJECT LIFE TIME*** creates an array with _imGray pixel values normalized(1) and saves it in _imf(float[])

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

ImageInfo() 공개 메소드

DeepCopy Constructor
public ImageInfo ( ImageInfo from ) : System
from ImageInfo Copied Source
리턴 System

ImageInfo() 공개 메소드

Copyies _imGray with newSize, updates size and and null's the rest of the valeus
public ImageInfo ( ImageInfo origIm, System.Drawing.Size newSize ) : System
origIm ImageInfo
newSize System.Drawing.Size
리턴 System

ImageInfo() 공개 메소드

public ImageInfo ( string path ) : System
path string
리턴 System

conv2() 공개 정적인 메소드

runs a two dimentional convolution on im, where f is im and g is filter
public static conv2 ( ImageInfo im, int kernel ) : ImageInfo
im ImageInfo f(t)
kernel int g(u-t)
리턴 ImageInfo

conv2() 공개 메소드

Runs a 2dim conv with kernel, saves res in getIm() and sets null to all other properties.
public conv2 ( int kernel ) : void
kernel int
리턴 void

croppedSize() 공개 메소드

finds the propper width and height that will save the image proportion and will have an area <= MAX_IMAGE_AREA
public croppedSize ( System.Drawing.Size origSize ) : System.Drawing.Size
origSize System.Drawing.Size
리턴 System.Drawing.Size

getHist() 공개 메소드

public getHist ( ) : Histogram
리턴 AForge.Math.Histogram

getIm() 공개 메소드

public getIm ( ) : System.Drawing.Bitmap
리턴 System.Drawing.Bitmap

getImF() 공개 메소드

public getImF ( ) : float[]
리턴 float[]

getImb() 공개 메소드

public getImb ( ) : byte[]
리턴 byte[]

getPath() 공개 메소드

public getPath ( ) : string
리턴 string

oirgIm2grayCropped() 공개 메소드

convers the image into a grayscaled bimap with an area
public oirgIm2grayCropped ( System image ) : void
image System
리턴 void

writeImage() 공개 정적인 메소드

writes a jpg formated image from imInfo.getIm() into imInf.getPath() ****** IF EXISTS, WILL OVERWRITE THE imInf.getPath() image *******
public static writeImage ( ImageInfo imInf ) : void
imInf ImageInfo the wanted image to save im imInf.getPath()
리턴 void

writeImage() 공개 정적인 메소드

writes a jpg formated image from imInfo.getIm() into path ****** IF EXISTS, WILL OVERWRITE THE image in path*******
public static writeImage ( ImageInfo imInf, string path ) : void
imInf ImageInfo the wanted image to save im imInf.getPath()
path string
리턴 void

writeImage() 공개 정적인 메소드

writes a jpg formated image to path
public static writeImage ( string path, System.Drawing.Bitmap im ) : void
path string
im System.Drawing.Bitmap
리턴 void

프로퍼티 상세

GRAY_FILTER 공개적으로 정적으로 프로퍼티

public static Grayscale,AForge.Imaging.Filters GRAY_FILTER
리턴 AForge.Imaging.Filters.Grayscale

MAX_GRAY_VALUE 공개적으로 정적으로 프로퍼티

public static int MAX_GRAY_VALUE
리턴 int

MAX_IMAGE_AREA 공개적으로 정적으로 프로퍼티

public static int MAX_IMAGE_AREA
리턴 int