C# Class Emgu.CV.Util.CvToolbox

Utilities class
ファイルを表示 Open project: genecyber/PredatorCV Class Usage Examples

Public Properties

Property Type Description
GrayscalePalette System.Drawing.Imaging.ColorPalette

Private Properties

Property Type Description
GenerateGrayscalePalette System.Drawing.Imaging.ColorPalette
GetCode CvEnum.COLOR_CONVERSION
cvGetImageSubRect System.IntPtr

Public Methods

Method 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

Method 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 method

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
return void

GetColorCvtCode() public static method

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
return CvEnum.COLOR_CONVERSION

GetMatrixDepth() public static method

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

GetMatrixFromDescriptors() public static method

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

GetMinMax() public static method

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
return void

GetModuleInfo() public static method

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
return void

OptimizeCV() public static method

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

Property Details

GrayscalePalette public_oe static_oe property

The ColorPalette of Grayscale for Bitmap Format8bppIndexed
public static ColorPalette,System.Drawing.Imaging GrayscalePalette
return System.Drawing.Imaging.ColorPalette