Canny

Description

Performs a Canny edge detection. Two parameters for upper and lower threshold have to be given to the constructor (normalized between 0 and 1).

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

Examples

C++

#include <iplt/image.hh>
#include <iplt/alg/canny.hh>

using namespace iplt;

int main() 
{
  ImageHandle img = LoadImage("lena.tif");
  img.ApplyIP( alg::Canny(0.4,0.1) );

  return 0;
}

Python

from iplt import *
img = LoadImage("lena.tif")
img.ApplyIP( alg.Canny(0.4,0.1) )

Example images

original image after edge detection

Back to Algorithm List

Attachments