Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

COMP: Small changes for Visual Studio BRAINSABC build

  • Loading branch information...
commit 1408e45bd3c294eea378cad294c98f097c42106d 1 parent b2683b1
Kent Williams authored May 16, 2012
2  BRAINSABC/brainseg/BRAINSABCUtilities.h
@@ -87,7 +87,7 @@ extern std::vector<CorrectIntensityImageType::Pointer> CorrectBias(
87 87
   const ByteImageType::Pointer currentForegroundMask, const std::vector<FloatImageType::Pointer> & probImages,
88 88
   const std::vector<bool> & probUseForBias, const FloatingPrecision sampleSpacing, const int DebugLevel, const std::string& OutputDebugDir);
89 89
 
90  
-extern template class std::vector<FloatImagePointerType> DuplicateImageList<FloatImageType>(
  90
+extern template std::vector<FloatImagePointerType> DuplicateImageList<FloatImageType>(
91 91
   const std::vector<FloatImagePointerType> & );
92 92
 
93 93
 extern template std::vector<ShortImageType::Pointer> DuplicateImageList<ShortImageType>(
6  BRAINSABC/brainseg/LLSBiasCorrector.hxx
@@ -654,8 +654,11 @@ LLSBiasCorrector<TInputImage, TProbabilityImage>
654 654
     svd.zero_out_absolute(1e-8);
655 655
     coeffs = svd.solve(rhs);
656 656
     }
657  
-#if 1
  657
+#ifndef WIN32
658 658
   if( !std::isfinite( (double)coeffs[0][0]) )
  659
+#else
  660
+    if( coeffs[0][0] != std::numeric_limits::infinity() )
  661
+#endif
659 662
     {
660 663
     itkExceptionMacro(
661 664
       << "\ncoeffs: \n" << coeffs
@@ -666,7 +669,6 @@ LLSBiasCorrector<TInputImage, TProbabilityImage>
666 669
       << "\nrhs: \n" << rhs
667 670
       );
668 671
     }
669  
-#endif
670 672
   // Clear memory for the basis transpose
671 673
   basisT.set_size(0, 0);
672 674
 

0 notes on commit 1408e45

Please sign in to comment.
Something went wrong with that request. Please try again.