Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Working on unit tests and documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarsouza committed Aug 15, 2015
1 parent 70cee79 commit 2a2b63a
Show file tree
Hide file tree
Showing 29 changed files with 2,537 additions and 2,586 deletions.
2 changes: 0 additions & 2 deletions Samples/Audio/Fourier (FFT)/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Samples/Audio/Fourier (FFT)/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ void btnStart_Click(object sender, EventArgs e)
source.NewFrame += source_NewFrame;
source.AudioSourceError += source_AudioSourceError;


// Start it!
source.Start();
}
Expand Down
3 changes: 0 additions & 3 deletions Samples/Imaging/Hough Transform/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ private void openToolStripMenuItem_Click(object sender, EventArgs e)
Bitmap image = AForge.Imaging.Image.Clone(tempImage, PixelFormat.Format24bppRgb);
tempImage.Dispose();

// format image
AForge.Imaging.Image.FormatImage(ref image);

// lock the source image
BitmapData sourceData = image.LockBits(
new Rectangle(0, 0, image.Width, image.Height),
Expand Down
8 changes: 4 additions & 4 deletions Samples/Video/Two Cameras/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ private void stopButton_Click(object sender, EventArgs e)
private void StartCameras()
{
// create first video source
VideoCaptureDevice videoSource1 = new VideoCaptureDevice(videoDevices[camera1Combo.SelectedIndex].MonikerString);
videoSource1.DesiredFrameRate = 10;
var videoSource1 = new VideoCaptureDevice(videoDevices[camera1Combo.SelectedIndex].MonikerString);
// videoSource1.DesiredFrameRate = 10;

videoSourcePlayer1.VideoSource = videoSource1;
videoSourcePlayer1.Start();
Expand All @@ -126,8 +126,8 @@ private void StartCameras()
{
System.Threading.Thread.Sleep(500);

VideoCaptureDevice videoSource2 = new VideoCaptureDevice(videoDevices[camera2Combo.SelectedIndex].MonikerString);
videoSource2.DesiredFrameRate = 10;
var videoSource2 = new VideoCaptureDevice(videoDevices[camera2Combo.SelectedIndex].MonikerString);
// videoSource2.DesiredFrameRate = 10;

videoSourcePlayer2.VideoSource = videoSource2;
videoSourcePlayer2.Start();
Expand Down
Loading

0 comments on commit 2a2b63a

Please sign in to comment.