Sample the pixel values on the specific line segment

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

- line (LineSegment2D<(Of <(Int32>)>))
- The line to obtain samples

The values on the (Eight-connected) line