ITK/Examples/IO/TransformFileWriter: Difference between revisions

From KitwarePublic
< ITK‎ | Examples
Jump to navigationJump to search
(Created page with "Error: terminate called after throwing an instance of 'itk::ExceptionObject' what(): /home/doriad/src/ITK/Modules/Core/Transform/src/itkTransformFileWriter.cxx:97: itk::ERR...")
 
(Deprecated content that is moved to sphinx)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Error:
{{warning|1=The media wiki content on this page is no longer maintained. The examples presented on the https://itk.org/Wiki/*  pages likely require ITK version 4.13 or earlier releases.   In many cases, the examples on this page no longer conform to the best practices for modern ITK versions.
 
}}
  terminate called after throwing an instance of 'itk::ExceptionObject'
  what():  /home/doriad/src/ITK/Modules/Core/Transform/src/itkTransformFileWriter.cxx:97:
itk::ERROR: TransformFileWriter(0x91995a0): Can't Create IO object for file test.meta
 
==TransformFileWriter.cxx==
<source lang="cpp">
#include "itkRigid2DTransform.h"
#include "itkTransformFileWriter.h"
 
int main(int, char *[])
{
  typedef itk::Rigid2DTransform< float > TransformType;
  TransformType::InputPointType p;
  p[0] = 1;
  p[1] = 0;
  TransformType::Pointer transform = TransformType::New();
  transform->SetAngle(M_PI/2.0);
 
  itk::TransformFileWriter::Pointer writer = itk::TransformFileWriter::New();
  writer->SetInput(transform);
  writer->SetFileName("test.meta");
  writer->Update();
 
  return EXIT_SUCCESS;
}
 
</source>
 
{{ITKCMakeLists|TransformFileWriter}}

Latest revision as of 17:09, 4 June 2019

Warning: The media wiki content on this page is no longer maintained. The examples presented on the https://itk.org/Wiki/* pages likely require ITK version 4.13 or earlier releases. In many cases, the examples on this page no longer conform to the best practices for modern ITK versions.