Skip to content

DOCS: Description of example in skimage.feature.graycomatrix documentation does not seem to match the code #7293

Open

Description

@FedericoWZhaw

Description:

In the scikit image documentation on the gray-level co-occurrence matrix, the Example states: "Compute 2 GLCMs: One for a 1-pixel offset to the right, and one for a 1-pixel offset upwards."

The code below however computes 4 GLCMs
result = graycomatrix(image, [1], [0, np.pi/4, np.pi/2, 3*np.pi/4], levels=4).

Should it not just be
result = graycomatrix(image, [1], [0, np.pi/2], levels=4)?

Activity

  1. lagru commented on Jan 15, 2024

    @lagru
    Member

    Thanks for the hint @FedericoWZhaw! #955 makes me think that that when the other angles were added the comment was just forgotten. Would you like to make a PR that fixes the comment? 😊 🙏

  2. added
    📄 type: Documentation
    and removed on Jan 15, 2024
  3. FedericoWZhaw commented on Jan 15, 2024

    @FedericoWZhaw
    ContributorAuthor
  4. github-actions commented on Jul 14, 2024

    @github-actions
  5. removed
    😴 Dormant
    on Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    📄 type: Documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions