# DeSpot

#### DeSpot - Conditional Temporal Spot Removing Filter

Plugin for Avisynth 2.5
Version 3.6.3
Copyright (C)2003-2009 Alexander G. Balakhnin aka Fizick.
Modified by Firesledge from version 3.6.2
http://avisynth.org.ru

This filter is designed to remove temporal noise in the form of dots (spots) and streaks found in some videos. The filter is also useful for restoration (cleaning) of old telecined 8mm (and other) films from spots (from dust) and some stripes (scratches).

The plugin is based on Conditional Temporal Median Filter v.0.93 (C-plugin for Avisynth 2.5)
by Kevin Atkinson http://kevin.atkinson.dhs.org/temporal_median/
(This document is also based on his doc.)

### Example images

One half frame from my old 8mm film (top - before, bottom -after the filter):

Avisynth script for this example, which show work of old base filter version 0.93, but adapted to for new version 3.2.

    AviSource("film8mm.avi")
    LoadPlugin("despot.dll")
    ConvertToYV12()
    Crop(0,0,720,288) #to show test
    i = last
    # Compare half-frames with and without noise reduction
    DeSpot(p1=35, p2=14, pwidth=70, pheight=70, mthres=25, mwidth=20, mheight=15, interlaced=false,
      \  merode=33, ranked=false, p1percent=0, dilate=0, fitluma=false, blur=0, motpn=false, seg=0)
    StackVertical(i, last)

The same frame after some parameters using from more new filter version 1.0 (top half - with spot border blur, bottom half - with temporal smoothing in static areas):

Avisynth script for this example :

    AviSource("film8mm.avi")
    LoadPlugin("despot.dll")
    ConvertToYV12()
    Crop(0,0,720,288)
    # Compare frames with blur, and with and without temporal noise reduction
    i = last
    # Compare half-frames with and without noise reduction
    b = DeSpot(i, p1=35, p2=14, pwidth=70, pheight=70, mthres=25, mwidth=20, mheight=15, interlaced=false,
      \  merode=33, ranked=false, p1percent=0, dilate=0, fitluma=false, blur=4, motpn=false, seg=0)
    t = DeSpot(i, p1=35, p2=14, pwidth=70, pheight=70, mthres=25, mwidth=20, mheight=15, interlaced=false,
      \  merode=33, ranked=false, p1percent=0, dilate=0, fitluma=false, blur=4, motpn=false, seg=0, tsmooth=3)
    StackVertical(b, t)

Some new parameters are introduced in new filter versions, for more correct spot detection and artifacts-free spot removing.

### Needed software

