Difference between revisions of "Code Reference"

From Emgu CV: OpenCV in .NET (C#, VB, C++ and more)
Jump to navigation Jump to search
m (Removed Syntax Highlights)
 
Line 1: Line 1:
 +
 
__NOTOC__
 
__NOTOC__
  
Line 7: Line 8:
 
[http://www.emgu.com/wiki/index.php/Camera_Calibration Camera Calibration] : Shows the use of the camera calibration method within EMGU,
 
[http://www.emgu.com/wiki/index.php/Camera_Calibration Camera Calibration] : Shows the use of the camera calibration method within EMGU,
  
::*<syntaxhighlight lang="csharp">Capture()</syntaxhighlight>
+
::*Capture()
::*<syntaxhighlight lang="csharp">CalibrateCamera()</syntaxhighlight>
+
::*CalibrateCamera()
::*<syntaxhighlight lang="csharp">FindChessboardCorners()</syntaxhighlight>
+
::*FindChessboardCorners()
::*<syntaxhighlight lang="csharp">IntrinsicCameraParameters</syntaxhighlight>
+
::*IntrinsicCameraParameters
::*<syntaxhighlight lang="csharp">ExtrinsicCameraParameters</syntaxhighlight>
+
::*ExtrinsicCameraParameters
  
 
[http://www.emgu.com/wiki/index.php?title=Stereo_Imaging Stereo Imaging] : Shows the use of the camera calibration StereoCalibrate method within EMGU,
 
[http://www.emgu.com/wiki/index.php?title=Stereo_Imaging Stereo Imaging] : Shows the use of the camera calibration StereoCalibrate method within EMGU,
  
::*<syntaxhighlight lang="csharp">Capture()</syntaxhighlight>
+
::*Capture()
::*<syntaxhighlight lang="csharp">FindChessboardCorners()</syntaxhighlight>
+
::*FindChessboardCorners()
::*<syntaxhighlight lang="csharp">StereoCalibrate()</syntaxhighlight>
+
::*StereoCalibrate()
::*<syntaxhighlight lang="csharp">cvStereoRectify()</syntaxhighlight>
+
::*cvStereoRectify()
::*<syntaxhighlight lang="csharp">IntrinsicCameraParameters</syntaxhighlight>
+
::*IntrinsicCameraParameters
::*<syntaxhighlight lang="csharp">ExtrinsicCameraParameters</syntaxhighlight>
+
::*ExtrinsicCameraParameters
::*<syntaxhighlight lang="csharp">cvStereoRectify()</syntaxhighlight>
+
::*cvStereoRectify()
::*<syntaxhighlight lang="csharp">StereoSGBM()</syntaxhighlight>
+
::*StereoSGBM()
::*<syntaxhighlight lang="csharp">ReprojectImageTo3D()</syntaxhighlight>
+
::*ReprojectImageTo3D()
  
  
Line 30: Line 31:
 
[http://www.emgu.com/wiki/index.php?title=Camera_Capture Capture: Camera] : Shows the use of the camera capture method to acquire images from a web cam or alternative connected device. This example uses a independent thread to deal with acquiring frames from the device.
 
[http://www.emgu.com/wiki/index.php?title=Camera_Capture Capture: Camera] : Shows the use of the camera capture method to acquire images from a web cam or alternative connected device. This example uses a independent thread to deal with acquiring frames from the device.
  
::*<syntaxhighlight lang="csharp">Capture()</syntaxhighlight>
+
::*Capture()
::*<syntaxhighlight lang="csharp">RetrieveBgrFrame()</syntaxhighlight>
+
::*RetrieveBgrFrame()
::*<syntaxhighlight lang="csharp">RetrieveGrayFrame()</syntaxhighlight>
+
::*RetrieveGrayFrame()
::*<syntaxhighlight lang="csharp">GetCaptureProperty()</syntaxhighlight>
+
::*GetCaptureProperty()
::*<syntaxhighlight lang="csharp">SetCaptureProperty()</syntaxhighlight>
+
::*SetCaptureProperty()
  
  
 
[http://www.emgu.com/wiki/index.php?title=Camera_Capture_-_Legacy Capture: Camera - Legacy] : Shows the use of the older use of the camera capture method to acquire images from a web cam or alternative connected device. This example uses the <code>Application.Idle</code> event to deal with acquiring frames from the device. This method is dependant on processing the form functions first.
 
[http://www.emgu.com/wiki/index.php?title=Camera_Capture_-_Legacy Capture: Camera - Legacy] : Shows the use of the older use of the camera capture method to acquire images from a web cam or alternative connected device. This example uses the <code>Application.Idle</code> event to deal with acquiring frames from the device. This method is dependant on processing the form functions first.
  
::*<syntaxhighlight lang="csharp">Capture()</syntaxhighlight>
+
::*Capture()
::*<syntaxhighlight lang="csharp">RetrieveBgrFrame()</syntaxhighlight>
+
::*RetrieveBgrFrame()
::*<syntaxhighlight lang="csharp">RetrieveGrayFrame()</syntaxhighlight>
+
::*RetrieveGrayFrame()
::*<syntaxhighlight lang="csharp">GetCaptureProperty()</syntaxhighlight>
+
::*GetCaptureProperty()
::*<syntaxhighlight lang="csharp">SetCaptureProperty()</syntaxhighlight>
+
::*SetCaptureProperty()
  
  
 
[http://www.emgu.com/wiki/index.php?title=Video_Files Capture: Video Files Capture] : Shows the use of the capture method to load videos save them from a web cam and look at individual frames. It also demostrates the use of the VideoWriter class.
 
[http://www.emgu.com/wiki/index.php?title=Video_Files Capture: Video Files Capture] : Shows the use of the capture method to load videos save them from a web cam and look at individual frames. It also demostrates the use of the VideoWriter class.
  
::*<syntaxhighlight lang="csharp">Capture()</syntaxhighlight>
+
::*Capture()
::*<syntaxhighlight lang="csharp">VideoWriter</syntaxhighlight>
+
::*VideoWriter
::*<syntaxhighlight lang="csharp">RetrieveBgrFrame()</syntaxhighlight>
+
::*RetrieveBgrFrame()
::*<syntaxhighlight lang="csharp">RetrieveGrayFrame()</syntaxhighlight>
+
::*RetrieveGrayFrame()
::*<syntaxhighlight lang="csharp">GetCaptureProperty()</syntaxhighlight>
+
::*GetCaptureProperty()
::*<syntaxhighlight lang="csharp">SetCaptureProperty()</syntaxhighlight>
+
::*SetCaptureProperty()
::*<syntaxhighlight lang="csharp">WriteFrame()</syntaxhighlight>
+
::*WriteFrame()
  
  
Line 61: Line 62:
 
'''In Progress'''
 
'''In Progress'''
  
::*<syntaxhighlight lang="csharp">KinectCapture()</syntaxhighlight>
+
::*KinectCapture()
::*<syntaxhighlight lang="csharp">RetrieveBgrFrame()</syntaxhighlight>
+
::*RetrieveBgrFrame()
::*<syntaxhighlight lang="csharp">RetrieveGrayFrame()</syntaxhighlight>
+
::*RetrieveGrayFrame()
::*<syntaxhighlight lang="csharp">RetrieveDisparityMap()</syntaxhighlight>
+
::*RetrieveDisparityMap()
::*<syntaxhighlight lang="csharp">RetrieveDisparityMap32f()</syntaxhighlight>
+
::*RetrieveDisparityMap32f()
::*<syntaxhighlight lang="csharp">RetrieveValidDepthMap()</syntaxhighlight>
+
::*RetrieveValidDepthMap()
::*<syntaxhighlight lang="csharp">RetrieveDepthMap()</syntaxhighlight>
+
::*RetrieveDepthMap()
::*<syntaxhighlight lang="csharp">RetrievePointCloudMap()</syntaxhighlight>
+
::*RetrievePointCloudMap()
::*<syntaxhighlight lang="csharp">GetColorPoints()</syntaxhighlight>
+
::*GetColorPoints()
::*<syntaxhighlight lang="csharp">GetMaxDisparity()</syntaxhighlight>
+
::*GetMaxDisparity()
::*<syntaxhighlight lang="csharp">GetOpenNIContext()</syntaxhighlight>
+
::*GetOpenNIContext()
  
  
Line 80: Line 81:
 
'''In Progress'''
 
'''In Progress'''
  
::*<syntaxhighlight lang="csharp">Bgr</syntaxhighlight>
+
::*Bgr
::*<syntaxhighlight lang="csharp">Bgra</syntaxhighlight>
+
::*Bgra
::*<syntaxhighlight lang="csharp">Gray</syntaxhighlight>
+
::*Gray
::*<syntaxhighlight lang="csharp">Hls</syntaxhighlight>
+
::*Hls
::*<syntaxhighlight lang="csharp">Hsv</syntaxhighlight>
+
::*Hsv
::*<syntaxhighlight lang="csharp">IColor</syntaxhighlight>
+
::*IColor
::*<syntaxhighlight lang="csharp">Lab</syntaxhighlight>
+
::*Lab
::*<syntaxhighlight lang="csharp">Luv</syntaxhighlight>
+
::*Luv
::*<syntaxhighlight lang="csharp">Rgb</syntaxhighlight>
+
::*Rgb
::*<syntaxhighlight lang="csharp">Rgba</syntaxhighlight>
+
::*Rgba
::*<syntaxhighlight lang="csharp">Xyz</syntaxhighlight>
+
::*Xyz
::*<syntaxhighlight lang="csharp">Ycc</syntaxhighlight>
+
::*Ycc
  
 
[http://www.emgu.com/wiki/index.php?title=DenseHistogram DenseHistogram] : Shows the use of OpenCV Dense histogram method  
 
[http://www.emgu.com/wiki/index.php?title=DenseHistogram DenseHistogram] : Shows the use of OpenCV Dense histogram method  
Line 97: Line 98:
 
'''In Progress'''
 
'''In Progress'''
  
::*<syntaxhighlight lang="csharp">Calculate etc</syntaxhighlight>
+
::*Calculate etc
  
  
Line 103: Line 104:
  
 
'''In Progress'''
 
'''In Progress'''
::*<syntaxhighlight lang="csharp">Calculate</syntaxhighlight>
+
::*Calculate
::*<syntaxhighlight lang="csharp">Correction</syntaxhighlight>
+
::*Correction
::*<syntaxhighlight lang="csharp">Apply</syntaxhighlight>
+
::*Apply
  
  
Line 112: Line 113:
 
[http://www.emgu.com/wiki/index.php?title=Background_Image Background Image]Shows the use of the <code>RunningAvg()</code> to forms a background image of stationary objects within a camera field of view. This can be used for motion tracking purposes with background subtraction.
 
[http://www.emgu.com/wiki/index.php?title=Background_Image Background Image]Shows the use of the <code>RunningAvg()</code> to forms a background image of stationary objects within a camera field of view. This can be used for motion tracking purposes with background subtraction.
  
::*<syntaxhighlight lang="csharp">AbsDiff()</syntaxhighlight>
+
::*AbsDiff()
::*<syntaxhighlight lang="csharp">RunningAvg()</syntaxhighlight>
+
::*RunningAvg()
::*<syntaxhighlight lang="csharp">ThresholdBinary()</syntaxhighlight>
+
::*ThresholdBinary()
::*<syntaxhighlight lang="csharp">ToBitmap()</syntaxhighlight>
+
::*ToBitmap()
  
  
 
[http://www.emgu.com/wiki/index.php?title=CompareImages_-_Difference Compare Images: Difference]Shows the use of the <code>AbsDiff()</code> to compare two images, in this case the current frame and previous frame from a web camera. This can be used for motion tracking purposes. This example can be combined with the [http://www.emgu.com/wiki/index.php?title=Background_Image Background Image] example.
 
[http://www.emgu.com/wiki/index.php?title=CompareImages_-_Difference Compare Images: Difference]Shows the use of the <code>AbsDiff()</code> to compare two images, in this case the current frame and previous frame from a web camera. This can be used for motion tracking purposes. This example can be combined with the [http://www.emgu.com/wiki/index.php?title=Background_Image Background Image] example.
  
::*<syntaxhighlight lang="csharp">AbsDiff()</syntaxhighlight>
+
::*AbsDiff()
::*<syntaxhighlight lang="csharp">ThresholdBinary()</syntaxhighlight>
+
::*ThresholdBinary()
::*<syntaxhighlight lang="csharp">FindContours()</syntaxhighlight>
+
::*FindContours()
::*<syntaxhighlight lang="csharp">ToBitmap()</syntaxhighlight>
+
::*ToBitmap()
  
 
==VideoWriter==
 
==VideoWriter==
Line 129: Line 130:
 
See [http://www.emgu.com/wiki/index.php?title=Video_Files Capture: Video Files Capture] : Shows the use of the capture method to load videos save them from a web cam and look at individual frames. It also demostrates the use of the VideoWriter class.
 
See [http://www.emgu.com/wiki/index.php?title=Video_Files Capture: Video Files Capture] : Shows the use of the capture method to load videos save them from a web cam and look at individual frames. It also demostrates the use of the VideoWriter class.
  
::*<syntaxhighlight lang="csharp">VideoWriter</syntaxhighlight>
+
::*VideoWriter
::*<syntaxhighlight lang="csharp">WriteFrame()</syntaxhighlight>
+
::*WriteFrame()

Latest revision as of 11:30, 5 March 2013


C#

Camera Calibration

Camera Calibration : Shows the use of the camera calibration method within EMGU,

  • Capture()
  • CalibrateCamera()
  • FindChessboardCorners()
  • IntrinsicCameraParameters
  • ExtrinsicCameraParameters

Stereo Imaging : Shows the use of the camera calibration StereoCalibrate method within EMGU,

  • Capture()
  • FindChessboardCorners()
  • StereoCalibrate()
  • cvStereoRectify()
  • IntrinsicCameraParameters
  • ExtrinsicCameraParameters
  • cvStereoRectify()
  • StereoSGBM()
  • ReprojectImageTo3D()


Capture

Capture: Camera : Shows the use of the camera capture method to acquire images from a web cam or alternative connected device. This example uses a independent thread to deal with acquiring frames from the device.

  • Capture()
  • RetrieveBgrFrame()
  • RetrieveGrayFrame()
  • GetCaptureProperty()
  • SetCaptureProperty()


Capture: Camera - Legacy : Shows the use of the older use of the camera capture method to acquire images from a web cam or alternative connected device. This example uses the Application.Idle event to deal with acquiring frames from the device. This method is dependant on processing the form functions first.

  • Capture()
  • RetrieveBgrFrame()
  • RetrieveGrayFrame()
  • GetCaptureProperty()
  • SetCaptureProperty()


Capture: Video Files Capture : Shows the use of the capture method to load videos save them from a web cam and look at individual frames. It also demostrates the use of the VideoWriter class.

  • Capture()
  • VideoWriter
  • RetrieveBgrFrame()
  • RetrieveGrayFrame()
  • GetCaptureProperty()
  • SetCaptureProperty()
  • WriteFrame()


Capture: Kinect : Shows the use of the camera capture method to acquire images from a Microsoft Kinect Device.

In Progress

  • KinectCapture()
  • RetrieveBgrFrame()
  • RetrieveGrayFrame()
  • RetrieveDisparityMap()
  • RetrieveDisparityMap32f()
  • RetrieveValidDepthMap()
  • RetrieveDepthMap()
  • RetrievePointCloudMap()
  • GetColorPoints()
  • GetMaxDisparity()
  • GetOpenNIContext()


Color

Color Conversion & Correction Shows the use of different image formats. Converting between them, getting image information, and applying colour filtering and correction.

In Progress

  • Bgr
  • Bgra
  • Gray
  • Hls
  • Hsv
  • IColor
  • Lab
  • Luv
  • Rgb
  • Rgba
  • Xyz
  • Ycc

DenseHistogram : Shows the use of OpenCV Dense histogram method

In Progress

  • Calculate etc


HistogramShows the use of C# histogram method

In Progress

  • Calculate
  • Correction
  • Apply


Image

Background ImageShows the use of the RunningAvg() to forms a background image of stationary objects within a camera field of view. This can be used for motion tracking purposes with background subtraction.

  • AbsDiff()
  • RunningAvg()
  • ThresholdBinary()
  • ToBitmap()


Compare Images: DifferenceShows the use of the AbsDiff() to compare two images, in this case the current frame and previous frame from a web camera. This can be used for motion tracking purposes. This example can be combined with the Background Image example.

  • AbsDiff()
  • ThresholdBinary()
  • FindContours()
  • ToBitmap()

VideoWriter

See Capture: Video Files Capture : Shows the use of the capture method to load videos save them from a web cam and look at individual frames. It also demostrates the use of the VideoWriter class.

  • VideoWriter
  • WriteFrame()