Skip to content

Add binary morphology commands#56

Merged
yangfei merged 1 commit into
mainfrom
feature/binary-morphology
May 16, 2026
Merged

Add binary morphology commands#56
yangfei merged 1 commit into
mainfrom
feature/binary-morphology

Conversation

@yangfei
Copy link
Copy Markdown
Owner

@yangfei yangfei commented May 16, 2026

Summary

  • Add BinaryImage morphology operations: erode, dilate, open, and close.
  • Use a fixed 3x3 square neighborhood with out-of-bounds pixels treated as false.
  • Add Process menu commands for Erode, Dilate, Open, and Close.
  • Accept only binary grayscale images with pixel values 0 or 255 for app morphology commands; unsupported grayscale input fails clearly.

Verification

  • dotnet build ImageJCsharp.sln
  • dotnet test tests/ImageJCsharp.Core.Tests/ImageJCsharp.Core.Tests.csproj
  • dotnet test tests/ImageJCsharp.App.Tests/ImageJCsharp.App.Tests.csproj

Closes #23

@yangfei yangfei merged commit 762eae3 into main May 16, 2026
1 check passed
@yangfei yangfei deleted the feature/binary-morphology branch May 16, 2026 09: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.

Add binary morphology commands

1 participant