#include <iostream>
#include <vector>
int
main(int argc, char * argv[])
{
using sitk::operator<<;
fixedImage = pasteFilter.
Execute(fixedImage, 200);
movingImage = pasteFilter.
Execute(movingImage, 69);
std::vector<double> fixedLandmarks = { 10, 10, 20, 10, 20, 20 };
std::vector<double> movingLandmarks = { 50, 50, 60, 50, 60, 60 };
std::cout << outputTransform.
ToString() << std::endl;
std::string outName;
if (argc > 1)
{
outName = argv[1];
}
else
{
outName = "landmark_transform.tfm";
}
return 0;
}
The Image class for SimpleITK.
Paste an image (or a constant value) into another image.
void SetSourceSize(std::vector< unsigned int > SourceSize)
void SetDestinationIndex(std::vector< int > DestinationIndex)
Image Execute(Image &&destinationImage, const Image &sourceImage)
void SetSourceIndex(std::vector< int > SourceIndex)
@ sitkLinear
N-D linear interpolation.
SITKBasicFilters_EXPORT Image Resample(const Image &image1, Transform transform=itk::simple::Transform(), InterpolatorEnum interpolator=itk::simple::sitkLinear, double defaultPixelValue=0.0, PixelIDValueEnum outputPixelType=sitkUnknown, bool useNearestNeighborExtrapolator=false)
itk::simple::ResampleImageFilter Procedural Interface
SITKIO_EXPORT void WriteImage(const Image &image, const PathType &fileName, bool useCompression=false, int compressionLevel=-1)
WriteImage is a procedural interface to the ImageFileWriter. class which is convenient for many image...
SITKCommon_EXPORT void WriteTransform(const Transform &transform, const PathType &filename)