Calculates the binary morphological operation close on the image. The constructor expects a structuring element in form of an image. The structuring element can either be created manually or one of the default elements can be taken.
#include <iplt/image.hh>
#include <iplt/alg/close.hh>
using namespace iplt;
int main()
{
ImageHandle img = LoadImage("...");
img.ApplyIP( alg::Close(alg::morph::Create8n()) );
return 0;
}
from iplt import *
img = LoadImage("...")
img.ApplyIP( alg.Close(alg.morph.Create8n()) )