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

Issue 13947013: Complete (but inefficient) implementation of the image retargetting method. (Closed)

Created:
7 years, 8 months ago by motek.
Modified:
7 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Complete (but inefficient) implementation of the image retargetting method. This CL contains: 1. Convolution of arbitrary channel with arbitrary kernel (convolver*). 2. Gaussian gradient magnitude implementation. 3. Image profile (X and Y projections) computations. 4. Otsu-like thresholding of profiles. 5. Image decimation. 6. The main routine which binds it all together. Note: 1 and 2 do work, but remain main sources of suckiness due to performance problems. I actively work on this. Still, I'd love to get the current state in to establish a baseline and for viewing pleasure of those who are interested. BUG=155269 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194565

Patch Set 1 #

Total comments: 37

Patch Set 2 : Addressed reviewers' remarks. #

Total comments: 36

Patch Set 3 : Second round of reviews (+ making complier happy). #

Patch Set 4 : vcpp compilation fix #

Patch Set 5 : Oops. Now saved and uploaded. #

Total comments: 1

Patch Set 6 : Added early exit when filter is bigger than the image or if there is no filter (all zeros). #

Total comments: 2

Patch Set 7 : Moved content_analysis* to browser/thumbnails/ . #

Patch Set 8 : Rmvd abbrvs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1396 lines, -3 lines) Patch
A chrome/browser/thumbnails/content_analysis.h View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/thumbnails/content_analysis.cc View 1 2 3 4 5 6 1 chunk +452 lines, -0 lines 0 comments Download
A chrome/browser/thumbnails/content_analysis_unittest.cc View 1 2 3 4 5 6 7 1 chunk +479 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M skia/ext/convolver.h View 1 4 chunks +52 lines, -2 lines 0 comments Download
M skia/ext/convolver.cc View 1 2 3 4 5 5 chunks +195 lines, -1 line 0 comments Download
M skia/ext/convolver_unittest.cc View 1 2 3 4 5 1 chunk +149 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
motek.
Hi, could I bother you guys for a review?
7 years, 8 months ago (2013-04-09 15:32:01 UTC) #1
reed1
looks like all of the skia-isms are correct. I feel a bit underqualified to comment ...
7 years, 8 months ago (2013-04-09 15:43:18 UTC) #2
Alexei Svitkine (slow)
I'll let Stephen do the review of the image processing logic. In the meantime, here's ...
7 years, 8 months ago (2013-04-09 18:02:23 UTC) #3
Stephen White
Cool stuff. Most of my comments are just suggestions/nits, except for the naming stuff. Judicious ...
7 years, 8 months ago (2013-04-10 15:20:31 UTC) #4
motek.
I addressed all remarks, implementing all but one suggestions. Note that changes in convolver.cc go ...
7 years, 8 months ago (2013-04-11 16:18:37 UTC) #5
Stephen White
LGTM. The rest are just suggestions. https://codereview.chromium.org/13947013/diff/1/skia/ext/convolver.h File skia/ext/convolver.h (right): https://codereview.chromium.org/13947013/diff/1/skia/ext/convolver.h#newcode13 skia/ext/convolver.h:13: #include "third_party/skia/include/core/SkSize.h" On ...
7 years, 8 months ago (2013-04-11 17:16:38 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/13947013/diff/9001/skia/ext/convolver.cc File skia/ext/convolver.cc (right): https://codereview.chromium.org/13947013/diff/9001/skia/ext/convolver.cc#newcode318 skia/ext/convolver.cc:318: if (filter.trimmed_length == 0) { Nit: Remove {}'s. https://codereview.chromium.org/13947013/diff/9001/skia/ext/convolver.cc#newcode627 ...
7 years, 8 months ago (2013-04-11 18:25:37 UTC) #7
motek.
https://codereview.chromium.org/13947013/diff/9001/skia/ext/convolver.cc File skia/ext/convolver.cc (right): https://codereview.chromium.org/13947013/diff/9001/skia/ext/convolver.cc#newcode318 skia/ext/convolver.cc:318: if (filter.trimmed_length == 0) { On 2013/04/11 18:25:37, Alexei ...
7 years, 8 months ago (2013-04-12 10:50:59 UTC) #8
Stephen White
https://codereview.chromium.org/13947013/diff/54001/skia/ext/convolver.cc File skia/ext/convolver.cc (right): https://codereview.chromium.org/13947013/diff/54001/skia/ext/convolver.cc#newcode573 skia/ext/convolver.cc:573: int overlap_taps = image_size.width() - c + centrepoint; Does ...
7 years, 8 months ago (2013-04-12 12:15:21 UTC) #9
motek.
On 2013/04/12 12:15:21, Stephen White wrote: > https://codereview.chromium.org/13947013/diff/54001/skia/ext/convolver.cc > File skia/ext/convolver.cc (right): > > https://codereview.chromium.org/13947013/diff/54001/skia/ext/convolver.cc#newcode573 ...
7 years, 8 months ago (2013-04-12 12:29:44 UTC) #10
Stephen White
On 2013/04/12 12:29:44, motek. wrote: > On 2013/04/12 12:15:21, Stephen White wrote: > > https://codereview.chromium.org/13947013/diff/54001/skia/ext/convolver.cc ...
7 years, 8 months ago (2013-04-12 12:41:50 UTC) #11
motek.
On 2013/04/12 12:41:50, Stephen White wrote: > On 2013/04/12 12:29:44, motek. wrote: > > On ...
7 years, 8 months ago (2013-04-12 12:52:00 UTC) #12
Stephen White
LGTM
7 years, 8 months ago (2013-04-12 14:06:45 UTC) #13
Alexei Svitkine (slow)
Thanks for addressing my comments, code looks good now. However, I'm not sure content_analysis.cc belongs ...
7 years, 8 months ago (2013-04-12 14:40:52 UTC) #14
motek.
On 2013/04/12 14:40:52, Alexei Svitkine wrote: > Thanks for addressing my comments, code looks good ...
7 years, 8 months ago (2013-04-15 10:58:08 UTC) #15
Alexei Svitkine (slow)
LGTM https://codereview.chromium.org/13947013/diff/68001/ui/gfx/content_analysis_unittest.cc File ui/gfx/content_analysis_unittest.cc (right): https://codereview.chromium.org/13947013/diff/68001/ui/gfx/content_analysis_unittest.cc#newcode55 ui/gfx/content_analysis_unittest.cc:55: SkColor clr_left = bitmap_left.getColor(origin_left.x() + c, Nit: Don't ...
7 years, 8 months ago (2013-04-15 13:15:36 UTC) #16
motek.
https://codereview.chromium.org/13947013/diff/68001/ui/gfx/content_analysis_unittest.cc File ui/gfx/content_analysis_unittest.cc (right): https://codereview.chromium.org/13947013/diff/68001/ui/gfx/content_analysis_unittest.cc#newcode55 ui/gfx/content_analysis_unittest.cc:55: SkColor clr_left = bitmap_left.getColor(origin_left.x() + c, On 2013/04/15 13:15:36, ...
7 years, 8 months ago (2013-04-15 14:47:47 UTC) #17
Nico
When you add someone you want an owner review from to a CL, please add ...
7 years, 8 months ago (2013-04-16 21:29:30 UTC) #18
motek.
7 years, 8 months ago (2013-04-17 10:39:18 UTC) #19
Message was sent while issue was closed.
Committed patchset #8 manually as r194565 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698