MV Color DirectShow Filter
The MontiVision Color filter is used to
filter out colours in images. Therefore the original image colours
are converted into the desired colour format, which can be RGB,
HSV, HLS, XYZ, YCrCb or YUV. The colours are converted back into
the original colour format after the image is processed. A band
pass or band reject filter can be applied to every colour channel.
Either the filtered out colour channel is set to the minimum or the
maximum value of the colour format or all pixel channels are
modified.
Color channel sequences and ranges
|
|
Channel 1 |
Range |
Channel 2 |
Range |
Channel 3 |
Range |
| RGB |
B |
0.0 - 255.0 |
G |
0.0 - 255.0 |
R |
0.0 - 255.0 |
| HSV |
H |
0.0 - 360.0 |
S |
0.0 - 1.0 |
V |
0.0 - 1.0 |
| HLS |
H |
0.0 - 360.0 |
L |
0.0 - 1.0 |
S |
0.0 - 1.0 |
| XYZ |
X |
0.0 - 255.0 |
Y |
0.0 - 255.0 |
Z |
0.0 - 255.0 |
| YCrCb |
Y |
0.0 - 255.0 |
Cr |
0.0 - 255.0 |
Cb |
0.0 - 255.0 |
| YUV |
Y |
0.0 - 255.0 |
U |
0.0 - 255.0 |
V |
0.0 - 255.0 |
| File: |
color.ax |
| CLSID: |
CLSID_MVColor |
Supported Interfaces
IMVColor
IMVHistogram
IMVHistogram2
IMVHistogram3
IMVRegionOfInterest
IMVFilterData
IMVAbout
IMVFilterInfo
Supported COM Events
The filter supports following events through the IMVFilterEvents interface.
Look at the filter events page
for more information.
| Event
|
Value
|
Description
|
| MV_ALGORITHM_START_EVENT |
0
|
A filter starts processing a video frame or sample. |
| MV_ALGORITHM_END_EVENT |
1
|
A filter finishes processing a video frame or sample. |
MV Color Filter Property Page
Uses the IMVColor
configuration interface.
| Color
Model |
Sets the color model to modify. |
| Modify
Channel |
Sets the color channel to modify. |
| Slider
"From" |
Used to adjust the beginning of the filtered area. |
| Slider
"To" |
Used to adjust the end of the filtered area. |
| Filter
type |
Sets the filter mode, "band pass" or "band reject". |
| Filter
mode |
Either only the channel of the modified pixel is modified
(Filter out channel) or all channels are modified (Filter out
pixel). |
| Filtered value |
Sets the modified channels to minimum or maximum of the
selected color system. (e.g. 0 or 255 for RGB) |
|