Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pims.as_grey instead of image[:, :, 1] in walkthrough tutorial. #752

Open
kevinsmia1939 opened this issue Feb 9, 2024 · 0 comments
Open

Comments

@kevinsmia1939
Copy link

This tutorial https://soft-matter.github.io/trackpy/v0.6.1/tutorial/walkthrough.html
suggest using

def gray(image):
    return image[:, :, 1]  # Take just the green channel

frames = gray(pims.open('../sample_data/bulk_water/*.png'))

To open image as grey scale.

But since pims.as_grey are more concise, should this be change?

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

No branches or pull requests

2 participants