Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to dilate or erode image in Octave

📅 2014-May-12 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ dilation, erosion, matlab, octave ⬩ 📚 Archive

$ sudo apt-get install octave-image
$ se = strel("square", 3);
$ se
1 1 1
1 1 1
1 1 1
$ B = imdilate(A, se);
$ D = imerode(C, se);

These functions are from Matlab and so will work on it too.

Tried with: Octave 3.8.1 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