Skip to content

binary_morphology - #7

Merged
zeakey merged 23 commits into
mainfrom
feature/binary_morphology
May 11, 2026
Merged

binary_morphology#7
zeakey merged 23 commits into
mainfrom
feature/binary_morphology

Conversation

@moliflower

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 4, 2026 10:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new morphology subpackage with a generate_binary_structure helper (similar to SciPy’s neighborhood generator) and updates the top-level torchmorph exports accordingly.

Changes:

  • Add torchmorph.morphology.generate_binary_structure implementation.
  • Export generate_binary_structure from torchmorph.morphology and torchmorph.
  • Remove the existing binary_dilation / binary_erosion module and top-level exports.

Reviewed changes

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

File Description
torchmorph/morphology/structure.py Adds generate_binary_structure implementation.
torchmorph/morphology/__init__.py Re-exports generate_binary_structure from the new subpackage.
torchmorph/dilation_erosion.py Removes the prior dilation/erosion implementation.
torchmorph/__init__.py Updates public exports: adds generate_binary_structure, removes binary_dilation / binary_erosion.

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

@intcomp intcomp deleted a comment from Copilot AI Apr 4, 2026
@intcomp intcomp deleted a comment from Copilot AI Apr 4, 2026
@intcomp intcomp deleted a comment from Copilot AI Apr 4, 2026
@intcomp intcomp deleted a comment from Copilot AI Apr 4, 2026
@intcomp intcomp deleted a comment from Copilot AI Apr 4, 2026
@intcomp intcomp deleted a comment from Copilot AI Apr 4, 2026
@zeakey
zeakey merged commit 0e69ed4 into main May 11, 2026
2 checks passed
@zeakey
zeakey deleted the feature/binary_morphology branch May 11, 2026 13:04
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