Skip to content

n-dimensional rescale, resize, and pyramid transforms - #1522

Merged
soupault merged 20 commits into
scikit-image:masterfrom
grlee77:nd_resize
Apr 20, 2017
Merged

soupault merged 20 commits into
scikit-image:masterfrom
grlee77:nd_resize

Conversation

@grlee77

@grlee77 grlee77 commented May 20, 2015

Copy link
Copy Markdown
Contributor

This is a pretty simple pull request extending n-dimensional support to the following transforms:

  • skimage.transform.rescale
  • skimage.transform.resize
  • skimage.transform.pyramid_*

This is useful for me as I work primarily in medical imaging where data is often either 3D volumetric or 3D+time.

As was previously the case, resize still calls the two-dimensional interpolations implemented in _shared/interpolation.pyx for 2D or 2D+color images, while all other cases use scipy.ndimage.map_coordinates. Previously map_coordinates was set up explicitly for 3D only.

The changes to resize are substantially smaller than the diff would indicate at first glance, because I switched the order of the if / else statement calling the 2D or n-D interpolation code. (The logic for when to call 2D seemed slightly simpler to express)

A multichannel argument was added to rescale to indicate that the last axis should not be reshaped. This defaults to True for 3D inputs to replicate the previous behaviour for 2D+color images. To do a true 3D rescale, the user must explicitly specify multichannel=False.

Similarly in pyramids.py:
The _smooth function previously always looped 2D smoothing operations over the last axis if the input was 3D. Now there is a new multichannel argument that explicitly controls this behavior of looping over the last axis, regardless of image dimension. As for rescale above, multichannel defaults to None which will result in a call to a small function to replicate the old behaviour of True for 3D inputs and False otherwise.

Comment thread skimage/transform/pyramids.py Outdated

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.

sth missing here

@grlee77

grlee77 commented May 21, 2015

Copy link
Copy Markdown
Contributor Author

Thank you all for the quick reviews on this pull request as well as the previous one!

@grlee77

grlee77 commented May 21, 2015

Copy link
Copy Markdown
Contributor Author

In addition to the changes suggested above, I explicitly set the multichannel argument in a few other locations in the codebase where rescale or pyramids were being used so that the multichannel deprecation warning will not be raised. There were only a handful of these.

@grlee77

grlee77 commented Jun 10, 2015

Copy link
Copy Markdown
Contributor Author

All seems well with the tests. Let me know if there is anything else to be done here.

It looks like I may need update the ndimage conventions in accord with #1550 and possibly change the default mode to 'reflect' as discussed in #1514.

@soupault soupault added the ⏩ type: Enhancement Improve existing features label Jan 30, 2016
@soupault soupault changed the title ENH: n-dimensional transforms n-dimensional transforms Oct 25, 2016
@grlee77

grlee77 commented Feb 1, 2017

Copy link
Copy Markdown
Contributor Author

It has been awhile, but I would like to revisit this PR if there is still interest

a made a small, separate PR for the default edge mode changes in #2484

It would probably make sense to rebase this PR on top of that one

@grlee77 grlee77 mentioned this pull request Mar 31, 2017
3 tasks done
@soupault soupault self-assigned this Mar 31, 2017
@pep8speaks

pep8speaks commented Apr 12, 2017 •

Copy link
Copy Markdown

Hello @grlee77! Thanks for updating the PR.

Line 104:1: E402 module level import not at top of file
Line 154:1: E402 module level import not at top of file

Line 609:80: E501 line too long (86 > 79 characters)

Line 274:80: E501 line too long (101 > 79 characters)

Comment last updated on April 20, 2017 at 19:03 Hours UTC

@grlee77

grlee77 commented Apr 12, 2017

Copy link
Copy Markdown
Contributor Author

I rebased this after the pytest merge. I dropped a single commit related to older numpy compatibility (cbf62401a696f735956912c5538b3b2ca318f2ec) as it is no longer necessary with the new numpy 1.11 minimum requirement.

