Skip to content

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

@kevinsmia1939

Description

@kevinsmia1939

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions