Performs a Canny edge detection. Two parameters for upper and lower threshold have to be given to the constructor (normalized between 0 and 1).
#include <ost/io/load_map.hh>
#include <iplt/alg/canny.hh>
int main()
{
ImageHandle img = ost::io::LoadImage("lena.tif");
img.ApplyIP( iplt::alg::Canny(0.4,0.1) );
return 0;
}
from ost.io import *
from iplt import *
img = LoadImage("lena.tif")
img.ApplyIP( alg.Canny(0.4,0.1) )