ij-plugins / ijp-toolkit

ijp-toolkit general purpose plugins for ImageJ (also known as ij-plugins_toolkit)
GNU Lesser General Public License v2.1
16 stars 3 forks source link

MetaImage Reader - treat ITK_* tags as optional #2

Closed jpsacha closed 8 years ago

jpsacha commented 8 years ago

ITK add its own tags to MetaImage files. Currently, when MetaImage Reader encounters an ITK tag it results in an exception:

net.sf.ij_plugins.io.metaimage.MiException: 'ITK_FileNotes' is not a valid MetaImage tag name.

Here are some example tags from an image header (.mhd):

ITK_FileNotes = Created by Convert3D
ITK_InputFilterName = MetaImageIO

Those ITK tags should be just ignored.