NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1958 (closed defect: fixed)

Opened 2013-07-17T10:29:06-05:00

Last modified 2013-07-17T11:24:10-05:00

NewImage ramp code is too resource intensive

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b8-analysis
Component: Analysis Plugins Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1457


The NewImage code uses the DataType casting code when creating a ramp. For big images this code is slow and can throw out of memory errors (i.e. try 4k x 4k unsigned 32-bit int with ramp). Simplify NewImage's ramp code so that it is more resource friendly.

Change History

comment:1 Changed 2013-07-17T10:29:29-05:00 by bdezonia

  • Blocking 1457 added

comment:2 Changed 2013-07-17T10:59:13-05:00 by bdezonia

Memory issue might be a red herring. My system runs 107 mb free and the specified image is 64 mb. And out of memory is happening when its trying to make an rgb screen image which also would be big.

comment:3 Changed 2013-07-17T11:24:10-05:00 by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

Fixed with commit 8cfea11e0fb1b8598164cb50cdfb6ca5cd8989d0