Since I always use CMake to get ITK into my own projects, I get the itk(Transform/Image)IOFactoryRegisterManager.h files that are generated during the process.
I’m now on a project without CMake, and I realize that I don’t really understand what are these files for, and if we need to generate something equivalent if we want to use ITK without CMake’s help.
Can any of you enlighten me about this ?
By the way, as this is my first post of 2018, I wish a happy new year to all of you !
In summary, these files, when included in an executable or library, will register the available itk::ImageIOBase classes to the object factory, so itk::ImageFileReader and itk::ImageFileWriter can find and use them.
This, of course, depends on the available ImageIO modules that ITK has available (depends on ITK’s build options and any external modules). The infrastructure was improved even further in ITK 4.13.0, which makes the use of CMake even more appealing. h/t @fbudin
So if I’m not mistaken, the consequence of not having it is that we have to explicitely set the desired IOBase in Writers/Readers?
What are the reasons that prevent generating these files beforehand when one build ITK?