All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class feature.EdgeMap

java.lang.Object
   |
   +----feature.EdgeMap

public class EdgeMap
extends Object
Realization of canny edge detection algorithm

Author:
Di Zhong (Columbia University)

Variable Index

 o map
Two dimension byte array of edgemap data, map[i][j]= 0 - no-edge pixel ; >0 - edge pixel.

Constructor Index

 o EdgeMap(float[][], float)
Construct an edge map from a gray level image using Canny operator

Method Index

 o savePGM(String)
Save EdgeMap into a PGM file

Variables

 o map
 public byte map[][]
Two dimension byte array of edgemap data, map[i][j]= 0 - no-edge pixel ; >0 - edge pixel.

Constructors

 o EdgeMap
 public EdgeMap(float img[][],
                float sigma)
Construct an edge map from a gray level image using Canny operator

Parameters:
img - original gray-level image (Note: it will be smoothed)
sigma - smooth coefficient

Methods

 o savePGM
 public void savePGM(String fname)
Save EdgeMap into a PGM file

Parameters:
fname - The file name

All Packages  Class Hierarchy  This Package  Previous  Next  Index