Page MenuHomePhabricator

Cannot open 2D pic image
Closed, ResolvedPublic

Description

Opening a 2D image of type .pic is currently not possible.

Open / drag and drop 2D .pic image in mitkWorkbench results in the following warning:
core.io.ioUtil WARNING bad allocation

Attached example file

Event Timeline

There is a problem in the IpPicFileReader class. The dimension information of the attached image ( with dimensionality 204x204 ) is read in sometimes as
[ 204, 204, 0, 0,...]
leading to a crash in SliceSelector ( due to invalid TimeSlicedGeometry ). Sometimes the third number is not zero but some high integer value ( > 10^6 ) leading to a 100% memory consumption.

When manually adapting (during debugging ) the dimension information to

[ 204, 204, 1, 0, ...]

the image was correctly read in.

Solution:

  • the PicFile Reader have to initialize the dimensions of the image correctly also for 2D images

New remote branch pushed: bug-13537-Fix-2D-PicImage-Initialization

[d54fe9]: Merge branch 'bug-13537-Fix-2D-PicImage-Initialization'

Merged commits:

2012-12-05 15:38:17 Jan Hering [417dad]
Manual correction of dimension information

  • letting the PicFileReader to set n[2]=1 for 2D images to force correct
  • initialization ( SlicedGeom etc. )