Skip to content

Confusion of labels and images in labels_shapes_interchangeability.ipynb #146

@fbnrst

Description

@fbnrst

I just went through the vectorization/rasterization tutorial.

What I found confusing is that it starts by claiming to convert between shapes and labels:

"2. Rasterization, i.e. the convertion of shapes (or points) into labels\n",

But then, later, shapes are not converted to labels, but to images:

"We want to transform the following polygons into images:"

I wanted to convert shapes to labels, but it took me a while to realize I needed to set return_regions_as_labels=True.
I imagine that converting from shape to label is needed more often, because then you can use the labels to aggregate. Would it make sense to update the example to conversion into labels instead of images?

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