[opencv] 39/251: Fix wrong chessboard generation in gen_pattern tool

Nobuhiro Iwamatsu iwamatsu at moszumanska.debian.org
Sun Aug 27 23:27:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

iwamatsu pushed a commit to annotated tag 3.3.0
in repository opencv.

commit fce018e7a9e36538a91565da67f77380a9a4a7ce
Author: Vladislav Sovrasov <sovrasov.vlad at gmail.com>
Date:   Tue Jul 11 17:39:52 2017 +0300

    Fix wrong chessboard generation in gen_pattern tool
---
 doc/pattern_tools/gen_pattern.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/pattern_tools/gen_pattern.py b/doc/pattern_tools/gen_pattern.py
index 34512ba..a846a03 100755
--- a/doc/pattern_tools/gen_pattern.py
+++ b/doc/pattern_tools/gen_pattern.py
@@ -38,7 +38,7 @@ class PatternMaker:
     r = spacing / self.radius_rate
     for x in range(1,self.cols+1):
       for y in range(1,self.rows+1):
-        dot = SVG("circle", cx=x * spacing, cy=y * spacing, r=r, fill="black")
+        dot = SVG("circle", cx=x * spacing, cy=y * spacing, r=r, fill="black", stroke="none")
         self.g.append(dot)
 
   def makeACirclesPattern(self):
@@ -46,7 +46,7 @@ class PatternMaker:
     r = spacing / self.radius_rate
     for i in range(0,self.rows):
       for j in range(0,self.cols):
-        dot = SVG("circle", cx= ((j*2 + i%2)*spacing) + spacing, cy=self.height - (i * spacing + spacing), r=r, fill="black")
+        dot = SVG("circle", cx= ((j*2 + i%2)*spacing) + spacing, cy=self.height - (i * spacing + spacing), r=r, fill="black", stroke="none")
         self.g.append(dot)
 
   def makeCheckerboardPattern(self):
@@ -56,7 +56,7 @@ class PatternMaker:
     for x in range(0,self.cols):
       for y in range(0,self.rows):
         if x%2 == y%2:
-          square = SVG("rect", x=x * spacing + xspacing, y=y * spacing + yspacing, width=spacing, height=spacing, fill="black")
+          square = SVG("rect", x=x * spacing + xspacing, y=y * spacing + yspacing, width=spacing, height=spacing, fill="black", stroke="none")
           self.g.append(square)
 
   def save(self):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list