1. The program is plugin (filter) for free Avisynth 2.5 (http://www.avisynth.org). Tested with versions 2.5.3 - 2.5.8.
2. Old filter versions prior 2.0 (up to last 1.3) were is needed in Avisynth C Interface (avithynth_c.dll) by Kevin Atkinson. There were some problems with it.
3. New filter since version 2.0 is native Avisynth plugin and is NOT needed in C-interface.

### USAGE

DeSpot may be loaded as any Avisynth plugin, or by putting it in the Plugins directory or by using LoadPlugin. Clip must be YV12 or special planar YUY2 format. Basic Usage:

    AviSource("d:\video.avi")
    LoadPlugin("despot.dll")
    ConvertToYV12()
    DeSpot(p1=35, p2=14, mthres=25)

The filter may work in 2 main modes, switched by parameter median (since version 2.0):
median (true or false, default = false),
false - Spots removing mode - filter will attempt to identify noise and eliminate it.
true - Simple Median mode - filter will apply a simple temporal median filter to the non-moving areas of the image.

Function calling syntax:

`DeSpot`(clip, int "mthres", int "mwidth", int "mheight", int "merode", bool "interlaced", bool "median", int "p1", int "p2", int "pwidth", int "pheight", bool "ranked", int "sign", int "maxpts", int "p1percent", int "dilate", bool "fitluma", int "blur", int "tsmooth", int "show", int "mark_v", bool "show_chroma", bool "motpn", int "seg", bool "color", int "mscene", int "minpts", clip "extmask", bool "planar", string "outfile", bool "mc", int "spotmax1", int "spotmax2")

#### Parameters for DeSpot in spots removing mode are any of the following:

p1 (default 24)
p2 (default 12)
A pixel needs to be at different from its neighbors by at least 'P1' in order for it to be considered noise. The surrounding pixels must be different by at lease 'P2' in order for the pixel to be considered part of the same spot.

pwidth (default 6)
pheight (default 5)
A spot can be no larger than pwidth x pheight

ranked (true or false, default=true)
Enables ranked ordered difference spot detector with 6 points instead of 2.

sign (default 0)
Set mode for removing of only black or white spots or both:
sign = 0 - any spots and outliers (default)
sign = 1 - only black (dark) spots and outliers
sign = -1 - only white (light) spots and outliers
sign = 2 - only black (dark) spots, any outliers
sign = -2 - only white (light) spots, any outliers

maxpts (from 0 to 10000000, default=0 - no limit)
Set upper limit of points (pixels) per every spot.

minpts (from 0 to 10000000, default=0 - no limit)
Set lower limit of points (pixels) per every spot.

p1percent (from 0 to 100, default=10)
Set lower limit of relative fracture of high-contrasted (by criterion P1) pixels per spot (in percent).

dilate (from 0 to 255, default=1)
Set range of morphological dilate (growing) of removed spots (in pixel units).
fitluma (true or false, default=true)
Enables some frame luminosity correction in places of deleted spots

blur (from 0 to 4, default 1)
Value (length) of local spatial blur near borders of deleted spots
tsmooth (from 0 to 127, default 0)
Control temporal smoothing in static areas (except spots and motion).
Set approximate threshold of pixel luma variance in 3 frames,
The more variance exceed this threshold, the less temporal smoothing.
0 - no temporal smoothing.

motpn (true or false, default = true)
Define motion detecting method.
false - detect motion from previous to current and from current to next frame (old method used in all versions before 3.0)
true - detect motion from previous to next frame (new method since version 3.0)

seg (from 0 to 2, default=2)
Control spots segments removing method.
0 - remove only spots pixels which has no overlap with motion zones (old method used in all versions before 3.0, most strong removing);
1 - remove only spots line segments which has no any overlap with motion zones;
2 - remove only whole spots which has no any overlap with motion zones (most safe).

color (true of false, default = false)
Control color correction at place of removed spots .
true - change color of pixels at places of removed spots to mean value previous, current and next frames,
false - not change color of pixels at places of detected spots.

mscene (from 0 to 100, default=40)
Set percent of pixels in motion for scenechange detection and disabling of frame spot removal

extmask (default none)
Optional external mask clip. It will be binarized with threshold 127 and logically added (by "OR" operation) to internal motion mask. It can be used for additional protection of good objects (if you have some reliable mask).

#### Parameters of DeSpot for both spots removing and median modes are:

mthres (default 16)
A pixel needs to be different from the another frame by at least 'MTHRES' in order to be considered moving. This number should be larger than 'P2' in order to prevent noise from being identified as motion.

mwidth (default 7)
mheight (default 5)
These define the width and height of block for motion map denoising algorithm (erode and dilate stages).

merode (default = 33)
These define a threshold value of percent of motion pixels in the block at erode stage.

interlaced (true or false)
Whether to treat the video as interlaced or not (progressive). The default is false (progressive) for DeSpot since version 1.3. (In older versions, the Field based video was processed as interlaced by default - it was a bug).

To instead spots removing, show a motion map and noise that would of been eliminated, use parameter:
show (0, 1, 2, default=0)
0 - not show,
1 - to highlight the noise instead of removing it
2 - show a motion map and noise

If show=1, you may use additional parameter to change marks color and brightness,
mark_v (0 to 255, default= 255)
Where mark_v is the luma value to highlight the noise with.
The color (pink, green or grey) of noise spot now is depend from parity of mark_v.
Motion map is also shown.

If show=2, the luma is changed as follows:
255 (White): Noise that will be removed
159: Noise that won't be remove because it might be motion
95: Motion map for the current image

show_chroma (true or false)
Use to show clip color data on motion map.

planar : flag to use special planar color format for YUY2 clips both for input and output of function. It uses special trick for storing of frames with planar color data organization (separate Y, U, V planes in memory) in normal interleaved YUY2 frames format as a container. This way we can avoid numerous internal interleaved to planar conversions and increase speed. You can convert normal interleaved YUY2 source clip to planar format with `interleaved2planar` function from SSETools plugin of RemoveGrain package by Kassandro, and convert final result by `planar2interleaved` function. This special planar YUY2 format is also supported by Removegrain plugin by Kassandro, MaskTools2 plugin by Manao, MVTools v2 and some others. This trick will not be needed in Avisynth v2.6 with native support of planar YV16 format. This paramenter is ignored for YV12 clips. Default is planar=false (and you will get error for YUY2).

outfile: name of a generated file containing the detected spot locations. The file is in the .ASS subtitle file format. Spots are located with their bouding boxes drawn as magenta rectangles (dilated by 2 pixels in each direction relative to the actual bounding boxes, for clarity). The default `Outline` style can be later changed to `Mask` in an ASS editor (like Aegisub) to produce a mask made of rectangles filled with white. The file is overwritten at each filter run, so make a copy before editing it!

mc: Uses a 3-fold interleaved stream to allow motion-compensated analysis. Only the second frame every three frames is processed and returned. The input stream should be in the form: `Interleave (forward, original, backward)`, where `forward` and `backward` are the frames N-1 and N+1 reconstructed with motion compensation. See the MVTools 2 plug-in for more information.

spotmax1: When using outfile, sets a first limit on the number of spots. If it is greater than the parameter, locations are checked. If the spots look “packed”, it is likely a detection error and all spots are discareded (from the outfile file only, they are still processed)

spotmax2: Hard limit on the number of spots per frame to send to the outfile. If greater, all spots from the frame are discarded.

### TUNING THE PARMS

In order for the filter to work right the various parameters MUST be set correctly. There is no good default values.

The first parameter that needs to be set is interlaced, set it to true if your video is interlaced, false otherwise.

Than pwidth and pheight need to be set. Set these to be slightly larger than the specks you want to eliminate. If your video is interlaced than height represents the height of an individual field. Thus, it will essentially be doubled.

Than p1, p2, and mthres need to be set. In general, p1 > mthres > p2. If these are set too low than you may lose detail as small pixel variations might be mistaken as specks, thus losing detail, and more importantly, real specks might not be recognized as the size of the filter thinks the spec is might be larger than pwidth by pheight. show=1 or 2 might be helpful in setting these parameters.

The mwidth, mheight parameters define the range of motion zones influence on noise (spots) zones. For decreasing of false spot detecting for fast motion scenes, you may increase these. After that, to cancel the influence of very small motion zones, you may increase the merode parameter (relative) .

Than sign may be set, if almost all spots are only white or only black. Correct tuning reduces number of false spot detections and artifacts.

I recommend to use new parameter ranked=true for stability of spots detection in noisy video.

Use parameter maxpts as another method (in addition to pwidth and pheight) to avoid cleaning too large objects - probably not spots.

Use p1percent to not clean weak (small contrast) spots with small relative fracture of strong points (with p1 threshold).

For better removing of partially damaged pixels near non-sharp spots edges, you may increase spots sizes by increasing of dilate parameter.

Enable brightness correction in spaces of deleted spots by parameter fitluma.

This correction is local (line segment based) in seg>0 mode and must be used with properly defined dilated spots to prevent false correction due to non-sharp spots edges.

To reduce noticeability of some borders in places of deleted spots some more, tune local spatial smoothing by parameter blur.

For denoising of almost static areas, try to use temporal smoothing, with tsmooth parameter about 4-8.

If spots have some color, try enable color parameter to correct spots color.

To prevent artifacts at scene change, decrease mscene parameter.

You also may try to use external mask clip (extmask parameter) in addition to (or instead of) internal motion mask to protect good objects. For example, it can be motion mask or inverted SAD mask from MVTools plugin.

### HOW IT WORKS

#### The filter works in Denoise mode as follows:

1a) Find pixels that are different from its neighbors by at least p1.
If ranked parameter is true (new method from version 1.2), the 3 neighbors in previous frame (x-1, x, x+1) and same 3 neighbors in next frame are ranked (ordered by value), and those min and max are used for luma difference calculation for current pixel (x).
If ranked parameter is false (old method), the only 1 neighbor in previous frame (at same position x) and 1 neighbor in next frame are used for min and max calculation,
If sign parameter is not 0, the sign of difference is also taken into account.
These pixels are merged to horizontal line segments.
Stacked line segments are merged to spots.

