Erode

Description

Does a binary erosion on the image. The constructor expects a structuring element in form of an ImageHandle. The structuring element can either be created manually or one of the default elements? can be taken.

Full scope is iplt::alg::morph::Erode in C++, resp iplt.alg.morph.Erode in Python.

Examples

C++

#include <iplt/image.hh>
#include <iplt/alg/morph/erode.hh>

using namespace iplt;

int main() 
{
  ImageHandle img = LoadImage("...");
  img.ApplyIP( alg::morph::Erode(alg::morph::Create4n()) );

  return 0;
}

Python

from iplt import *
img = LoadImage("...")
img.ApplyIP( alg.morph.Erode(alg.morph.Create4n()) )
Error: Macro Image(erode.png,nolink) failed
Attachment Alg/Morph/Erode: erode.png does not exist.
Error: Macro Image(erode22.png,nolink) failed
Attachment Alg/Morph/Erode: erode22.png does not exist.
original image after open operation

Back to Alg/Morph