Sample the pixel values on the specific line segment

C# | Visual Basic | Visual C++ |
public TDepth[,] Sample( LineSegment2D line, CONNECTIVITY type )
Public Function Sample ( _ line As LineSegment2D, _ type As CONNECTIVITY _ ) As TDepth(,)
public: array<TDepth,2>^ Sample( LineSegment2D line, CONNECTIVITY type )

- line (LineSegment2D)
- The line to obtain samples
- type (CONNECTIVITY)
- The sampling type

The values on the line