C# Класс Emgu.CV.Util.CvToolbox

Utilities class
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
GrayscalePalette System.Drawing.Imaging.ColorPalette

Private Properties

Свойство Тип Описание
GenerateGrayscalePalette System.Drawing.Imaging.ColorPalette
GetCode CvEnum.COLOR_CONVERSION
cvGetImageSubRect System.IntPtr

Открытые методы

Метод Описание
ColorPaletteToLookupTable ( System.Drawing.Imaging.ColorPalette pallette, Matrix &bTable, Matrix &gTable, Matrix &rTable, Matrix &aTable ) : void

Convert the color pallette to four lookup tables

GetColorCvtCode ( Type srcColorType, Type destColorType ) : CvEnum.COLOR_CONVERSION

Given the source and destination color type, compute the color conversion code for CvInvoke.cvCvtColor function

GetMatrixDepth ( Type typeOfDepth ) : CvEnum.MAT_DEPTH

Get the OpenCV matrix depth enumeration from depth type

GetMatrixFromDescriptors ( float descriptors ) : Matrix

Convert an array of descriptors to row by row matrix

GetMinMax ( IEnumerable points, Emgu.CV.Structure.MCvPoint3D64f &min, Emgu.CV.Structure.MCvPoint3D64f &max ) : void

Compute the minimum and maximum value from the points

GetModuleInfo ( String &pluginName, String &versionName ) : void

Returns information about one of or all of the registered modules

OptimizeCV ( bool enable ) : void

Enable or diable IPL optimization for opencv

Приватные методы

Метод Описание
GenerateGrayscalePalette ( ) : System.Drawing.Imaging.ColorPalette
GetCode ( Type srcType, Type destType ) : CvEnum.COLOR_CONVERSION
cvGetImageSubRect ( IntPtr imagePtr, Rectangle &rect ) : IntPtr

Описание методов

ColorPaletteToLookupTable() публичный статический Метод

Convert the color pallette to four lookup tables
public static ColorPaletteToLookupTable ( System.Drawing.Imaging.ColorPalette pallette, Matrix &bTable, Matrix &gTable, Matrix &rTable, Matrix &aTable ) : void
pallette System.Drawing.Imaging.ColorPalette The color pallette to transform
bTable Matrix Lookup table for the B channel
gTable Matrix Lookup table for the G channel
rTable Matrix Lookup table for the R channel
aTable Matrix Lookup table for the A channel
Результат void

GetColorCvtCode() публичный статический Метод

Given the source and destination color type, compute the color conversion code for CvInvoke.cvCvtColor function
public static GetColorCvtCode ( Type srcColorType, Type destColorType ) : CvEnum.COLOR_CONVERSION
srcColorType System.Type The source color type. Must be a type inherited from IColor
destColorType System.Type The dest color type. Must be a type inherited from IColor
Результат CvEnum.COLOR_CONVERSION

GetMatrixDepth() публичный статический Метод

Get the OpenCV matrix depth enumeration from depth type
public static GetMatrixDepth ( Type typeOfDepth ) : CvEnum.MAT_DEPTH
typeOfDepth System.Type The depth of type
Результат CvEnum.MAT_DEPTH

GetMatrixFromDescriptors() публичный статический Метод

Convert an array of descriptors to row by row matrix
public static GetMatrixFromDescriptors ( float descriptors ) : Matrix
descriptors float An array of descriptors
Результат Matrix

GetMinMax() публичный статический Метод

Compute the minimum and maximum value from the points
public static GetMinMax ( IEnumerable points, Emgu.CV.Structure.MCvPoint3D64f &min, Emgu.CV.Structure.MCvPoint3D64f &max ) : void
points IEnumerable The points
min Emgu.CV.Structure.MCvPoint3D64f The minimum x,y,z values
max Emgu.CV.Structure.MCvPoint3D64f The maximum x,y,z values
Результат void

GetModuleInfo() публичный статический Метод

Returns information about one of or all of the registered modules
public static GetModuleInfo ( String &pluginName, String &versionName ) : void
pluginName String The list of names and versions of the optimized plugins that CXCORE was able to find and load
versionName String Information about the module(s), including version
Результат void

OptimizeCV() публичный статический Метод

Enable or diable IPL optimization for opencv
public static OptimizeCV ( bool enable ) : void
enable bool true to enable optimization, false to disable
Результат void

Описание свойств

GrayscalePalette публичное статическое свойство

The ColorPalette of Grayscale for Bitmap Format8bppIndexed
public static ColorPalette,System.Drawing.Imaging GrayscalePalette
Результат System.Drawing.Imaging.ColorPalette