| View Issue Details [ Jump to Notes ] | [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0008952 | ITK | | public | 2009-04-30 11:41 | 2009-04-30 11:41 |
|
| Reporter | kentwilliams | |
| Assigned To | kentwilliams | |
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | | OS Version | |
| Product Version | ITK-3-12 | |
| Target Version | | Fixed in Version | ITK-3-12 | |
|
| Summary | 0008952: Image Dimension can be too large for NIfTI and Analyze Image Formats |
| Description | An end user reported trying to write a 1D NIfTI or Analyze file with a dimension of 45000, and ending up with an invalid image file.
|
| Additional Information | In examining the standard NIfTI/Analyze C++ include files, I determined that the dimensions array has an element type of short. This means that for most (if not all) architectures, the maximum value for any one dimension in NIfTI/Analyze files is 32767.
FIX: As per Bill Lorensen's suggestion, I modified the NIfTI and Analyze ImageIO classes to throw an exception if they encounter a dimension that will not fit in the short type.
|
| Tags | No tags attached. |
|
| Resolution Date | |
| Sprint | |
| Sprint Status | |
|
| Attached Files | |
|