View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008476ITKpublic2009-02-05 16:112010-10-21 12:32
ReporterMathieu Coursolle 
Assigned ToDon Bigler 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionITK-3-10 
Target VersionFixed in VersionITK-3-10 
Summary0008476: itkPhilipsRECImageIO throws an exception when reading 4D images.
DescriptionIn PhilipsRECImageIO, the direction cosines are not defined for dimensions higher than 3. Therefore, a 4D image with default orientation would have it direction set to {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 0}}.

Note that the last direction vector is all zeros. This causes an exception when the direction is validated, as {0, 0, 0, 0} does not define a valid orientation in space (See ComputeIndexToPhysicalPointMatrices() in itkImageBase.txx).

A solution would be to initialize the direction of the last direction to {0, 0, 0, 1}.

A proposed patch is attached.
TagsNo tags attached.
Resolution Date
Sprint
Sprint Status
Attached Filestxt file icon patch_itkPhilipsRECImageIO_Exception.txt [^] (275 bytes) 2009-02-05 16:11 [Show Content]

 Relationships
related to 0005454closedLuis Ibanez Support Philips PAR/REC image files in ITK 

  Notes
(0015362)
Don Bigler (developer)
2009-02-24 22:30

Confirmed the bug. When trying to read a 4D Philips REC image using ITK 3.10.2, an exception is thrown when the direction cosines are checked.
(0015363)
Don Bigler (developer)
2009-02-24 22:34

Applying the patch eliminates the exception when reading a 4D Philips REC image. Committed the patched file to cvs.
(0015364)
Don Bigler (developer)
2009-02-24 22:34

Applying the patch eliminates the exception when reading a 4D Philips REC image. Committed the patched file to cvs.

 Issue History
Date Modified Username Field Change
2009-02-05 16:11 Mathieu Coursolle New Issue
2009-02-05 16:11 Mathieu Coursolle File Added: patch_itkPhilipsRECImageIO_Exception.txt
2009-02-05 16:11 Mathieu Coursolle Status new => assigned
2009-02-05 16:11 Mathieu Coursolle Assigned To => Don Bigler
2009-02-06 15:26 Sean McBride Relationship added related to 0005454
2009-02-24 22:30 Don Bigler Note Added: 0015362
2009-02-24 22:30 Don Bigler Status assigned => confirmed
2009-02-24 22:34 Don Bigler Note Added: 0015363
2009-02-24 22:34 Don Bigler Note Added: 0015364
2009-02-24 22:34 Don Bigler Status confirmed => resolved
2009-02-24 22:34 Don Bigler Fixed in Version => ITK-3-10
2009-02-24 22:34 Don Bigler Resolution open => fixed
2010-10-21 12:32 Gabe Hart Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team