'EmguCV Draw plot for LineIterator

I am using LineIterator class to get pixels near line, but I don't understand how draw plot like this: Example image

EmguCV have class Plot2D: https://www.emgu.com/wiki/files/4.1.0/document/html/0955ac87-ddb7-4933-b049-0a778efd398d.htm But in class constructor I must set object type: (IInputArray). My LineIterator don't return any objects type (IInputArray).

LineIterator lineIterator = new LineIterator(myImage.Mat, clickedPointsOnImage[0], clickedPointsOnImage[1]);

clickedPointsOnImage is array size 2 with System.Drawing.Point objects where user clicked.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source