The final commit is a bunch of random PEP8 fixes of issues brought up by pep8speaks.

The individual commit history is definitely not ideal, as I was still new to learning git workflows at the time. If it is desired to go forward with this PR I can rebase into a handful of more logical commits that may make it a bit easier to review?

@jni jni 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.

@grlee77 thanks very much for revisiting this! I've suggested a few changes.

We had a few discussions in other issues about how to deal with multichannel in some of these cases where there is an alternative way of specifying it: namely, by specifying the final dimension, ie output_shape=(r//2, c//2, ch). (Or, for Gaussian filters, sigma=(2, 2, 0), for example.) My gut feeling is that that is the more elegant way of dealing with multichannel issues, and it avoids quite a bit of complexity going forward. What do you think? @soupault I think you had thoughts on this also?

Comment thread skimage/transform/_warps.py Outdated
return multichannel
else:
warn('The default multichannel argument (None) is deprecated. '
'Specifiy True or False explicitly.')

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.

I suspect we want multichannel=False in the future but the current behavior is True for 3D images and False for 2D or 4D+ images? I think somehow this has to come across in the deprecation message. Otherwise multichannel would be a required argument after the deprecation, which doesn't sound good. =)

Oh and btw, specify in which version the deprecation will take place.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The current behavior in 0.13 treats as multichannel when the input is 3D and output_shape[2] == image.shape[2]. Otherwise it is not treated as multichannel. I think multichannel_default should be updated to match that behavior backwards compatibility.

I will update the deprecation message appropriately assuming the future default will be False. Assuming this goes into release 0.14, deprecation would be 0.16?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

actually _multichannel_default is fine as is (aside from the warnings text). It is only used by rescale and the various pyramid functions which all previously assumed 2D+channels if the input was 3D and would error on inputs > 3D.

ndim_out = len(output_shape)
input_shape = image.shape
if ndim_out > image.ndim:
# append dimensions to input_shape

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.

How did you decide to append instead of prepend? This is the opposite of numpy broadcasting rules, so I would want a justification noted in a comment here...

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.

Frankly speaking, I'm not in favour of this check. I think we should either we expose this as a parameter to the user (append/prepend) or to discard.

@jni Let me cite your old message : #2276 (comment) . I assume, due to the lack of nD algorithms, we do not yet have a strict policy on dimensions ordering.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I pref disallowing output_shape with a different number of dimensions than the input. The problem with this is that in 0.13 it is already allowed to give a 2D input with 3D output shape. The additional dimension gets appended to the end:

if image.ndim == 2:
image = image[:, :, np.newaxis]

Comment thread skimage/transform/_warps.py Outdated

else: # 2-dimensional interpolation

output_shape = np.asarray(output_shape)

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.

Why this conversion? It complicates downstream syntax, forcing a call to np.concatenate. I suggest making it a tuple.

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.

I second @grlee77 solution. output_shape : tuple or ndarray, means that we should handle both options in a single way. And the simplest wat to do so is to convert to ndarray.

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.

@grlee77 I think we need to update the docstring as well:
Size of the generated output image `(rows, cols[, dim])`... -> (rows, cols[, ...][, dim])

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can change to output_shape = tuple(output_shape). That should also convert a 1D array to a tuple and allow the simpler tuple concatenation.

Comment thread skimage/transform/_warps.py Outdated
image = np.reshape(image, input_shape)
elif ndim_out == image.ndim - 1:
# multichannel case: append shape of last axis
output_shape = np.concatenate((output_shape, [image.shape[-1], ]))

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.

If output_shape is a tuple, this becomes output_shape += (image.shape[-1],)

Comment thread skimage/transform/_warps.py Outdated

else: # n-dimensional interpolation
for i in range(ndim_out - image.ndim):
image = image[..., np.newaxis]

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.

Didn't we already reshape the image above? And if so, is this not redundant?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True. I moved it above and then never removed it from here :)

Comment thread skimage/transform/_warps.py Outdated
image is converted according to the conventions of `img_as_float`.
multichannel : bool, optional
If True, last axis will not be rescaled. The default is True for 3D
(2D+color) inputs, False otherwise.

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.

... but will be False everywhere in version 0.16? I think overall we've decided to get rid of all multichannel guessing throughout the library on the way to 1.0.

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.

👍 I agree: we should add deprecation message if multichannel is None saying that it will default to False in 0.16.

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.

I'd rephrase it like this: By default, is set to True for 3D (2D+color) inputs, and False for others..

multichannel = _multichannel_default(multichannel, image.ndim)
scale = np.atleast_1d(scale)
if len(scale) > 1 and len(scale) != image.ndim:
raise ValueError("must supply a single scale or one value per axis.")

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.

Wouldn't there be a third case — for multichannel images, len(scale) == image.ndim[:-1], right?

Comment thread skimage/transform/pyramids.py Outdated
for dim in range(image.shape[2]):
# apply Gaussian filter to all channels independently
if multichannel:
for dim in range(image.shape[-1]):

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.

This seems unnecessarily complex — isn't it equivalent to run a single gaussian filter with the corresponding sigma = 0?

Comment thread skimage/transform/pyramids.py Outdated

# build downsampled images until max_layer is reached or downscale process
# does not change image size
while layer != max_layer:

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.

I know it's not on you but this should clearly be a for loop. =)


shift = lambda xy: xy + 1
def shift(xy):
return xy + 1

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.

Nice. ;)

