Ticket #1958 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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

Description

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 6 years ago by bdezonia

  • Blocking 1457 added

comment:2 Changed 6 years ago 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 6 years ago by bdezonia

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

Fixed with commit 8cfea11e0fb1b8598164cb50cdfb6ca5cd8989d0

Note: See TracTickets for help on using tickets.