CVB.Net 14.1
Edge Class Reference

Collection of functions for Edge detection. More...

Static Public Member Functions

static EdgeResult FindFirst (ImagePlane plane, EdgeSearchMode mode, EdgeType type, double threshold)
 Find the first edge (as specified) in the whole plane . More...
 
static EdgeResult FindFirst (ImagePlane plane, EdgeSearchMode mode, EdgeType type, double threshold, double density)
 Find the first edge (as specified) in the whole plane . More...
 
static EdgeResult FindFirst (ImagePlane plane, Area2D aoi, EdgeSearchMode mode, EdgeType type, double threshold)
 Find the first edge (as specified) in the aoi . More...
 
static EdgeResult FindFirst (ImagePlane plane, Area2D aoi, EdgeSearchMode mode, EdgeType type, double threshold, double density)
 Find the first edge (as specified) in the aoi . More...
 
static EdgeResultPair FindPair (ImagePlane plane, EdgeSearchMode mode, EdgeType type1, EdgeType type2, double threshold)
 Find an edge pair (as specified) in the image plane . More...
 
static EdgeResultPair FindPair (ImagePlane plane, EdgeSearchMode mode, EdgeType type1, EdgeType type2, double threshold, double density)
 Find an edge pair (as specified) in the image plane . More...
 
static EdgeResultPair FindPair (ImagePlane plane, Area2D aoi, EdgeSearchMode mode, EdgeType type1, EdgeType type2, double threshold)
 Find an edge pair (as specified) in the image plane . More...
 
static EdgeResultPair FindPair (ImagePlane plane, Area2D aoi, EdgeSearchMode mode, EdgeType type1, EdgeType type2, double threshold, double density)
 Find an edge pair (as specified) in the image plane . More...
 
static EdgeResultPair FindPair (ImagePlane plane, EdgeSearchMode mode, EdgeType type1, double threshold1, EdgeType type2, double threshold2)
 Find an edge pair (as specified) in the image plane . More...
 
static EdgeResultPair FindPair (ImagePlane plane, EdgeSearchMode mode, EdgeType type1, double threshold1, EdgeType type2, double threshold2, double density)
 Find an edge pair (as specified) in the image plane . More...
 
static EdgeResultPair FindPair (ImagePlane plane, Area2D aoi, EdgeSearchMode mode, EdgeType type1, double threshold1, EdgeType type2, double threshold2)
 Find an edge pair (as specified) in the aoi . More...
 
static EdgeResultPair FindPair (ImagePlane plane, Area2D aoi, EdgeSearchMode mode, EdgeType type1, double threshold1, EdgeType type2, double threshold2, double density)
 Find an edge pair (as specified) in the aoi . More...
 
static EdgeResult[] FindAll (ImagePlane plane, EdgeSearchMode mode, EdgeType type, double threshold)
 Find all edges inside an plane . More...
 
static EdgeResult[] FindAll (ImagePlane plane, EdgeSearchMode mode, EdgeType type, double threshold, double density)
 Find all edges inside an plane . More...
 
static EdgeResult[] FindAll (ImagePlane plane, Area2D aoi, EdgeSearchMode mode, EdgeType type, double threshold)
 Find all edges inside an aoi . More...
 
static EdgeResult[] FindAll (ImagePlane plane, Area2D aoi, EdgeSearchMode mode, EdgeType type, double threshold, double density)
 Find all edges inside an aoi . More...
 
static EdgeResult FindBest (ImagePlane plane, EdgeType type)
 Use the 2nd derivative method to find the edge with the highest intensity in the plane . More...
 
static EdgeResult FindBest (ImagePlane plane, EdgeType type, double density)
 Use the 2nd derivative method to find the edge with the highest intensity in the plane . More...
 
static EdgeResult FindBest (ImagePlane plane, Area2D aoi, EdgeType type)
 Use the 2nd derivative method to find the edge with the highest intensity in the area of interest. More...
 
static EdgeResult FindBest (ImagePlane plane, Area2D aoi, EdgeType type, double density)
 Use the 2nd derivative method to find the edge with the highest intensity in the area of interest. More...
 
static void WriteProjection (ImagePlane plane, Area2D aoi)
 Write the projection that Edge is using internally as the basis for its calculations into an image plane (might be useful for debugging purposes). More...
 
static void WriteProjection (ImagePlane plane, Area2D aoi, double density)
 Write the projection that Edge is using internally as the basis for its calculations into an image plane (might be useful for debugging purposes). More...
 

Detailed Description

Collection of functions for Edge detection.

Member Function Documentation

◆ FindAll() [1/4]

static EdgeResult[] FindAll ( ImagePlane  plane,
Area2D  aoi,
EdgeSearchMode  mode,
EdgeType  type,
double  threshold 
)
static

Find all edges inside an aoi .

Parameters
planePlane in which to search.
aoiArea to search.
modeSearch mode to use.
typeType of edge to be searched for.
thresholdThreshold to apply.
Returns
Found edges.
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindAll() [2/4]

