[Insight-users] itkMetaLandmarkConverter to read landmarks in files
Christopher Mullins
christopher.mullins at kitware.com
Mon Nov 12 19:18:40 EST 2012
Hello ITK users,
Does anyone know of a usage example of the
itkMetaLandmarkConverter<http://www.itk.org/Doxygen/html/classitk_1_1MetaLandmarkConverter.html>
?
My goal is to read in landmarks in a meta-format, such as the attached
example, and use these to produce a transform (say, from a moving image
onto a fixed image).
So far my code looks like this:
// Read both landmark files
typedef itk::MetaLandmarkConverter< Dimension > metaReaderType;
const char * fixedLandmarkFilename = argv[3];
metaReaderType fixedLandmarkReader;
fixedLandmarkReader.ReadMeta(fixedLandmarkFilename);
const char * movingLandmarkFilename = argv[4];
metaReaderType movingLandmarkReader;
movingLandmarkReader.ReadMeta(movingLandmarkFilename);
Thanks,
Christopher Mullins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121112/bf031f2b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 702_landmark_left.lnd
Type: application/octet-stream
Size: 416 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121112/bf031f2b/attachment.obj>
More information about the Insight-users
mailing list