@jni

jni commented Apr 12, 2017

Copy link
Copy Markdown
Member

Ah, here is the discussion, which was sort of cut off by @noahstier but I think is worth hashing out in a longer discussion. =)

#2587 (comment)

ndim_out = len(output_shape)
input_shape = image.shape
if ndim_out > image.ndim:
# append dimensions to input_shape

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.

Frankly speaking, I'm not in favour of this check. I think we should either we expose this as a parameter to the user (append/prepend) or to discard.

@jni Let me cite your old message : #2276 (comment) . I assume, due to the lack of nD algorithms, we do not yet have a strict policy on dimensions ordering.

Comment thread skimage/transform/_warps.py Outdated

else: # 2-dimensional interpolation

output_shape = np.asarray(output_shape)

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.

I second @grlee77 solution. output_shape : tuple or ndarray, means that we should handle both options in a single way. And the simplest wat to do so is to convert to ndarray.

Comment thread skimage/transform/_warps.py Outdated

else: # 2-dimensional interpolation

output_shape = np.asarray(output_shape)

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.

@grlee77 I think we need to update the docstring as well:
Size of the generated output image `(rows, cols[, dim])`... -> (rows, cols[, ...][, dim])

Comment thread skimage/transform/_warps.py Outdated
image is converted according to the conventions of `img_as_float`.
multichannel : bool, optional
If True, last axis will not be rescaled. The default is True for 3D
(2D+color) inputs, False otherwise.

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.

👍 I agree: we should add deprecation message if multichannel is None saying that it will default to False in 0.16.

Comment thread skimage/transform/_warps.py Outdated
image is converted according to the conventions of `img_as_float`.
multichannel : bool, optional
If True, last axis will not be rescaled. The default is True for 3D
(2D+color) inputs, False otherwise.

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.

I'd rephrase it like this: By default, is set to True for 3D (2D+color) inputs, and False for others..



def resize(image, output_shape, order=1, mode=None, cval=0, clip=True,
preserve_range=False):

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.

We should add multichannel also to resize.

@grlee77 grlee77 Apr 13, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What would it be used for? I think the two shapes specify everything that needs to be known? I guess if multichannel was specified an image.shape[-1] != output_shape[-1] an error could be raised.

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.

Well, both resize and rescale are exposed to the user. They are used for the same purpose, therefore, I think, they should have the similar API. There is nothing more than that :).

In my opinion, the thinking should be the following: if a function performs any logic on "multichanneling", the argument has to be explicitly provided.

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.

