SkillAgentSearch skills...

Morph

Morphological image processing

Install / Use

/learn @DanielRapp/Morph
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Morphological image processing

This is a simple tool for playing around with morphological image processing.

How to use it

Here's a simple example

<html>
  <body>
    <canvas id="demo" width=500 height=500></canvas>
    <script src="morph.js"></script>
    <script>
      var img = morph.generateRandomImage(500, 500, 100000);
      var structElem = morph.generateStructureElement(10);
      var morphResult = morph.dilate(img, structElem);

      var canvas = document.getElementById('demo');
      morph.drawImage(morphResult, canvas);
    </script>
  </body>
</html>

All that's really required is morph.complement, morph.union and morph.erode. Read more in the companion post on this.

What to contribute?

There are a bunch of cools things that could added. Like topology preserving mappings, etc. Read more here, and here and in this book.

View on GitHub
GitHub Stars37
CategoryDevelopment
Updated1y ago
Forks3

Languages

JavaScript

Security Score

75/100

Audited on Nov 27, 2024

No findings