Skip to content

add texture#14

Merged
MikeLippincott merged 4 commits intoWayScience:mainfrom
MikeLippincott:texture
May 7, 2026
Merged

add texture#14
MikeLippincott merged 4 commits intoWayScience:mainfrom
MikeLippincott:texture

Conversation

@MikeLippincott
Copy link
Copy Markdown
Member

Description

This PR adds the texture module. Tests will fail due to not having the image loading functions present.

What kind of change(s) are included?

  • Documentation (changes docs or other related content)
  • Bug fix (fixes an issue).
  • Enhancement (adds functionality).
  • Breaking change (these changes would cause existing functionality to not work as expected).

Checklist

Please ensure that all boxes are checked before indicating that this pull request is ready for review.

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have searched for existing content to ensure this is not a duplicate.
  • I have performed a self-review of these additions (including spelling, grammar, and related).
  • These changes pass all pre-commit checks.
  • I have added comments to my code to help provide understanding
  • I have added a test which covers the code changes found within this PR
  • I have deleted all non-relevant text in this pull request template.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a new texture featurization module based on Haralick features and introduces unit tests covering scaling, per-object extraction, masking, and error handling.

Changes:

  • Implement scale_image() and compute_texture() using mahotas.features.haralick.
  • Add a new test suite for texture featurization (scaling behavior, schema, masking, error-paths).
  • Update project dependencies and mark several roadmap items as completed.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 13 comments.

File Description
src/zedprofiler/featurization/texture.py Implements Haralick-based texture features and grayscale scaling helper
tests/featurization/test_texture.py Adds tests for scaling and texture feature extraction behavior
pyproject.toml Adds new runtime dependencies for the texture implementation
ROADMAP.md Updates roadmap checklist/status for completed modules

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

from typing import Never

import numpy as np
from _pytest.monkeypatch import MonkeyPatch
Comment thread src/zedprofiler/featurization/texture.py Outdated
Comment thread src/zedprofiler/featurization/texture.py Outdated
Comment on lines +115 to +116
selected_label_object = label_object.copy()
selected_label_object[selected_label_object != label] = 0
Comment thread src/zedprofiler/featurization/texture.py Outdated
Comment thread ROADMAP.md
Comment thread ROADMAP.md
Comment thread ROADMAP.md
Comment thread ROADMAP.md
Comment thread src/zedprofiler/featurization/texture.py
Copy link
Copy Markdown

@wli51 wli51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/zedprofiler/featurization/texture.py
Comment thread src/zedprofiler/featurization/texture.py
Comment thread src/zedprofiler/featurization/texture.py Outdated
Comment thread src/zedprofiler/featurization/texture.py Outdated
Comment thread src/zedprofiler/featurization/texture.py Outdated
Comment thread src/zedprofiler/featurization/texture.py Outdated
Comment thread src/zedprofiler/featurization/texture.py Outdated
Comment thread src/zedprofiler/featurization/texture.py Outdated
@MikeLippincott MikeLippincott merged commit a7c17ae into WayScience:main May 7, 2026
0 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants