MantisBT - ITK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010124 | ITK | public | 2010-01-12 10:07 | 2010-10-21 12:31 | |
| Reporter | Bradley Lowekamp | ||||
| Assigned To | Bradley Lowekamp | ||||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ITK-3-18 | |||
| Resolution Date | |||||
| Sprint | |||||
| Sprint Status | |||||
| Summary | 0010124: ImageIO methods ReadBufferAsASCII and WriteBufferAsASCII do not handle signed and unsigned chars correctly | ||||
| Description | These methods read or write the character as a single character and not as a number. That is if a pixel has the value 48 then "0" is written instead of "48". This is different then what is needed for the VTK file format. | ||||
| Steps To Reproduce | |||||
| Additional Information | Proposed solution: template <class TComponent> void WriteBuffer(std::ostream& os, const TComponent *buffer, ImageIOBase::SizeType num) { const TComponent *ptr = buffer; typedef typename itk::NumericTraits<TComponent>::PrintType PrintType; for (ImageIOBase::SizeType i=0; i < num; i++) { if ( !(i%6) && i ) os << "\n"; os << PrintType(*ptr++) << " "; } } | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-01-12 10:07 | Bradley Lowekamp | New Issue | |||
| 2010-01-12 10:17 | Bradley Lowekamp | Additional Information Updated | |||
| 2010-02-24 09:35 | Bradley Lowekamp | Status | new => assigned | ||
| 2010-02-24 09:35 | Bradley Lowekamp | Assigned To | => Bradley Lowekamp | ||
| 2010-02-24 09:41 | Bradley Lowekamp | Note Added: 0019605 | |||
| 2010-06-22 15:23 | Bradley Lowekamp | Note Added: 0021134 | |||
| 2010-06-22 15:23 | Bradley Lowekamp | Status | assigned => resolved | ||
| 2010-06-22 15:23 | Bradley Lowekamp | Fixed in Version | => ITK-3-18 | ||
| 2010-06-22 15:23 | Bradley Lowekamp | Resolution | open => fixed | ||
| 2010-10-21 12:31 | Gabe Hart | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||