Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Issue 16855010: Python Tools for Pixel-by-Pixel Image Comparison (Closed)

Created:
7 years, 6 months ago by cgrimm
Modified:
7 years, 6 months ago
Reviewers:
craigdh, frankf
CC:
chromium-reviews, dennis_jeffrey, anantha, dyu1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

A collection of tools for pixel by pixel image comparison to be used on the I Spy project. BUG=249404 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207930

Patch Set 1 #

Total comments: 60

Patch Set 2 : Made code comply with Craig's edits" #

Patch Set 3 : minor changes: math.ceiling to prevent rounding errors, [0:3] subsections of lists. #

Total comments: 24

Patch Set 4 : spaces between operators, various nitpicks fixed #

Total comments: 10

Patch Set 5 : minor changes to documentation #

Total comments: 32

Patch Set 6 : massive overhaul, removed many redundant helper functions, dramatic speedup. #

Patch Set 7 : added separator between user and system libraries #

Total comments: 14

Patch Set 8 : modified comments and fixed split code paths #

Total comments: 4

Patch Set 9 : removed unreadable list comprehensions, removed max_different_pixels from SameImage function #

Patch Set 10 : added serialize/deserialize, fixed copyright typo. #

Patch Set 11 : Set up folder structure, added bucket manager and tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1359 lines, --6 lines) Patch
A + chrome/test/functional/ispy/ispy_core/Tests/BucketManagerTests/DependancyInjection/__init__.py View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/functional/ispy/ispy_core/Tests/BucketManagerTests/DependancyInjection/boto_actual_injector.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +157 lines, -0 lines 0 comments Download
A chrome/test/functional/ispy/ispy_core/Tests/BucketManagerTests/DependancyInjection/boto_injector.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/test/functional/ispy/ispy_core/Tests/BucketManagerTests/DependancyInjection/boto_testing_injector.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +274 lines, -0 lines 0 comments Download
A + chrome/test/functional/ispy/ispy_core/Tests/BucketManagerTests/__init__.py View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/functional/ispy/ispy_core/Tests/BucketManagerTests/bucket_manager_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +228 lines, -0 lines 0 comments Download
A + chrome/test/functional/ispy/ispy_core/Tests/ImageToolsTests/__init__.py View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/functional/ispy/ispy_core/Tests/ImageToolsTests/image_tools_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +188 lines, -0 lines 0 comments Download
A + chrome/test/functional/ispy/ispy_core/Tests/__init__.py View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/functional/ispy/ispy_core/Tools/__init__.py View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/functional/ispy/ispy_core/Tools/bucket_manager.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +236 lines, -0 lines 0 comments Download
A chrome/test/functional/ispy/ispy_core/Tools/image_tools.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +222 lines, -0 lines 0 comments Download
A + chrome/test/functional/ispy/ispy_core/__init__.py View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/functional/ispy/ispy_core/run_tests.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
cgrimm
Requesting review for image_tools and test
7 years, 6 months ago (2013-06-13 17:46:49 UTC) #1
craigdh
Looks pretty good. Add a more descriptive subject (so general chromium sheriff would have some ...
7 years, 6 months ago (2013-06-13 19:28:31 UTC) #2
cgrimm
Finished making changes. https://codereview.chromium.org/16855010/diff/1/chrome/test/functional/ispy/image_tools.py File chrome/test/functional/ispy/image_tools.py (right): https://codereview.chromium.org/16855010/diff/1/chrome/test/functional/ispy/image_tools.py#newcode5 chrome/test/functional/ispy/image_tools.py:5: """A Module containing useful image tools ...
7 years, 6 months ago (2013-06-14 18:43:58 UTC) #3
craigdh
Looking good, just some nits. Let's wait for frank's review (he's OOO today). https://codereview.chromium.org/16855010/diff/22001/chrome/test/functional/ispy/image_tools.py File ...
7 years, 6 months ago (2013-06-14 19:08:40 UTC) #4
cgrimm
updated code https://codereview.chromium.org/16855010/diff/22001/chrome/test/functional/ispy/image_tools.py File chrome/test/functional/ispy/image_tools.py (right): https://codereview.chromium.org/16855010/diff/22001/chrome/test/functional/ispy/image_tools.py#newcode14 chrome/test/functional/ispy/image_tools.py:14: """Returns if a set of images are ...
7 years, 6 months ago (2013-06-17 16:24:57 UTC) #5
frankf
https://codereview.chromium.org/16855010/diff/26001/chrome/test/functional/ispy/image_tools.py File chrome/test/functional/ispy/image_tools.py (right): https://codereview.chromium.org/16855010/diff/26001/chrome/test/functional/ispy/image_tools.py#newcode277 chrome/test/functional/ispy/image_tools.py:277: cutoff for Sameness. I don't thinkg Sameness has defined ...
7 years, 6 months ago (2013-06-17 21:48:31 UTC) #6
frankf
Also what's up with the CL description?
7 years, 6 months ago (2013-06-17 21:49:35 UTC) #7
cgrimm
https://codereview.chromium.org/16855010/diff/26001/chrome/test/functional/ispy/image_tools.py File chrome/test/functional/ispy/image_tools.py (right): https://codereview.chromium.org/16855010/diff/26001/chrome/test/functional/ispy/image_tools.py#newcode277 chrome/test/functional/ispy/image_tools.py:277: cutoff for Sameness. On 2013/06/17 21:48:31, frankf wrote: > ...
7 years, 6 months ago (2013-06-17 23:41:18 UTC) #8
craigdh
lgtm with nit. Please wait for frank's lgtm before clicking the submit checkbox. https://codereview.chromium.org/16855010/diff/31001/chrome/test/functional/ispy/image_tools.py File ...
7 years, 6 months ago (2013-06-17 23:53:06 UTC) #9
cgrimm
will do On Mon, Jun 17, 2013 at 4:53 PM, <craigdh@chromium.org> wrote: > lgtm with ...
7 years, 6 months ago (2013-06-18 00:01:08 UTC) #10
frankf
I'm half-way though. These are my comments so far. Look at more CLs to get ...
7 years, 6 months ago (2013-06-18 01:52:17 UTC) #11
craigdh
https://codereview.chromium.org/16855010/diff/31001/chrome/test/functional/ispy/image_tools.py File chrome/test/functional/ispy/image_tools.py (right): https://codereview.chromium.org/16855010/diff/31001/chrome/test/functional/ispy/image_tools.py#newcode46 chrome/test/functional/ispy/image_tools.py:46: (ch1 - ch2) ** 2 On 2013/06/18 01:52:18, frankf ...
7 years, 6 months ago (2013-06-18 16:25:01 UTC) #12
cgrimm
https://codereview.chromium.org/16855010/diff/31001/chrome/test/functional/ispy/image_tools.py File chrome/test/functional/ispy/image_tools.py (right): https://codereview.chromium.org/16855010/diff/31001/chrome/test/functional/ispy/image_tools.py#newcode26 chrome/test/functional/ispy/image_tools.py:26: return not any(images[0].size != img.size for img in images[1:]) ...
7 years, 6 months ago (2013-06-18 18:53:01 UTC) #13
craigdh
https://codereview.chromium.org/16855010/diff/42001/chrome/test/functional/ispy/image_tools.py File chrome/test/functional/ispy/image_tools.py (right): https://codereview.chromium.org/16855010/diff/42001/chrome/test/functional/ispy/image_tools.py#newcode60 chrome/test/functional/ispy/image_tools.py:60: data = list( use [] instead of list(). That ...
7 years, 6 months ago (2013-06-18 19:16:11 UTC) #14
cgrimm
- fixed split code paths that craig brought up. - edited comments to be more ...
7 years, 6 months ago (2013-06-18 20:21:01 UTC) #15
craigdh
looks good to me. @frankf: ptal
7 years, 6 months ago (2013-06-18 23:34:27 UTC) #16
frankf
https://codereview.chromium.org/16855010/diff/46001/chrome/test/functional/ispy/image_tools.py File chrome/test/functional/ispy/image_tools.py (right): https://codereview.chromium.org/16855010/diff/46001/chrome/test/functional/ispy/image_tools.py#newcode153 chrome/test/functional/ispy/image_tools.py:153: 0 if m == (255, 255, 255) This is ...
7 years, 6 months ago (2013-06-19 03:53:26 UTC) #17
frankf
https://codereview.chromium.org/16855010/diff/46001/chrome/test/functional/ispy/image_tools.py File chrome/test/functional/ispy/image_tools.py (right): https://codereview.chromium.org/16855010/diff/46001/chrome/test/functional/ispy/image_tools.py#newcode153 chrome/test/functional/ispy/image_tools.py:153: 0 if m == (255, 255, 255) This is ...
7 years, 6 months ago (2013-06-19 03:53:26 UTC) #18
cgrimm
- changed unreadable list comprehensions to for-loops. - removed max_different_pixels parameter from SameImage function - ...
7 years, 6 months ago (2013-06-19 16:17:26 UTC) #19
frankf
lgtm
7 years, 6 months ago (2013-06-19 18:41:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cgrimm@google.com/16855010/53001
7 years, 6 months ago (2013-06-20 19:08:32 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=10979
7 years, 6 months ago (2013-06-20 19:22:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cgrimm@google.com/16855010/62001
7 years, 6 months ago (2013-06-21 17:00:27 UTC) #23
cgrimm
- fixed typo in copyright in image_tools - added in trivial serialize and deserialize functions.
7 years, 6 months ago (2013-06-21 17:02:20 UTC) #24
commit-bot: I haz the power
Change committed as 207930
7 years, 6 months ago (2013-06-21 22:08:05 UTC) #25
cgrimm
7 years, 6 months ago (2013-06-24 18:11:09 UTC) #26
Message was sent while issue was closed.
- added in file/package structure

- added in bucket_manager 

- added in tests for bucket_manager.

Powered by Google App Engine
This is Rietveld 408576698