enum cv::GrabCutModes

Overview

GrabCut algorithm flags. Moreā€¦

#include <imgproc.hpp>

enum GrabCutModes
{
    GC_INIT_WITH_RECT = 0,
    GC_INIT_WITH_MASK = 1,
    GC_EVAL           = 2,
};

Detailed Documentation

GrabCut algorithm flags.

Enum Values

GC_INIT_WITH_RECT

The function initializes the state and the mask using the provided rectangle. After that it runs iterCount iterations of the algorithm.

GC_INIT_WITH_MASK

The function initializes the state using the provided mask. Note that GC_INIT_WITH_RECT and GC_INIT_WITH_MASK can be combined. Then, all the pixels outside of the ROI are automatically initialized with GC_BGD .

GC_EVAL

The value means that the algorithm should just resume.