EasyImage::ImageToLineSegment

Copies the pixel values along a given line segment (arbitrarily oriented) to a vector.

Namespace: Euresys::Open_eVision_2_16

[C++]

void ImageToLineSegment(
   const EROIBW8* sourceImage,
   EBW8Vector* path,
   OEV_INT32 X0,
   OEV_INT32 Y0,
   OEV_INT32 X1,
   OEV_INT32 Y1
)

void ImageToLineSegment(
   const EROIBW16* sourceImage,
   EBW16Vector* path,
   OEV_INT32 X0,
   OEV_INT32 Y0,
   OEV_INT32 X1,
   OEV_INT32 Y1
)

void ImageToLineSegment(
   const EROIC24* sourceImage,
   EC24Vector* path,
   OEV_INT32 X0,
   OEV_INT32 Y0,
   OEV_INT32 X1,
   OEV_INT32 Y1
)

void ImageToLineSegment(
   const EROIBW8* sourceImage,
   const EROIBW8* mask,
   EBW8 outOfMaskValue,
   EBW8Vector* path,
   OEV_INT32 X0,
   OEV_INT32 Y0,
   OEV_INT32 X1,
   OEV_INT32 Y1
)

void ImageToLineSegment(
   const EROIBW16* sourceImage,
   const EROIBW8* mask,
   EBW16 outOfMaskValue,
   EBW16Vector* path,
   OEV_INT32 X0,
   OEV_INT32 Y0,
   OEV_INT32 X1,
   OEV_INT32 Y1
)

void ImageToLineSegment(
   const EROIC24* sourceImage,
   const EROIBW8* mask,
   EC24 outOfMaskValue,
   EC24Vector* path,
   OEV_INT32 X0,
   OEV_INT32 Y0,
   OEV_INT32 X1,
   OEV_INT32 Y1
)

Parameters

sourceImage

Pointer to the source image/ROI.

path

Pointer to the destination vector.

X0

Coordinates of the starting point of the segment.

Y0

Coordinates of the starting point of the segment.

X1

Coordinates of the ending point of the segment.

Y1

Coordinates of the ending point of the segment.

mask

Pointer to a mask to apply the function only on a particular region in the image. Note: the mask must have the same size as the source image.

outOfMaskValue

The value to be given to the pixels that lie out of the mask.

Remarks

The line segment must be wholly contained within the image. The vector length is adjusted automatically.

EasyImage.ImageToLineSegment

Copies the pixel values along a given line segment (arbitrarily oriented) to a vector.

Namespace: Euresys.Open_eVision_2_16

[C#]

void ImageToLineSegment(
   Euresys.Open_eVision_2_16.EROIBW8 sourceImage,
   Euresys.Open_eVision_2_16.EBW8Vector path,
   int X0,
   int Y0,
   int X1,
   int Y1
)

void ImageToLineSegment(
   Euresys.Open_eVision_2_16.EROIBW16 sourceImage,
   Euresys.Open_eVision_2_16.EBW16Vector path,
   int X0,
   int Y0,
   int X1,
   int Y1
)

void ImageToLineSegment(
   Euresys.Open_eVision_2_16.EROIC24 sourceImage,
   Euresys.Open_eVision_2_16.EC24Vector path,
   int X0,
   int Y0,
   int X1,
   int Y1
)

void ImageToLineSegment(
   Euresys.Open_eVision_2_16.EROIBW8 sourceImage,
   Euresys.Open_eVision_2_16.EROIBW8 mask,
   Euresys.Open_eVision_2_16.EBW8 outOfMaskValue,
   Euresys.Open_eVision_2_16.EBW8Vector path,
   int X0,
   int Y0,
   int X1,
   int Y1
)

void ImageToLineSegment(
   Euresys.Open_eVision_2_16.EROIBW16 sourceImage,
   Euresys.Open_eVision_2_16.EROIBW8 mask,
   Euresys.Open_eVision_2_16.EBW16 outOfMaskValue,
   Euresys.Open_eVision_2_16.EBW16Vector path,
   int X0,
   int Y0,
   int X1,
   int Y1
)

void ImageToLineSegment(
   Euresys.Open_eVision_2_16.EROIC24 sourceImage,
   Euresys.Open_eVision_2_16.EROIBW8 mask,
   Euresys.Open_eVision_2_16.EC24 outOfMaskValue,
   Euresys.Open_eVision_2_16.EC24Vector path,
   int X0,
   int Y0,
   int X1,
   int Y1
)

Parameters

sourceImage

Pointer to the source image/ROI.

path

Pointer to the destination vector.

X0

Coordinates of the starting point of the segment.

Y0

Coordinates of the starting point of the segment.

X1

Coordinates of the ending point of the segment.

Y1

Coordinates of the ending point of the segment.

mask

Pointer to a mask to apply the function only on a particular region in the image. Note: the mask must have the same size as the source image.

outOfMaskValue

The value to be given to the pixels that lie out of the mask.

Remarks

The line segment must be wholly contained within the image. The vector length is adjusted automatically.