smistad / FAST

A framework for high-performance medical image processing, neural network inference and visualization
https://fast.eriksmistad.no
BSD 2-Clause "Simplified" License
433 stars 101 forks source link

Remove warnings in MetaImageImporter when origin/offset/position is 2D #164

Closed androst closed 1 year ago

androst commented 1 year ago

Suggesting a change in MetaImageImporter to avoid mass printing warnings when position / origin / offset is a array with two numbers. According to documentation (https://itk.org/Wiki/ITK/MetaIO/Documentation) position / origin / offset should / can be equal to the length of NDim:

Position: MET_FLOAT_ARRAY[NDims] X, Y, Z,… of real-world coordinate of 0,0,0 index of image)