TOC PREV NEXT INDEX

IPread_line

Synopsis

read image data along a specified line

Input Port

&src

ip_Image_in

Parameters

x1, y1

int

coordinate of start point

x2, y2

int

coordinate of end point

Output Port

buf

array of pixel values

npixels

number of pixels read

Description

IPread_line creates a 1D array of values along an x1,y1 to x2,y2 line.

Input

&src

A reference to an ip_Image.

Parameters

x1, y1
x2,y2

The start and end coordinates of the line along which the data is read.

Output Port

buf

The buffer of data values, the first npixels of which are valid. The uniform_scalar_field field mapper can make the output array into a field for further downstream processing.

npixels

The number of pixels read; that is, the number of valid values in buf

Example

The following figure illustrates IPread_line in a network.


File

v/ip.v

See also

Not applicable.

TOC PREV NEXT INDEX