} // end namespace
// explicit template instantiation
-template class itk::CreateObjectFunction<clitk::HisImageIO>;
+//template class itk::CreateObjectFunction<clitk::HisImageIO>;
#endif /* end #define CLITKHISIMAGEIO_H */
//====================================================================
void clitk::Timer::Start() {
-#if defined(unix)
+#if defined(unix) || defined(__APPLE__)
getrusage(RUSAGE_SELF, &mBegin);
#elif defined(WIN32)
QueryPerformanceCounter((LARGE_INTEGER*)&mBegin);
//====================================================================
void clitk::Timer::Stop(bool accumulate) {
-#if defined(unix)
+#if defined(unix) || defined (__APPLE__)
getrusage(RUSAGE_SELF, &mEnd);
if (accumulate) {
mElapsed += (mEnd.ru_utime.tv_usec - mBegin.ru_utime.tv_usec)+
#include "clitkCommon.h"
#include <ctime>
-#if defined(unix)
+#if defined(unix) || defined(__APPLE__)
# include <sys/time.h>
# include <sys/resource.h>
#elif defined(WIN32)
//====================================================================
protected:
-#if defined(unix)
+#if defined(unix) || defined(__APPLE__)
rusage mBegin;
rusage mEnd;
#elif defined(WIN32)
} // end namespace
// explicit template instantiation
-template class itk::CreateObjectFunction<clitk::VfImageIO>;
+//template class itk::CreateObjectFunction<clitk::VfImageIO>;
#endif /* end #define CLITKVFIMAGEIO_H */
} // end namespace
// explicit template instantiation
-template class itk::CreateObjectFunction<clitk::VoxImageIO>;
+//template class itk::CreateObjectFunction<clitk::VoxImageIO>;
#endif /* end #define CLITKVOXIMAGEIO_H */
protected:
void ITKError(std::string funcName, int msgID);
- void WriteImage(const char* file, char* headerinfo, char* headerfile, int raw,\r
- int offset, char bLittleEndian, int iNkiCompression,\r
- int wcoords, int append, int getsize, char *tobuffer, const void* data);\r
+ void WriteImage(const char* file, char* headerinfo, char* headerfile, int raw,
+ int offset, char bLittleEndian, int iNkiCompression,
+ int wcoords, int append, int getsize, char *tobuffer, const void* data);
int m_HeaderSize;
int forcenoswap;
} // end namespace
// explicit template instantiation
-template class itk::CreateObjectFunction<clitk::XdrImageIO>;
+//template class itk::CreateObjectFunction<clitk::XdrImageIO>;
#endif /* end #define CLITKXDRIMAGEIO_H */
#include <sys/stat.h>
//From mbfield.h
-#ifndef unix
+#if !defined(unix) && !defined(__APPLE__)
//#define _read readfix
#endif
#define AVSINT ptrdiff_t
#define AVS_OK
//From portdefs.h
-#ifdef unix
+#if defined(unix) || defined(__APPLE__)
#define O_BINARY 0
#define setmode(a,b) 0
#endif
#ifndef __LARGE__
-# if defined(__GNUC__) || defined(unix)
+# if defined(__GNUC__) || defined(unix) || defined(__APPLE__)
+
typedef long long Q_INT64;
typedef unsigned long long Q_UINT64;
# define Q_INT64_CONST(x) (x##ll)
#include <math.h>
#include <stdlib.h>
#include <limits.h>
-#ifndef unix
+#if !defined(unix) && !defined(__APPLE__)
#include <io.h>
#endif
#include <fcntl.h>
clitkVFResampleGenericFilter.cxx
clitkBinarizeImageGenericFilter.cxx
clitkBinarizeImage_ggo.c
+ clitkMedianImageGenericFilter.cxx
)
ADD_LIBRARY(clitkFilters STATIC ${clitkFilters_SRC})
#include "itkBinaryThresholdImageFilter.h"
#include "itkMaskImageFilter.h"
#include "itkMaskNegatedImageFilter.h"
+#include <clitkCommon.h>
+#include <tiff.h>
namespace clitk
{
ADD_IMAGE_TYPE(Dim, char);
ADD_IMAGE_TYPE(Dim, uchar);
ADD_IMAGE_TYPE(Dim, short);
+ ADD_IMAGE_TYPE(Dim, ushort);
ADD_IMAGE_TYPE(Dim, int);
+ ADD_IMAGE_TYPE(Dim, uint16);
ADD_IMAGE_TYPE(Dim, float);
+ ADD_IMAGE_TYPE(Dim, double);
}
//--------------------------------------------------------------------
ADD_IMAGE_TYPE(Dim, char);
ADD_IMAGE_TYPE(Dim, uchar);
ADD_IMAGE_TYPE(Dim, short);
+ ADD_IMAGE_TYPE(Dim, ushort);
+ ADD_IMAGE_TYPE(Dim, int);
ADD_IMAGE_TYPE(Dim, float);
+ ADD_IMAGE_TYPE(Dim, double);
}
//--------------------------------------------------------------------
//--------------------------------------------------------------------
template<unsigned int Dim>
void clitk::ImageResampleGenericFilter::InitializeImageTypeWithDim() {
- ADD_IMAGE_TYPE(Dim, char);
- ADD_IMAGE_TYPE(Dim, uchar);
- ADD_IMAGE_TYPE(Dim, short);
- ADD_IMAGE_TYPE(Dim, int);
- ADD_IMAGE_TYPE(Dim, float);
+ ADD_IMAGE_TYPE(Dim, char);
+ ADD_IMAGE_TYPE(Dim, uchar);
+ ADD_IMAGE_TYPE(Dim, short);
+ ADD_IMAGE_TYPE(Dim, ushort);
+ ADD_IMAGE_TYPE(Dim, int);
+ ADD_IMAGE_TYPE(Dim, float);
+ ADD_IMAGE_TYPE(Dim, double);
}
//--------------------------------------------------------------------
ADD_EXECUTABLE(clitkBinarizeImage clitkBinarizeImage.cxx)
TARGET_LINK_LIBRARIES(clitkBinarizeImage clitkCommon ITKIO clitkFilters)
+
+ADD_EXECUTABLE(clitkMedianImageFilter clitkMedianImageFilter.cxx clitkMedianImageFilter_ggo.c)
+TARGET_LINK_LIBRARIES(clitkMedianImageFilter clitkCommon ITKIO clitkFilters ITKBasicFilters)
vvToolManager.cxx
vvToolCreatorBase.cxx
vvToolWidgetBase.cxx
+ vvToolMedianFilter.cxx
# vvToolFoo.cxx
# vvToolFooWithWidgetBase.cxx
vvToolCropImage.cxx
vvToolCreatorBase.h
# vvToolFoo.h
# vvToolFooWithWidgetBase.h
+ vvToolMedianFilter.h
vvToolBinarize.h
vvToolSimpleInputSelectorWidget.h
vvToolInputSelectorWidget.h
qt_ui/vvToolSimpleInputSelectorWidget.ui
qt_ui/vvToolInputSelectorWidget.ui
qt_ui/vvToolWidgetBase.ui
+ qt_ui/vvToolMedianFilter.ui
# qt_ui/vvToolFoo.ui
qt_ui/vvToolCropImage.ui
qt_ui/vvToolBinarize.ui
#=========================================================
#support for parallel deformable registration with OpenMP
+IF(NOT __APPLE__)
IF(CMAKE_COMPILER_IS_GNUCC)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp -march=native")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
-
+ENDIF(NOT __APPLE__)
#=========================================================
IF (CLITK_VV_USE_BDCM)