@soupault but the API is necessarily different — rescale can take float input, while resize always needs a tuple. This means that the multichannel nature can be inferred from the output and input shapes. At any rate, I consider this something that can be fixed post merge if necessary.

@soupault soupault Apr 19, 2017 •

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.

This means that the multichannel nature can be inferred from the output and input shapes.

A-a-a-and we are back to it :).

@jni I understand your point. My feeling is that the API should be as homogeneous as possible.
Maybe we could just have another input from @scikit-image/core ?

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.

@soupault yes I'm happy to discuss it. Notice that I consider this a different discussion to what we've had before: when the argument can be inferred unambiguously, vs when we are just guessing.

At any rate, I'm happy to have the discussion, but I don't think it should hold this PR up. Perhaps you can raise an issue afterwards? And it can cover existing cases of guessing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have not added it so far as I am not sure what the logic would be within the function. As @jni stated, whether or not the last axis would be reshaped is unambiguous from image.shape and output_shape. I suppose if multichannel=True we could raise an error if image.shape[-1] != output_shape[-1], but I'm not sure what else it could do?

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.

Alright. As far as both of you are strongly concerned not to change the API for resize, let's move the discussion to a separate thread and try to work out the best solution there.


def pyramid_reduce(image, downscale=2, sigma=None, order=1,
mode='reflect', cval=0):
mode='reflect', cval=0, multichannel=None):

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.

Please, add deprecation message here as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For all of these pyramid functions, the message is already there within the call to the _multichannel_default routine.


def pyramid_expand(image, upscale=2, sigma=None, order=1,
mode='reflect', cval=0):
mode='reflect', cval=0, multichannel=None):

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.

And here.


def pyramid_laplacian(image, max_layer=-1, downscale=2, sigma=None, order=1,
mode='reflect', cval=0):
mode='reflect', cval=0, multichannel=None):

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.

And here.

@grlee77

grlee77 commented Apr 13, 2017

Copy link
Copy Markdown
Contributor Author

Most of the comments have been addressed. I think the ones still outstanding are:

  • ongoing discussion on whether to use multichannel argument in all of these cases

  • whether to add a new parameter to resize that lets to the user to choose whether to append or preprend dimensions when the output_shape has more dimensions than the input? Another alternative is to deprecate allowing output_shape to be a different length than the number of image dimensions. I think I am slightly in favor of the latter.

  • does resize also need a multichannel argument? I did not see a need for it, but adding it was suggested above.

@jni jni changed the title n-dimensional transforms n-dimensional rescale, resize, and pyramid transforms Apr 18, 2017
)


def _multichannel_default(multichannel, ndim):

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.



def resize(image, output_shape, order=1, mode=None, cval=0, clip=True,
preserve_range=False):

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.

Well, both resize and rescale are exposed to the user. They are used for the same purpose, therefore, I think, they should have the similar API. There is nothing more than that :).

In my opinion, the thinking should be the following: if a function performs any logic on "multichanneling", the argument has to be explicitly provided.

output_shape = tuple(output_shape)
ndim_out = len(output_shape)
input_shape = image.shape
if ndim_out > image.ndim:

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.

@grlee77 I assume, we both agree to get rid of this?
Does anyone object?

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.

@soupault no, this is necessary for backwards compatibility — see above

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.

(above meaning the code that has been removed)

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.

Ah, yes, I've missed this point.

Comment thread skimage/transform/_warps.py Outdated
Whether to keep the original range of values. Otherwise, the input
image is converted according to the conventions of `img_as_float`.
multichannel : bool, optional
By default, is set to True for 3D (2D+color) inputs, and False for

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.

Sorry, I meant to add this reformulated sentence in addition to the description. It's not clear what this argument is for as it is.

return out


