Class Mask
Represents an operator that sets all pixels which are not in the operation mask to a fixed value, for each image in the sequence.
public class Mask : Transform<Tuple<IplImage, IplImage>, IplImage>
- Inheritance
-
Mask
- Inherited Members
Properties
FillValue
Gets or sets the value to which all pixels that are not in the operation mask will be set to.
public Scalar FillValue { get; set; }
Property Value
Methods
Process(IObservable<Tuple<IplImage, IplImage, IplImage>>)
Sets all pixels which are not in the operation mask to the background image, for each foreground image in the observable sequence.
public IObservable<IplImage> Process(IObservable<Tuple<IplImage, IplImage, IplImage>> source)
Parameters
source
IObservable<Tuple<IplImage, IplImage, IplImage>>A sequence of triples where the first value contains the image to be masked, the second value contains the operation mask, and the third value contains the background image. The zero values of the mask indicate which pixels in the image should be set to the corresponding pixel values in the background.
Returns
- IObservable<IplImage>
A sequence of IplImage objects where all zero pixels in the mask have been replaced by the pixels in the background image.
Process(IObservable<Tuple<IplImage, IplImage>>)
Sets all pixels which are not in the operation mask to a fixed value, for each image in an observable sequence.
public override IObservable<IplImage> Process(IObservable<Tuple<IplImage, IplImage>> source)
Parameters
source
IObservable<Tuple<IplImage, IplImage>>A sequence of pairs where the first value contains the images to be masked, and the second value contains the operation mask. The zero values of the mask indicate which pixels in the image should be set to the specified fill value.
Returns
- IObservable<IplImage>
A sequence of IplImage objects where all zero pixels in the mask have been set to the specified fill value.