A little problem in grabcut (Bug #2118)


Added by Bin Liu over 12 years ago. Updated over 12 years ago.


Status:Done Start date:2012-06-30
Priority:Normal Due date:
Assignee:Maria Dimashova % Done:

0%

Category:imgproc, video
Target version:2.4.2
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

In opencv/modules/imgproc/src/grabcut.cpp, line 308 ( function calcNWeights), the condition is set as "if( x+1<img.cols-1 && y-1>=0 )...", but i think it should be "if( x+1<img.cols && y-1>=0 )...", right?


grabcut.cpp (19.5 kB) Bin Liu, 2012-06-30 08:24 am


Associated revisions

Revision b528348f
Added by Maria Dimashova over 12 years ago

fixed #2118

Revision d509165d
Added by Roman Donchenko about 11 years ago

Merge pull request #2118 from ilya-lavrenov:semicolons

History

Updated by Maria Dimashova over 12 years ago

You are right. Thank you! Fixed in r8918.

  • Status changed from Open to Done
  • Assignee changed from Vadim Pisarevsky to Maria Dimashova

Updated by Andrey Kamaev over 12 years ago

  • Target version set to 2.4.2

Also available in: Atom PDF