1b) Enlarge outliers based on difference p2<p1.

2a) Determine the size of the specks and reject (will not clean) all those larger than pwidth x pheight.
If numpts parameter is set, the big spots are rejected also.
If p1percent parameter is set, then weak (by criterion p1) spots, which mostly consist of outliers (by criterion p2), are rejected also.

2b) If Dilate mode set, than spots are dilated to cover its non-contrast edges and close small gaps between its, by applying a morphological dilate operation to noise (spots) map.

3a) Find moving areas of an image by simply comparing each pixel to the another frame and considering all those which are greater than mthres.
If motpn=false, it is defined from previous to current frame,
if motpn=true, it is defined from previous to next frame.

3b) Mark motion pixels without noise with weight 3 in the motion map.
If motpn=false, mark pixels determined both noise and motion as weight 1 in the motion map.

4) Denoise the motion map by constrained erosion and then dilating (as a whole it is morphological opening operation).
During erode phase, the motion map is eroded with range mwidth/2 and mheight/2, and zones with small summary weight (less than 3*merode/100) are decreased or completely removed from motion map. Such zones correspond to small relative (in percent) numbers of motion neighbors within this range (or mostly noisy pixels -spots).
During dilate phase, remained motion zones are enlarged with same range. These are probably the most important steps (especially for motpn=false) .

