Commit aa1b452
committed
ENH: Add VTK XML ImageData (.vti) read/write support to ITKIOVTKTestDriver
- Parse and emit Direction cosines (VTK 9+ row-major 3x3 attribute)
- Canonicalize symmetric-tensor layout to VTK [XX,YY,ZZ,XY,YZ,XZ] convention
- Fix byte-swap for LE-on-BE host; expose static SwapBufferForByteOrder for testing
- Emit version="1.0" and UInt64 block headers matching ParaView 5.7+
- Reject files with DOCTYPE/ENTITY declarations (XXE/billion-laughs mitigation)
- Add F-001..F-010 guard exceptions for deferred features with F-NNN tags
- Add RGBA round-trip coverage
- Add VTI fixture generator (Python stdlib) and synthetic round-trip fixtures
- Add hand-crafted oblique-direction fixture with MHD oracle
- Add unit tests: direction round-trip, SwapBufferForByteOrder, guard tests, fixture suite
- Rewrite class Doxygen with supported features and deferred F-NNN items
- Replace manual ExceptionObject with itkGenericExceptionMacro in static methods
- Stream-parse XML via expat chunks; suspend at <AppendedData> to avoid loading
binary payload into memory (large-file performance improvement)
- Add appended-raw + vtkZLibDataCompressor writer via SetUseCompression(true);
produces smallest on-disk files; matches ParaView's default write format
Disable itkVTIImageIOReadWriteTestVHFColorZLib until ExternalData upload is
restored (tracked at ITK#4340); equivalent ZLib code-path coverage provided
by itkVTIImageIOGeneratedFixturesTest (vector3_f32_zlib_appended fixture).1 parent 55f7af7 commit aa1b452
File tree
31 files changed
+1936
-180
lines changed- Modules/IO/VTK
- include
- src
- test
- Input
31 files changed
+1936
-180
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
43 | 74 | | |
44 | 75 | | |
45 | 76 | | |
| |||
94 | 125 | | |
95 | 126 | | |
96 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
97 | 143 | | |
98 | 144 | | |
99 | 145 | | |
| |||
0 commit comments