vrosnet / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 1 forks source link

HighPrecisionBackgroundModeling with Noise Suppression Off and Highlight Motion Region On #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open MotionDetection Sample application
2. Change parameter suppressNoise to constructor to false in

private void detector2ToolStripMenuItem_Click( object sender, EventArgs e )
{
  detectorType = 2;
  SetMotionDetector( new BackgroundModelingHighPrecisionMotionDetector(
  highlightMotionRegionsToolStripMenuItem.Checked, true ) );
}

3. Enable highlight motion regions, activate Detector 2 to see the 
exceptions in debug window.  Disable highlight motion regions, all 
are OK.

This problem is in previous versions prior to 1.6.2 as well.

In the ProcessFrame method of HighPrecisionBackgroundModeling class 

if ( highlightMotionRegions )
{
...
AForge.Win32.memcpy( tempFrame, currentFrame, frameSize );
...
}

but tempFrame is set to IntPtr.Zero when suppressNoise=false

Original issue reported on code.google.com by allen.t...@hotmail.com on 6 Mar 2008 at 7:25

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 13 May 2008 at 6:41

GoogleCodeExporter commented 8 years ago
HighPrecisionBackgroundModeling class is fixed to handle correctly the case 
when 
noise suppression is off and motion edges highlighting is on.

Committed in revision 477. Will be released in version 1.6.3

Original comment by andrew.k...@gmail.com on 18 May 2008 at 9:50

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 19 May 2008 at 6:00

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 19 May 2008 at 6:08