static EdgeResult[] FindAll ( ImagePlane  plane,
Area2D  aoi,
EdgeSearchMode  mode,
EdgeType  type,
double  threshold,
double  density 
)
static

Find all edges inside an aoi .

Parameters
planePlane in which to search.
aoiArea to search.
modeSearch mode to use.
typeType of edge to be searched for.
thresholdThreshold to apply.
densitySearch density to use.
Returns
Found edges.
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindAll() [3/4]

static EdgeResult[] FindAll ( ImagePlane  plane,
EdgeSearchMode  mode,
EdgeType  type,
double  threshold 
)
static

Find all edges inside an plane .

Parameters
planePlane in which to search.
modeSearch mode to use.
typeType of edge to be searched for.
thresholdThreshold to apply.
Returns
Found edges.
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindAll() [4/4]

static EdgeResult[] FindAll ( ImagePlane  plane,
EdgeSearchMode  mode,
EdgeType  type,
double  threshold,
double  density 
)
static

Find all edges inside an plane .

Parameters
planePlane in which to search.
modeSearch mode to use.
typeType of edge to be searched for.
thresholdThreshold to apply.
densitySearch density to use.
Returns
Found edges.
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindBest() [1/4]

static EdgeResult FindBest ( ImagePlane  plane,
Area2D  aoi,
EdgeType  type 
)
static

Use the 2nd derivative method to find the edge with the highest intensity in the area of interest.

Parameters
planePlane to scan
aoiArea to scan
typeType of edge to be searched for.
Returns
The best result (or EdgeResult.Nothing if nothing was found e.g. because the area is outside the image)
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindBest() [2/4]

static EdgeResult FindBest ( ImagePlane  plane,
Area2D  aoi,
EdgeType  type,
double  density 
)
static

Use the 2nd derivative method to find the edge with the highest intensity in the area of interest.

Parameters
planePlane to scan
aoiArea to scan
typeType of edge to be searched for.
densityDensity at which to scan
Returns
The best result (or EdgeResult.Nothing if nothing was found e.g. because the area is outside the image)
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindBest() [3/4]

static EdgeResult FindBest ( ImagePlane  plane,
EdgeType  type 
)
static

Use the 2nd derivative method to find the edge with the highest intensity in the plane .

Parameters
planePlane to scan
typeType of edge to be searched for.
Returns
The best result (or EdgeResult.Nothing if nothing was found e.g. because the area is outside the image)
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindBest() [4/4]

static EdgeResult FindBest ( ImagePlane  plane,
EdgeType  type,
double  density 
)
static

Use the 2nd derivative method to find the edge with the highest intensity in the plane .

Parameters
planePlane to scan
typeType of edge to be searched for.
densityDensity at which to scan
Returns
The best result (or EdgeResult.Nothing if nothing was found e.g. because the area is outside the image)
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindFirst() [1/4]

static EdgeResult FindFirst ( ImagePlane  plane,
Area2D  aoi,
EdgeSearchMode  mode,
EdgeType  type,
double  threshold 
)
static

Find the first edge (as specified) in the aoi .

