Skip to content

multichannel to channel_axis (3 of 6): filters - #5286

Merged
jni merged 19 commits into
scikit-image:mainfrom
grlee77:channel_axis_filters
May 11, 2021
Merged

jni merged 19 commits into
scikit-image:mainfrom
grlee77:channel_axis_filters

Conversation

@grlee77

@grlee77 grlee77 commented Mar 23, 2021

Copy link
Copy Markdown
Contributor

follows #5285. Implements channel_axis for the filters module

Description

Checklist

For reviewers

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.

@grlee77 grlee77 added the 📜 type: API Involves API change(s) label Mar 23, 2021
@pep8speaks

pep8speaks commented Mar 23, 2021 •

Copy link
Copy Markdown

Hello @grlee77! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-04-01 12:00:55 UTC

Co-authored-by: Stefan van der Walt <[email protected]>
@grlee77
grlee77 force-pushed the channel_axis_filters branch from 0620227 to 01a20b0 Compare April 1, 2021 11:37
@grlee77
grlee77 force-pushed the channel_axis_filters branch from 01a20b0 to e4ec5b9 Compare April 1, 2021 12:00
@grlee77 grlee77 added this to the 0.19 milestone Apr 21, 2021

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

LGTM. Thank you Greg!

Comment thread skimage/feature/_hog.py
if multichannel is None:
multichannel = (image.ndim == 3)

multichannel = channel_axis is not 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.

Don't we need some moveaxis logic here @grlee77 @alexdesiqueira?

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.

never mind, just saw that @channel_as_last_axis takes care of that for us. Got confused because other functions don't do that. 🙏

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

Labels

📜 type: API Involves API change(s)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants