The ImageLineProfile operation provides sampling of a source image along an arbitrary path which consists of line segments between every two consecutive user-specified vertices. In each segment the profile is calculated at a number of points (profile points) equivalent to the sampling density of the original image. At each profile point the profile value is calculated by averaging samples along the normal to the profile line segment. You can specify the number of samples in the average.
The profile is measured along the red path. In this example the path consists of a single line segment.
The line profile showing the individual RGB components along the specified path.