Parameters
planePlane to search in.
aoiArea to scan.
modeSearch mode.
typeType of edge to be searched for.
thresholdEdge threshold to apply.
Returns
Found edge (or EdgeResult.Empty if no edge was found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindFirst() [2/4]

static EdgeResult FindFirst ( ImagePlane  plane,
Area2D  aoi,
EdgeSearchMode  mode,
EdgeType  type,
double  threshold,
double  density 
)
static

Find the first edge (as specified) in the aoi .

Parameters
planePlane to search in.
aoiArea to scan.
modeSearch mode.
typeType of edge to be searched for.
thresholdEdge threshold to apply.
densityDensity at which to scan the aoi where 1.0 means scanning all pixels.
Returns
Found edge (or EdgeResult.Empty if no edge was found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindFirst() [3/4]

static EdgeResult FindFirst ( ImagePlane  plane,
EdgeSearchMode  mode,
EdgeType  type,
double  threshold 
)
static

Find the first edge (as specified) in the whole plane .

Parameters
planePlane to search in.
modeSearch mode.
typeType of edge to be searched for.
thresholdEdge threshold to apply.
Returns
Found edge (or EdgeResult.Empty if no edge was found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindFirst() [4/4]

static EdgeResult FindFirst ( ImagePlane  plane,
EdgeSearchMode  mode,
EdgeType  type,
double  threshold,
double  density 
)
static

Find the first edge (as specified) in the whole plane .

Parameters
planePlane to search in.
modeSearch mode.
typeType of edge to be searched for.
thresholdEdge threshold to apply.
densityDensity at which to scan the
Returns
Found edge (or EdgeResult.Empty if no edge was found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindPair() [1/8]

static EdgeResultPair FindPair ( ImagePlane  plane,
Area2D  aoi,
EdgeSearchMode  mode,
EdgeType  type1,
double  threshold1,
EdgeType  type2,
double  threshold2 
)
static

Find an edge pair (as specified) in the aoi .

Parameters
planeplane to search in
aoiarea to scan
modesearch mode
type1Type of edge to be searched for.
threshold1threshold to apply when looking for the first edge (left to right in the aoi )
type2Type of edge to be searched for.
threshold2threshold to apply when looking for the second edge (right to left in the aoi )
Returns
Search results (containing EdgeResult.Empty if not found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindPair() [2/8]

static EdgeResultPair FindPair ( ImagePlane  plane,
Area2D  aoi,
EdgeSearchMode  mode,
EdgeType  type1,
double  threshold1,
EdgeType  type2,
double  threshold2,
double  density 
)
static

Find an edge pair (as specified) in the aoi .

Parameters
planeplane to search in
aoiarea to scan
modesearch mode
type1Type of edge to be searched for.
threshold1threshold to apply when looking for the first edge (left to right in the aoi )
type2Type of edge to be searched for.
threshold2threshold to apply when looking for the second edge (right to left in the aoi )
densitydensity at which to scan the aoi
Returns
Search results (containing EdgeResult.Empty if not found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindPair() [3/8]

static EdgeResultPair FindPair ( ImagePlane  plane,
Area2D  aoi,
EdgeSearchMode  mode,
EdgeType  type1,
EdgeType  type2,
double  threshold 
)
static

Find an edge pair (as specified) in the image plane .

Parameters
planePlane to search in
aoiArea to scan
modeSearch mode
type1Type of edge to be searched for.
type2Type of edge to be searched for.
thresholdThreshold to apply when looking for both edges
Returns
Search results (containing EdgeResult.Empty if not found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindPair() [4/8]

static EdgeResultPair FindPair ( ImagePlane  plane,
Area2D  aoi,
EdgeSearchMode  mode,
EdgeType  type1,
EdgeType  type2,
double  threshold,
double  density 
)
static

Find an edge pair (as specified) in the image plane .

Parameters
planePlane to search in
aoiArea to scan
modeSearch mode
type1Type of edge to be searched for.
type2Type of edge to be searched for.
thresholdThreshold to apply when looking for both edges
densitydensity at which to scan the image plane .
Returns
Search results (containing EdgeResult.Empty if not found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindPair() [5/8]

static EdgeResultPair FindPair ( ImagePlane  plane,
EdgeSearchMode  mode,
EdgeType  type1,
double  threshold1,
EdgeType  type2,
double  threshold2 
)
static

Find an edge pair (as specified) in the image plane .

Parameters
planePlane to search in
modesearch mode
type1Type of edge to be searched for.
threshold1threshold to apply when looking for the first edge (left to right in the plane )
type2Type of edge to be searched for.
threshold2threshold to apply when looking for the second edge (right to left in the plane )
Returns
Search results (containing EdgeResult.Empty if not found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindPair() [6/8]

static EdgeResultPair FindPair ( ImagePlane  plane,
EdgeSearchMode  mode,
EdgeType  type1,
double  threshold1,
EdgeType  type2,
double  threshold2,
double  density 
)
static

Find an edge pair (as specified) in the image plane .

Parameters
planeplane to search in
modesearch mode
type1Type of edge to be searched for.
threshold1threshold to apply when looking for the first edge (left to right in the image plane )
type2Type of edge to be searched for.
threshold2threshold to apply when looking for the second edge (right to left in the plane )
densitydensity at which to scan the image plane .
Returns
Search results (containing EdgeResult.Empty if not found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindPair() [7/8]

static EdgeResultPair FindPair ( ImagePlane  plane,
EdgeSearchMode  mode,
EdgeType  type1,
EdgeType  type2,
double  threshold 
)
static

Find an edge pair (as specified) in the image plane .

Parameters
planePlane to search in
modeSearch mode
type1Type of edge to be searched for.
type2Type of edge to be searched for.
thresholdThreshold to apply when looking for both edges
Returns
Search results (containing EdgeResult.Empty if not found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ FindPair() [8/8]

static EdgeResultPair FindPair ( ImagePlane  plane,
EdgeSearchMode  mode,
EdgeType  type1,
EdgeType  type2,
double  threshold,
double  density 
)
static

Find an edge pair (as specified) in the image plane .

Parameters
planePlane to search in
modeSearch mode
type1Type of edge to be searched for.
type2Type of edge to be searched for.
thresholdThreshold to apply when looking for both edges
densitydensity at which to scan the image plane .
Returns
Search results (containing EdgeResult.Empty if not found).
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ WriteProjection() [1/2]

static void WriteProjection ( ImagePlane  plane,
Area2D  aoi 
)
static

Write the projection that Edge is using internally as the basis for its calculations into an image plane (might be useful for debugging purposes).

Parameters
planeplane to write the projection to
aoiarea of interest to project
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.

◆ WriteProjection() [2/2]

static void WriteProjection ( ImagePlane  plane,
Area2D  aoi,
double  density 
)
static

Write the projection that Edge is using internally as the basis for its calculations into an image plane (might be useful for debugging purposes).

Parameters
planeplane to write the projection to
densitydensity at which to scan
aoiarea of interest to project
Exceptions
ObjectDisposedExceptionIf the plane to work on has already been disposed.