Skip to content

West instead of East in label initialization #1

@elheck

Description

@elheck

First of all, thank you for your contribution.
In your CCL algorithm in the line referenced below you are looking at the linear address of what you claim is the eastern neighbour of the current pixel (That is what the documentation above says), but when subtracting 1 from ix in iy *numCols + ix-1 you would be looking at the western neighbour.

label = (nyxm1) ? iy *numCols + ix-1 : iy*numCols + ix;

I will propose two pull requests that would address either a fix in documentation or in code.
Please correct me if I am wrong, but I think this is either a mistake in documentation or the algorithm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions