EasyImage::GetProfilePeaks

Detects peaks in a gray-level profile. Maxima as well as minima are considered.

Namespace: Euresys::Open_eVision

[C++]

void GetProfilePeaks(
   EBW8Vector* profile,
   EPeakVector* peaks,
   OEV_UINT32 lowThreshold,
   OEV_UINT32 highThreshold,
   OEV_UINT32 minimumAmplitude,
   OEV_UINT32 minimumArea
)

void GetProfilePeaks(
   EBW16Vector* profile,
   EPeakVector* peaks,
   OEV_UINT32 lowThreshold,
   OEV_UINT32 highThreshold,
   OEV_UINT32 minimumAmplitude,
   OEV_UINT32 minimumArea
)

Parameters

profile

Pointer to the source vector.

peaks

Pointer to the destination vector.

lowThreshold

Threshold used for the minimum peaks.

highThreshold

Threshold used for the maximum peaks.

minimumAmplitude

Minimum amplitude required for a peak to be kept (may be 0).

minimumArea

Minimum area required for a peak to be kept (may be 0).

Remarks

To eliminate false peaks due to noise, two selection criteria are used.
A peak is the portion of the signal that is above [below] a given threshold. The peak amplitude is defined to be the difference between the threshold value and the maximum [minimum] signal value. The peak area is defined to be the surface comprised between the signal curve and the horizontal line at the given threshold.
The result is stored in a peaks vector.

EasyImage.GetProfilePeaks

Detects peaks in a gray-level profile. Maxima as well as minima are considered.

Namespace: Euresys.Open_eVision

[C#]

void GetProfilePeaks(
   Euresys.Open_eVision.EBW8Vector profile,
   Euresys.Open_eVision.EPeakVector peaks,
   uint lowThreshold,
   uint highThreshold,
   uint minimumAmplitude,
   uint minimumArea
)

void GetProfilePeaks(
   Euresys.Open_eVision.EBW16Vector profile,
   Euresys.Open_eVision.EPeakVector peaks,
   uint lowThreshold,
   uint highThreshold,
   uint minimumAmplitude,
   uint minimumArea
)

Parameters

profile

Pointer to the source vector.

peaks

Pointer to the destination vector.

lowThreshold

Threshold used for the minimum peaks.

highThreshold

Threshold used for the maximum peaks.

minimumAmplitude

Minimum amplitude required for a peak to be kept (may be 0).

minimumArea

Minimum area required for a peak to be kept (may be 0).

Remarks

To eliminate false peaks due to noise, two selection criteria are used.
A peak is the portion of the signal that is above [below] a given threshold. The peak amplitude is defined to be the difference between the threshold value and the maximum [minimum] signal value. The peak area is defined to be the surface comprised between the signal curve and the horizontal line at the given threshold.
The result is stored in a peaks vector.