C# Класс Features.ImageInfo

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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