Code Reference

From Emgu CV: OpenCV in .NET (C#, VB, C++ and more)
Jump to navigation Jump to search


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()