def rescale(image, scale, order=1, mode=None, cval=0, clip=True,

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.

Please, update this docstring as well:
(row_scale, col_scale) -> nD notation.

Comment thread skimage/transform/pyramids.py Outdated
multichannel : bool, optional
By default, is set to True for 3D (2D+color) inputs, and False for
others. Starting in release 0.16, this will always default to False.
hether the last axis of the image is to be interpreted as multiple

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.

Whether

Comment thread skimage/transform/pyramids.py Outdated
By default, is set to True for 3D (2D+color) inputs, and False for
others. Starting in release 0.16, this will always default to False.
hether the last axis of the image is to be interpreted as multiple
channels or another spatial dimension. By default, is set to True for

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.

two spaces instead of one after .

Comment thread skimage/transform/pyramids.py Outdated
others. Starting in release 0.16, this will always default to False.
hether the last axis of the image is to be interpreted as multiple
channels or another spatial dimension. By default, is set to True for
3D (2D+color) inputs, and False for others. Starting in release 0.16,

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.

two spaces instead of one after .

Comment thread skimage/transform/_warps.py Outdated
others. Starting in release 0.16, this will always default to False.
Whether the last axis of the image is to be interpreted as multiple
channels or another spatial dimension. By default, is set to True for
3D (2D+color) inputs, and False for others. Starting in release 0.16,

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.

two spaces instead of one after .

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

okay. fixing these now

Comment thread skimage/transform/_warps.py Outdated
By default, is set to True for 3D (2D+color) inputs, and False for
others. Starting in release 0.16, this will always default to False.
Whether the last axis of the image is to be interpreted as multiple
channels or another spatial dimension. By default, is set to True for

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.

two spaces instead of one after .

Comment thread skimage/transform/pyramids.py Outdated
multichannel : bool, optional
By default, is set to True for 3D (2D+color) inputs, and False for
others. Starting in release 0.16, this will always default to False.
hether the last axis of the image is to be interpreted as multiple

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.

Same here :)

Comment thread skimage/transform/pyramids.py Outdated
multichannel : bool, optional
By default, is set to True for 3D (2D+color) inputs, and False for
others. Starting in release 0.16, this will always default to False.
hether the last axis of the image is to be interpreted as multiple

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.

Again here :P

Comment thread skimage/transform/pyramids.py Outdated
multichannel : bool, optional
By default, is set to True for 3D (2D+color) inputs, and False for
others. Starting in release 0.16, this will always default to False.
hether the last axis of the image is to be interpreted as multiple

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.

and here...

@codecov-io

codecov-io commented Apr 20, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #1522 into master will decrease coverage by 0.13%.
The diff coverage is 99.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1522      +/-   ##
==========================================
- Coverage   85.46%   85.33%   -0.14%     
==========================================
  Files         328      331       +3     
  Lines       26069    26436     +367     
==========================================
+ Hits        22281    22558     +277     
- Misses       3788     3878      +90
Impacted Files Coverage Δ
skimage/feature/orb.py 100% <100%> (ø) ⬆️
skimage/transform/tests/test_radon_transform.py 80.28% <100%> (+0.07%) ⬆️
skimage/transform/pyramids.py 100% <100%> (ø) ⬆️
skimage/transform/tests/test_pyramids.py 98.95% <100%> (+0.84%) ⬆️
skimage/viewer/tests/test_viewer.py 100% <100%> (ø) ⬆️
skimage/transform/tests/test_warps.py 99.64% <100%> (+0.06%) ⬆️
skimage/transform/_warps.py 98.31% <95.74%> (-1.11%) ⬇️
...kimage/measure/tests/test_structural_similarity.py 99.29% <0%> (-0.01%) ⬇️
skimage/io/_plugins/freeimage_plugin.py 0% <0%> (ø) ⬆️
skimage/io/_plugins/util.py 54.16% <0%> (ø) ⬆️
... and 10 more

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 4d4c799...17f39eb. Read the comment docs.

@grlee77

grlee77 commented Apr 20, 2017

Copy link
Copy Markdown
Contributor Author

@soupault
The remaining stylistic changes have been made and the TODO.txt was updated. Is there anything else remaining? I can rebase/squash once everything has been approved.

@soupault

Copy link
Copy Markdown
Member

Thank you @grlee77 ! As usual, a very high quality PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⏩ type: Enhancement Improve existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants