[ITK-dev] Missing IO factories when building without cmake
Bill Lorensen
bill.lorensen at gmail.com
Mon Mar 31 19:32:54 EDT 2014
Folks,
We have recently seen a couple of users who build their ITK apps
without cmake. When they try to read or write images they get a
message like this:
Description: Could not create IO object for file
foo.png
Tried to create one of the following:
You probably failed to set a file suffix, or
set the suffix to an unsupported type.
I submitted a gerrit patch:
http://review.source.kitware.com/#/c/14909/
to provide a better description of the exception:
Description: Could not create IO object for writing file foo.img
Tried to create one of the following:
There are no registered IO factories. You probably built your
project without using cmake
You can register the IO factories you need with:
#include "itkXXXImageIOFactory.h"
itk::XXXImageIOFactory::RegisterOneFactory();
where XXX is e.g. Nifti, PNG, Meta...
#include "itkNiftImageIOFactory.h"
itk::NiftiImageIOFactory::RegisterOneFactory();
More information about the Insight-developers
mailing list