In addition to showing a histogram widgets for images masked with (closed) PlanarFigures, a helpful feature would be a line profile widget which shows the gray-values along a (non-closed) PlanarFigure (line, polyline) as a curve diagram.
For polylines, the individual line segments should be marked within the curve diagram (e.g. by marker lines or individual colors for each section).
A nice secondary feature would be if, when selecting a point on a line / polyline, the corresponding position in the line profile would be highlighted.