kadorek / aforge

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

Add filter overload to motion detector processing #247

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've done this already and it's working well - thought you might want to add it 
into the library. Basically add a filter overload for ProcessFrame() that takes 
the unmanaged image and a filter. 

In the ProcessFrame method i'm then calling:

if (filter!=null)
    detector.ProcessFrame(filter.Apply(videoFrame));
else
    detector.ProcessFrame(videoFrame);

... I'm passing in an HSLFiltering object which means that the motion detector 
then tracks only colors or luminosity ranges, with the motion overlay being 
applied to the original frame. I'm using this in iSpy for detecting flames, 
smoke and fevers (using thermal imaging cameras), whilst ignoring movement from 
other sources. It may also be useful for tracking objects and also useful for 
ignoring shadows and swaying trees (as you can exclude the colour range).

Original issue reported on code.google.com by sean.p.t...@gmail.com on 26 Aug 2011 at 4:44

GoogleCodeExporter commented 8 years ago
... could alternatively change it to take 2 unmanaged images- one for adding 
the overlay, the other for processing, so you can then do whatever you like to 
the image for processing (a combination of different filters for example) and 
get the motion detection layer applied to the source image...

Original comment by sean.p.t...@gmail.com on 26 Aug 2011 at 12:16

GoogleCodeExporter commented 8 years ago
Here's a link of what this does:

http://www.ispyconnect.com/userguide-motion-detection.aspx#4

Original comment by ad...@developerinabox.com on 1 Sep 2011 at 10:05