Implementation Details: Mouse Events While Tracing
- Mouse down
- Get current point
- Change callback for mouse motion.
- Mouse motion
- Get current point
- Fill in the pixels from last point to current point.
- Mark new pixels with red patch objects.
- Mouse up
- Add traced pixels to structure of boundary pixels for current slice.
- Mark them with yellow patch objects.
- If network is trained, continue marking pixels along boundary using the network to make decisions.