Grabcut with frozen models (#11339)
authorVadim Pisarevsky <vadim.pisarevsky@gmail.com>
Thu, 19 Apr 2018 12:23:50 +0000 (15:23 +0300)
committerGitHub <noreply@github.com>
Thu, 19 Apr 2018 12:23:50 +0000 (15:23 +0300)
commit7ea5029ae506291ce384d6f429536fa2fb354689
tree4afd93e5306d4cda75e84011bb5792ae76a7f78b
parent64a6b121145930bc53aab28fa1453f90170326b0
Grabcut with frozen models (#11339)

* model is not learned when grabcut is called with GC_EVAL

* fixed test, was writing to wrong file.

* modified patch by Iwan Paolucci; added GC_EVAL_FREEZE_MODEL in addition to GC_EVAL (which semantics is retained)
modules/imgproc/include/opencv2/imgproc.hpp
modules/imgproc/src/grabcut.cpp
modules/imgproc/test/test_grabcut.cpp