Table Of Contents

Previous topic

Skeleton

Next topic

Split Gauss 2d

Sobel edge detection

Description

Performs a sobel edge detection. The gradient vectors are represented by complex values.

Examples

C++

#include <ost/io/load_map.hh>
#include <iplt/alg/sobel.hh>


int main()
{
  ImageHandle img = ost::io::LoadImage("lena.tif");
  img.ApplyIP( iplt::alg::Sobel() );

  return 0;
}

Python

from ost.io import *
from iplt import *
img = LoadImage("lena.tif")
img.ApplyIP( alg.Sobel() )

Example image

../_images/sobel.png

Figure 1: left: original image, right image after edge detection

Python interface

class iplt.alg.Sobel((object)arg1)
__init__((object)arg1) → None :
C++ signature :
void __init__(_object*)

C++ interface