EasyImage::MatchFrames

Determines the optimal shift amplitude by comparing two successive lines of the image.

Namespace: Euresys::Open_eVision

[C++]

void MatchFrames(
   EROIBW8* sourceImage,
   int fixedRow,
   int minimumOffset,
   int maximumOffset,
   int& bestOffset
)

void MatchFrames(
   EROIBW16* sourceImage,
   int fixedRow,
   int minimumOffset,
   int maximumOffset,
   int& bestOffset
)

void MatchFrames(
   EROIC24* sourceImage,
   int fixedRow,
   int minimumOffset,
   int maximumOffset,
   int& bestOffset
)

Parameters

sourceImage

Pointer to the source image/ROI.

fixedRow

Index of the line used for comparison. Line fixedRow remains in place and is compared with line (fixedRow + 1), shifted by some amount.

minimumOffset

Minimum value of the allowed offset (positive to the right).

maximumOffset

Maximum value of the allowed offset (positive to the right).

bestOffset

Estimated shift amplitude.

Remarks

These lines should be chosen such that they cross some edges or non-uniform areas.
When an image is interlaced, the two frames (even and odd lines) are not recorded at the same time. If there is movement in the scene, a visible artifact can result (the edges of objects exhibit a "comb" effect).
When the movement is uniform and horizontal (objects on a conveyor belt), one cure to this problem is to shift one of the frames horizontally with respect to the other frame (using EasyImage::RealignFrame). The amplitude of the shift can be estimated automatically.

EasyImage.MatchFrames

Determines the optimal shift amplitude by comparing two successive lines of the image.

Namespace: Euresys.Open_eVision

[C#]

void MatchFrames(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   int fixedRow,
   int minimumOffset,
   int maximumOffset,
   ref int bestOffset
)

void MatchFrames(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   int fixedRow,
   int minimumOffset,
   int maximumOffset,
   ref int bestOffset
)

void MatchFrames(
   Euresys.Open_eVision.EROIC24 sourceImage,
   int fixedRow,
   int minimumOffset,
   int maximumOffset,
   ref int bestOffset
)

Parameters

sourceImage

Pointer to the source image/ROI.

fixedRow

Index of the line used for comparison. Line fixedRow remains in place and is compared with line (fixedRow + 1), shifted by some amount.

minimumOffset

Minimum value of the allowed offset (positive to the right).

maximumOffset

Maximum value of the allowed offset (positive to the right).

bestOffset

Estimated shift amplitude.

Remarks

These lines should be chosen such that they cross some edges or non-uniform areas.
When an image is interlaced, the two frames (even and odd lines) are not recorded at the same time. If there is movement in the scene, a visible artifact can result (the edges of objects exhibit a "comb" effect).
When the movement is uniform and horizontal (objects on a conveyor belt), one cure to this problem is to shift one of the frames horizontally with respect to the other frame (using EasyImage::RealignFrame). The amplitude of the shift can be estimated automatically.