E.Chalaron schrieb:
> Talking of what .....
> There is a scratch remover under AVISYNTH......... for windows... 
>   
Such a filter is easy to implement:

let

 p0
 p1
 p2


be vertical neighbour-pixels. Dropouts are horizontal lines, with either 
black or white color (it is the same for bad Sat-TV reception...). 
Dropouts are outside of p0 and p2...

so you can do a filter like this:

if( (p1<p0 && p1<p2 ) || ( p1>p0 && p1>p2) )
{
   // this could be a dropout... but it could be OK, too...
   if( p1>white_threshold || p1<black_threshold )
   {
   // now it is very unlikly that we filter something other than a 
drop-out...
   p1 = (p0+p2)/2
   // could use something better than linear interpolation...
   }
}


To make this filter even less prone to detection-errors one could 
implement a pixel-counter, too and only filter detected drop-outs longer 
than xyz-pixels. BTW: I would implement a filter like this but my job 
hinders me doing real work, currently... *g*

cu
Stefan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to