From 0ea84ac9a9da99e3bf3606aec6bd6d21448a2980 Mon Sep 17 00:00:00 2001 From: schaerer Date: Thu, 4 Feb 2010 15:06:24 +0000 Subject: [PATCH] support additional types --- filters/clitkImageArithmGenericFilter.cxx | 2 +- vv/vvImageWriter.txx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/filters/clitkImageArithmGenericFilter.cxx b/filters/clitkImageArithmGenericFilter.cxx index 7e344e7..044bb7c 100644 --- a/filters/clitkImageArithmGenericFilter.cxx +++ b/filters/clitkImageArithmGenericFilter.cxx @@ -39,11 +39,11 @@ template void clitk::ImageArithmGenericFilter::InitializeImageType() { ADD_IMAGE_TYPE(Dim, char); ADD_IMAGE_TYPE(Dim, short); + ADD_IMAGE_TYPE(Dim, float); /* ADD_IMAGE_TYPE(Dim, short); ADD_IMAGE_TYPE(Dim, ushort; ADD_IMAGE_TYPE(Dim, int); ADD_IMAGE_TYPE(Dim, unsigned int); - ADD_IMAGE_TYPE(Dim, float); ADD_IMAGE_TYPE(Dim, double); */ } diff --git a/vv/vvImageWriter.txx b/vv/vvImageWriter.txx index 73d3a53..35e5790 100644 --- a/vv/vvImageWriter.txx +++ b/vv/vvImageWriter.txx @@ -35,6 +35,10 @@ void vvImageWriter::UpdateWithDim(std::string OutputPixelType) { UpdateWithDimAndOutputPixelType(); } + else if (OutputPixelType == "unsigned short") + { + UpdateWithDimAndOutputPixelType(); + } else if (OutputPixelType == "unsigned_short") { UpdateWithDimAndOutputPixelType(); -- 2.47.1