C# Class Emgu.CV.Util.CvToolbox

Utilities class
Afficher le fichier Open project: genecyber/PredatorCV Class Usage Examples

Méthodes publiques

Свойство Type Description
GrayscalePalette System.Drawing.Imaging.ColorPalette

Private Properties

Свойство Type Description
GenerateGrayscalePalette System.Drawing.Imaging.ColorPalette
GetCode CvEnum.COLOR_CONVERSION
cvGetImageSubRect System.IntPtr

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GenerateGrayscalePalette ( ) : System.Drawing.Imaging.ColorPalette
GetCode ( Type srcType, Type destType ) : CvEnum.COLOR_CONVERSION
cvGetImageSubRect ( IntPtr imagePtr, Rectangle &rect ) : IntPtr

Method Details

ColorPaletteToLookupTable() public static méthode

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
Résultat void

GetColorCvtCode() public static méthode

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
Résultat CvEnum.COLOR_CONVERSION

GetMatrixDepth() public static méthode

Get the OpenCV matrix depth enumeration from depth type
public static GetMatrixDepth ( Type typeOfDepth ) : CvEnum.MAT_DEPTH
typeOfDepth System.Type The depth of type
Résultat CvEnum.MAT_DEPTH

GetMatrixFromDescriptors() public static méthode

Convert an array of descriptors to row by row matrix
public static GetMatrixFromDescriptors ( float descriptors ) : Matrix
descriptors float An array of descriptors
Résultat Matrix

GetMinMax() public static méthode

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
Résultat void

GetModuleInfo() public static méthode

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
Résultat void

OptimizeCV() public static méthode

Enable or diable IPL optimization for opencv
public static OptimizeCV ( bool enable ) : void
enable bool true to enable optimization, false to disable
Résultat void

Property Details

GrayscalePalette public_oe static_oe property

The ColorPalette of Grayscale for Bitmap Format8bppIndexed
public static ColorPalette,System.Drawing.Imaging GrayscalePalette
Résultat System.Drawing.Imaging.ColorPalette