Skip to content

BrushStroke

thorbenk edited this page Jul 24, 2011 · 3 revisions

list of QPointF with associated brush size

brushstroke

Currently in ilastik, the brush strokes the user draws on top of one of the slice views are first rendered as a collection of QGraphicsLineItems. After 300ms, the accumulated lines are bundled together and sent along for the classifier to be updated with more labels. This class would represent such an aggregation of strokes that happened within a short time. As one could change the brush size in-between, we need to supply that as well.

public API:
  • functions:
    • asQImage() -> returns tuple QPointF offset, QImage renderedStroke
Clone this wiki locally