EasyImage::RealignFrame

Shifts one frame of the image horizontally.

Namespace: Euresys::Open_eVision

[C++]

void RealignFrame(
   EROIBW8* sourceImage,
   EROIBW8* destinationImage,
   int offset,
   OEV_UINT32 fixedRow
)

void RealignFrame(
   EROIBW16* sourceImage,
   EROIBW16* destinationImage,
   int offset,
   OEV_UINT32 fixedRow
)

void RealignFrame(
   EROIC24* sourceImage,
   EROIC24* destinationImage,
   int offset,
   OEV_UINT32 fixedRow
)

Parameters

sourceImage

Pointer to the source image/ROI.

destinationImage

Pointer to the destination image/ROI.

offset

Indicates the number of pixels by which to shift (positive to the right).

fixedRow

Specifies which frame remains unchanged (the frame made up of all lines of the same parity as fixedRow; by default, fixedRow = 0).

Remarks

The same image should be used as source and destination. If the destination image differs from the source image, only the shifted rows are copied. To use a different destination image, the source image must be copied first in the destination image object.
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. The amplitude of the shift can be estimated automatically (using EasyImage::MatchFrames).

EasyImage.RealignFrame

Shifts one frame of the image horizontally.

Namespace: Euresys.Open_eVision

[C#]

void RealignFrame(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage,
   int offset,
   uint fixedRow
)

void RealignFrame(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW16 destinationImage,
   int offset,
   uint fixedRow
)

void RealignFrame(
   Euresys.Open_eVision.EROIC24 sourceImage,
   Euresys.Open_eVision.EROIC24 destinationImage,
   int offset,
   uint fixedRow
)

Parameters

sourceImage

Pointer to the source image/ROI.

destinationImage

Pointer to the destination image/ROI.

offset

Indicates the number of pixels by which to shift (positive to the right).

fixedRow

Specifies which frame remains unchanged (the frame made up of all lines of the same parity as fixedRow; by default, fixedRow = 0).

Remarks

The same image should be used as source and destination. If the destination image differs from the source image, only the shifted rows are copied. To use a different destination image, the source image must be copied first in the destination image object.
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. The amplitude of the shift can be estimated automatically (using EasyImage::MatchFrames).