Ticket #925 (assigned defect)

Opened 7 years ago

Last modified 6 years ago

Drawing tools too slow on big images

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: imagej2-unscheduled
Component: Tools Version:
Severity: serious Keywords:
Cc: rob.vanthof@… Blocked By:
Blocking: #1170

Description

Open Embryos (a color image) and use the paint brush tool. The drawing lags behind quite a bit making the tool unusable.

Change History

comment:1 Changed 7 years ago by bdezonia

Note that it is related to image size. Embryos is very big. Drawing on clowns works fine.

comment:2 Changed 7 years ago by bdezonia

Tried making DrawingTool maintain multiple accessors (1 per channel) for color images. This had no effect and was abandoned.

comment:3 Changed 7 years ago by bdezonia

  • Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta2

Okay, color has nothing to do with it. Particles lags too. I think its a redraw speed issue. In AbstractLineTool() the event handler looks like this:

public void onMouseDrag(final MsDraggedEvent evt) {

if (drawingTool != null) {

drawingTool.lineTo(evt.getX(), evt.getY());
evt.getDisplay().getPanel().redraw();
evt.getDisplay().update();
evt.consume();

}

}

The redraw() and update() calls are slower for bigger images.

comment:4 Changed 7 years ago by bdezonia

  • Summary changed from Drawing tools too slow on color images to Drawing tools too slow on big images

comment:5 Changed 7 years ago by bdezonia

  • Blocking 1070 added

comment:6 Changed 7 years ago by bdezonia

  • Owner changed from bdezonia to curtis
  • Status changed from new to assigned
  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4

Curtis, I think you have a better idea of how to fix this issue

comment:7 Changed 7 years ago by bdezonia

  • Blocking 1170 added; 1070 removed

comment:8 Changed 7 years ago by bdezonia

  • Cc rob.vanthof@… added

comment:9 Changed 7 years ago by bdezonia

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5

Since we are going to work on display code during beta 5 I will move this issue there.

comment:10 Changed 6 years ago by curtis

  • Milestone changed from imagej2-b7-ndim-data to imagej2-unscheduled
Note: See TracTickets for help on using tickets.