Skip to content

Support variable number of channels in rag_mean_color - #5301

Open
aman-mehra wants to merge 9 commits into
scikit-image:pre-megamove-integrationfrom
aman-mehra:rag-variable-channels
Open

aman-mehra wants to merge 9 commits into
scikit-image:pre-megamove-integrationfrom
aman-mehra:rag-variable-channels

Conversation

@aman-mehra

Copy link
Copy Markdown

Description

Fixes #4293
Enhancement to rag_mean_color, allowing varying number of channels in the input image.

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.

@pep8speaks

pep8speaks commented Mar 30, 2021 •

Copy link
Copy Markdown

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

Line 1451:1: W293 blank line contains whitespace

Comment last updated at 2021-04-01 05:27:06 UTC

@aman-mehra aman-mehra changed the title Rag with variable channels Support variable number of channels in rag_mean_color Mar 30, 2021

@grlee77 grlee77 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @amehra-github, this looks good to me (although I am unfamiliar with the future/graph module). I requested removing one whitespace change in an unrelated file.


_, _, V = np.linalg.svd(A)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove change in unrelated file

@matthew-brett
matthew-brett changed the base branch from main to pre-megamove-integration June 19, 2026 15:22
@matthew-brett

Copy link
Copy Markdown
Contributor

We have changed the base branch for this PR from the main branch to the pre-megamove-integration branch.

Summary - what this means for your PR

You can continue to work on your PR, now based on pre-megamove-integration. You should update your branch to the current state of pre-megamove-integration (this is what the Github "Update branch" button does). Please do not merge the scikit-image main branch into your PR branch.

Once we've merged your PR into the pre-megamove-integration branch, we'll update your changes for Megamove, and merge into the main branch.

In addition - our automated script detected that your branch had merge conflicts with the pre-Megamove branch. Please make sure to merge in the pre-megamove-integration branch, and resolve the merge conflicts in the way that you want.

Read on for the Megamove rationale, and more detailed instructions.

Details

Rationale

We've changed the base branch to make it easier and smoother to continue to work on your PR, while we work through a rather large change in the directory structure of the repository - a change that we have called Megamove.

See the Megamove explanation issue for more detail.

Changing the base branch means you do not see merge conflicts related to the Megamove change, and can continue to work with the repository in its original state, without worrying about porting those changes across to the new post-Megamove structure.

As you'll see in the linked issue, you can continue to work on your PR as before, and you can continue to use the Github GUI to "Update branch" - this updates from the new pre-megamove-integration branch. However, there is one caveat: please, do not try and merge the scikit-image main branch into this one, but instead, keep track of the pre-megamove-integration branch. The issue explains more.

To emphasize again, do not try and merge the scikit-image main branch. You will get Megamove related merge conflicts that are rather tricky to resolve correctly.

When we've approved your PR, we'll merge into the pre-megamove-integration branch, and then process it so we can merge it into the main branch. We'll let you know when we've merged your PR changes into main.

Any questions, please reply here.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for grayscale or varying numbers of channels in rag_mean_color

4 participants