4a) If percent of pixels in motion is more than mscene parameter, the plugin detects scenechange, and whole motion map is set as motion.

4b) Add optional external mask to motion mask.

5) Only remove the specks in which there was no motion (in the current frame or next frame if motpn=false).
In pixel removing mode (seg = 0), test and reject all noise candidate pixels which has overlap with motion zones, rest candidates will be removed.
In segment removing mode (seg = 1), test and reject all noise candidate segments which has any overlap with motion zones, rest segments will be removed.
In segment removing mode (seg = 2), test and reject all noise candidate spots which has any overlap with motion zones, rest spots will be removed. It is the most safe mode, with minimum artifacts false removing

6) Optional make luma correction in place of removed pixels and spatial smoothing near spot edges.

7) Optional make temporal smoothing of static areas.

8) Optional correction of color at place of spots.

#### The filter can also be configured to work as follows (Simple Median mode):

1) Find moving areas of an image by simply comparing each pixel to the previous frame and considering all those which are greater than mthres.

2) Denoise the motion map by erosion and then dilating (i.e. morphological opening). This is probably the most important step.

3) Apply a simple temporal median filter on the non-moving areas of the image.

### OPTIMIZATION NOTES

DeSpot since version 3.2 is optimized by hand for Integer SSE (Pentium3, Athlon is needed now).
Speed increasing up to about 30%.

### COMPILING

Firesledge's versions above 3.6.1 are compiled with MSVC++ 2005 (the Express version should work too) with MS Platform SDK.

Fizick's version above 1.1 is compiled by free MS VC++ Toolkit 2003 with MS Platform SDK.

Note: copy lost nmake.exe and cvtres.exe from Bin\win64 dir to Bin dir.

MS VC6, VC7 also may be used.

Use make file "makefile" with command: nmake

Old versions of the C-plugin up to 1.3 may be compiled with GCC-g++ 3.3.1, MinGW 3.0.0-1, MSYS 1.09. New versions above 2.0 can not be compiled so.

Now I use despot.cbp project for CodeBlock IDE.

### COMBINED USAGE

Very good results may be obtained with combined this filter with motion estimation and compensation: global motion with DePan plugin, or local motion with MVTools plugin.

In this case the pixels from previous and next frames are moved to best fit to current frame, therefore relative motion is decreased, false spots detection is decreased, and noise reduction is increased.

Example script with DePan 0.9 (you may tune optional DePanEstimate and DepanInterleave parameters):

    AviSource("h:\kino.avi")
    LoadPlugin("depan.dll")
    LoadPlugin("despot.dll")
    i = ConvertToYV12()
    d = DePanEstimate(i, trust=3)
    DePanInterleave(i, data=d)
    DeSpot(p1=30, p2=15, pwidth=800, pheight=600, mthres=20, motpn=true, dilate=1, seg=1)
    SelectEvery(3, 1)

Example simple script with MVTools v0.95 to 1.X (you may tune optional MVAnalyse, MVCompensate parameters):

    AviSource("h:\kino.avi")
    LoadPlugin("mvtools.dll")
    LoadPlugin("despot.dll")
    i = ConvertToYV12()
    vf = MVAnalyse(i, isb=false)
    f = MVCompensate(i, vf)
    vb = MVAnalyse(i, isb=true)
    b = MVCompensate(i, vb)
    Interleave(f, i, b)
    DeSpot(p1=30, p2=12, mthres=20, dilate=2, fitluma=true, blur=2, seg=2)
    SelectEvery(3,1)

Example script with external mask from MVTools plugin v2.3 and above (you may tune optional MAnalyse parameters):

    LoadPlugin("mvtools2.dll")
    LoadPlugin("ье_masktools-25.dll")
    LoadPlugin("degrainmedian.dll")
    LoadPlugin("despot.dll")

    AviSource("h:\kino.avi")
    i = ConvertToYV12()
    prefilt=i.DeGrainMedian() # prefiltered for better motion analysis

    # analyse and compensate motion forward and backward (to current frame)
    ml = 100     # mask scale
    thscd1 = 400 # scene change

    super=i.MSuper() # super clip
    superprefilt=prefilt.MSuper() # super filtered clip

    vf = superprefilt.MAnalyse(isb=false) # forward vectors
    cf = i.MFlow(super, vf, thscd1 = thscd1) # previous compensated forward
    sadf = i.MMask(vf, ml=ml,kind=1,gamma=1, thscd1 = thscd1) # forward SAD mask
    msadf=sadf.MT_Binarize(20, upper=true) # binary inverted forward SAD mask

    vb = superprefilt.MAnalyse(isb=true)  # backward vectors
    cb = i.MFlow(super, vb, thscd1 = thscd1) # next compensated backward
    sadb = i.MMask(vb, ml=ml, gamma=1, kind=1, thscd1 = thscd1) # backward SAD mask
    msadb = sadb.MT_Binarize(20, upper=true) # binary inverted backward SAD mask

    msad = MT_Logic(msadf,msadb,"or") # combined inverted SAD mask
    msad = msad.MT_Expand() # expanded inverted SAD mask
    msadi = Interleave(msad, msad, msad) # interleaved 3-frame inverted SAD mask
    # This mask is high (255) where at least one motion estimation is good,
    # so these areas will be protected

    Interleave(cf,i,cb) # interleave forward compensated, source, and backward compensated

    DeSpot(p1=30,p2=12,pwidth=800,pheight=600,mthres=20,merode=33,\
       sign=0,show=0,seg=0,color=true,motpn=true, extmask=msadi)

    SelectEvery(3,1) # get filtered source

### ADDITIONAL INFO

Discussion of ConditionalTemporalMedian filter and Despot filter : http://forum.doom9.org/showthread.php?s=&threadid=59388

### LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Documentation is distributed under CreativeCommons BY-SA 3.0 license.

Please consider to make some donation to be registered user.

### VERSIONS CHANGES LOG

- Version 3.6.3.0 (October 8, 2013):
  - Added the mc, spotmax1 and spotmax2 parameters.
- Version 3.6.2.0 (August 19, 2011):
  - Added the outfile parameter.
- Version 3.6.1.0 (June 11, 2010):
  - Fixed documentation example with MT_Binarize (Thanks to yauz for report).
- Version 3.6.1 (September 25, 2009):
  - Fixed memory bug for color, show, interlaced YV12 (thanks to Иван2009 for bug report).
- Version 3.6.0 (October 23, 2008):
  - Added planar option for YUY2 planar format.
  - Fixed memory leakage in constructor (for show modes).
  - Some changes to prevent crashes.
  - Finally fixed strange read access bug with extmask (extmask was disabled for motpn=true, seg=0 in v3.5.1)
- Version 3.5.1 (Dec 20, 2007):
  - Recompiled to fix strange read access bug. Thanks to Шушаника for report.
- Version 3.5.0 (July 14, 2006):
  - Corrected documentation example (msadb). Thanks to johnmeyer for report.
- Version 3.5 (November 26, 2005):
  - Added external motion mask clip option and example.
  - Changed default motpn=true (was really false, contrary to documentation).
- Version 3.4.0 (June 18, 2005):
  - Reformatted doc.
- Version 3.4 (April 11, 2005):
  - Added parameter minpts.
- Version 3.3.3 (March 30, 2005):
  - Fixed bug with median mode (thanks to slk001 for report).
- Version 3.3.2 (March 28, 2005):
  - More correct clip cache range (now =2 in place of undefined).
- Version 3.3.1 (October 8, 2004):
  - Fixed bugs with scene change detection..
- Version 3.3 (August 4, 2004):
  - Added mscene parameter for scene change detection.
- Changes 3.2 (July 4, 2004) from 3.1 (Fizick):
  - Corrected enabling and disabling of temporal smooth for some modes.
  - Changed temporal smooth method to more fast but simpler, new tsmooth is similar to old tsmooth*2.
  - Restored median mode processing as was before version 3.0.
  - Partial ISSE optimization for speed increasing (Pentium3 or Athlon is needed now).
  - Updated doc.
- Changes 3.1 (June 27, 2004) from 3.0 (Fizick):
  - Added color correction at place of removed spots.
- Changes 3.0 (June 22, 2004) from 2.1 (Fizick):
  - Version 3.0 is major release update (probably alpha with bugs):
  - Added another motion detection method "motpn" (previous to next frame).
  - Added segments removing methods "seg"=1,2.
  - Changed luma correction to local in segments (spots) removing mode.
  - Removed "mratio" parameter (reset as internal constant =3 as in all versions prior 2.1).
  - Changed some defaults.
  - Code reorganization.
  - Updated doc.
- Changes 2.1 (June 14, 2004) from 2.0 (Fizick):
  - Added parameter "mratio" parameter (it was internal =3 in all previous versions).
  - Changed default of "merode" to dependent from "mratio".
  - Updated doc.
  - At last I begin to understand how the filter works at motion denoising stage :-).
- Changes 2.0 (June 10, 2004) from 1.3 (Fizick):
  - Version 2.0 is major release update (probably alpha with bugs):
  - Main interface code is rewrited, and now filter is native Avisynth plugin (not C-plugin).
  - Added parameter "median" instead of DeSpotMedian function,
  - Added parameter "show" instead of DeSpotMark, DeSpotMap, DeSpotMedianMap functions.
  - Replaced parameter "mp" to parameter "merode" (relative)
  - Changed "p1percent" to integer
  - Updated doc.
- Changes 1.3 (June 7, 2004) from 1.2 (Fizick):
  - Removed parameter "weak" ( "p1percent" is more useful).
  - Added parameter "Dilate" to enlarge spots.
  - Fixed bug with processing field based video as interlaced by default - now default for any source is progressive.
  - Changed parameters order to more functional.
  - Changed default values of some parameters to more optimal.
  - Updated doc.
- Changes 1.2 (June 01, 2004) from 1.1 (Fizick):
  - Added parameters Ranked, weak, maxpts, p1percent,
  - changed mark mode to color spot with weak motion map.
- Changes 1.1 (May 31, 2004) from 1.0:
  - Source now is compatible with MS VC6, VC7.
- Changes 1.0 from 0.934 (Dec 30, 2003) (Fizick) (not public):
  - Added "tsmooth" parameter for temporal smoothing in static areas.
  - Changed filter name to DeSpot, filter file name to despot.dll,
  - and function names:
    ConditionalDenoise to DeSpot,
    ConditionalDenoiseMark to DeSpotMark,
    ConditionalDenoiseMap to DeSpotMap,
    ConditionalMedian to DeSpotMedian,
    ConditionalMedianMap to DeSpotMedianMap.
  - Corrected info.
- Changes 0.934 from 0.93c (Dec 20, 2003) (Fizick):
  - Added "fitluma" and "blur" parameters to reduce noticeability of deleted spots places.
  - Remove "per" parameter used previously for that.
  - New default value of "mp" parameter.
- Changes 0.93c from 0.93b (Nov 30, 2003)
  - More short filter name ctmedian.dll
  - Added version info to DLL
- Changes 0.93d from 0.93b (Nov 13, 2003) (Fizick, non public):
  - Added "per" parameter for more smoothed specks perimeter.
- Changes 0.93a from 0.93 (Nov 7, 2003) (Fizick, non public):
  - Added "sign" parameter for removing only black or white specks.
  - non optimized general version only.
- Changes 0.93 from 0.92 (Sep 27, 2003) (Kevin Atkinson)
  - Fix another nasty bug.
  - Included non optimized version.
  - Expanded the manual a bit
- Changes 0.92 from 0.91 (Sep 10, 2003) (Kevin Atkinson)
  - Fixed nasty bug.