From: Simon Rit Date: Thu, 15 Mar 2018 09:14:26 +0000 (+0100) Subject: Windows compilation X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f3b20077dc1019a4e5100f20dd6875d1e6327c9a;p=clitk.git Windows compilation Remove error due to M_PI Remove error due to and Remove warning due to unused variables --- diff --git a/common/clitkCommon.cxx b/common/clitkCommon.cxx index af462a4..c71bd50 100644 --- a/common/clitkCommon.cxx +++ b/common/clitkCommon.cxx @@ -21,9 +21,10 @@ #include -#ifndef _WIN32 +#ifdef _WIN32 #define _USE_MATH_DEFINES #include + const double M_PI = std::acos(-1.0); #endif // clitk include diff --git a/common/clitkDicomRT_Contour.cxx b/common/clitkDicomRT_Contour.cxx index 4bd4598..bcff817 100644 --- a/common/clitkDicomRT_Contour.cxx +++ b/common/clitkDicomRT_Contour.cxx @@ -271,11 +271,12 @@ void clitk::DicomRT_Contour::ComputeMeshFromDataPoints() mMesh->SetPoints(mPoints); vtkIdType ids[2]; for (unsigned int idx=0 ; idxGetPoint(idx)[j]; pointIn[4] = 1.0; - /*mTransformMatrix->MultiplyPoint(pointIn, pointOut); + /*double pointOut[4]; + mTransformMatrix->MultiplyPoint(pointIn, pointOut); std::cout << pointOut[0] << " " << pointOut[1] << " " << pointOut[2] << " " << pointOut[3] << std::endl; mMesh->GetPoints()->InsertNextPoint(pointOut[0], pointOut[1], diff --git a/tools/clitkBinarizeImageGenericFilter.cxx b/tools/clitkBinarizeImageGenericFilter.cxx index 6affce0..f94cf1a 100644 --- a/tools/clitkBinarizeImageGenericFilter.cxx +++ b/tools/clitkBinarizeImageGenericFilter.cxx @@ -214,7 +214,7 @@ BinarizeImageGenericFilter::MaskOfIntegratedIntensity() int n = input->GetLargestPossibleRegion().GetNumberOfPixels(); std::vector should_keep(values.size());; std::fill(should_keep.begin(), should_keep.end(), 0); - while (currentGetLargestPossibleRegion().GetNumberOfPixels(); std::vector should_keep(values.size());; std::fill(should_keep.begin(), should_keep.end(), 0); - while (current