process
public CvStage.Result process(CvPipeline pipeline)
throws java.lang.Exception
Description copied from class: CvStage
Perform an operation in a pipeline. Typical implementations will call
CvPipeline#getWorkingImage(), perform some type of operation on the image and will return a
Result containing a modified image and model data about features found in the image.
If the stage only modifies the working image, it is sufficient to just return null, and this
will typically be the most common case.
- Specified by:
process
in class CvStage
- Returns:
- Null or a Result object containing an optional image and optional model. If the
return value is null the pipeline will store a copy of the working image as the
result for this stage. Otherwise it will set the working image to the result image
and store the result image.
- Throws:
java.lang.Exception