Close
Description
Calculates the binary morphological operation close 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::Close in C++, resp iplt.alg.morph.Close in Python.
Examples
C++
#include <iplt/image.hh> #include <iplt/alg/morph/close.hh> using namespace iplt; int main() { ImageHandle img = LoadImage("..."); img.ApplyIP( alg::morph::Close(alg::morph::Create8n()) ); return 0; }
Python
from iplt import * img = LoadImage("...") img.ApplyIP( alg.morph.Close(alg.morph.Create8n()) )
|
| |
| original image | after close operation |
Back to Algorithm List
Attachments
- bricks_close.png (4.6 kB) - added by andreas on 08/02/06 15:04:22.
