Discrete 2D shape -morpho-logical operators [FAST]

Basic logical operators (intersection, union, xor) between discrete 2D shapes. Works for convex or non convex shapes.
2 Downloads
Updated 24 Aug 2024
Please first check and run the example file 'test_discrete_2D_shapes_logical_operators.m'
I and J inputs must be binary / logical images of the same size.
You may check together :
  • shape1.png and shape2.png
  • shape3.png and shape4.png
  • complexgear.png and pseudoflower.png
Be sure to download all the files (example images attached)
Please don't forget to rate if this code helped you. Thanks ! ;-)

Cite As

Nicolas Douillet (2024). Discrete 2D shape -morpho-logical operators [FAST] (https://github.com/NicolasDouillet/Discrete_2D_shape_operators/releases/tag/v1.1), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.