Skip to content

Added support for image integral computation. - #1536

Closed
rold2007 wants to merge 8934 commits into
SixLabors:masterfrom
rold2007:ImageIntegral
Closed

rold2007 wants to merge 8934 commits into
SixLabors:masterfrom
rold2007:ImageIntegral

Conversation

@rold2007

@rold2007 rold2007 commented Feb 7, 2021

Copy link
Copy Markdown
Contributor

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

This pull request replaces this one.

James Jackson-South and others added 30 commits November 6, 2020 20:45
3 <==> 4 Channel Shuffling with Hardware Intrinsics
Vectorize (AVX2) JPEG Color Converter
@codecov

ghost commented Feb 7, 2021

Copy link
Copy Markdown

Codecov Report

Merging #1536 (ce86962) into master (8e21937) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1536      +/-   ##
==========================================
+ Coverage   83.47%   83.49%   +0.01%     
==========================================
  Files         742      743       +1     
  Lines       32830    32856      +26     
  Branches     3667     3670       +3     
==========================================
+ Hits        27406    27432      +26     
  Misses       4709     4709              
  Partials      715      715              
Flag Coverage Δ
unittests 83.49% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ocessing/Extensions/Transforms/ImagingUtilities.cs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8e21937...ce86962. Read the comment docs.

ghost left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for resubmitting after I messed up!

Just some minor organizations changes, the code looks good 👍

/// <summary>
/// Defines extensions that allow the computation of image integrals on an <see cref="Image"/>
/// </summary>
public static class ImagingUtilities

ghost Feb 9, 2021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing I would change is to make the existing ProcessingExtensions partial and rename this one to match. ProcessingExtensions.IntegralImage.cs. I'd also move it to the same Processing/Extensions/ folder.

public static class ImagingUtilities
{
/// <summary>
/// Apply an image integral. See https://en.wikipedia.org/wiki/Summed-area_table

ghost Feb 9, 2021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use <see href="/api/browser/proxy?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSummed-area_table"/> to better work with intellisense docs.

using SixLabors.ImageSharp.Processing;
using Xunit;

namespace SixLabors.ImageSharp.Tests.Processing.Transforms

ghost Feb 9, 2021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to tests/ImageSharp.Tests/Processing/ and rename class.

@JimBobSquarePants

ghost commented Feb 17, 2021

Copy link
Copy Markdown
Member

Sorry @rold2007

We just added Git LFS to the repository and it's rewritten the history. This has forced the PR to be closed and I cannot reopen it.

If you like I can create a new PR based upon your work to save you the effort of redoing it?

@rold2007

ghost commented Feb 17, 2021

Copy link
Copy Markdown
Contributor Author

@JimBobSquarePants No worries. I'll open a new PR myself.

@JimBobSquarePants

ghost commented Feb 17, 2021

Copy link
Copy Markdown
Member

Thanks @rold2007 !!

@rold2007 rold2007 mentioned this pull request Feb 18, 2021
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.