diff --git a/Code/BasicFilters/otbAmplitudePhaseToRGBFunctor.h b/Code/BasicFilters/otbAmplitudePhaseToRGBFunctor.h index 73358b82ef019a80340ba9922458a8a45e7e1a3f..7e0eccc6a6fa463d4c634c48f84ef5bf65a6bd0d 100644 --- a/Code/BasicFilters/otbAmplitudePhaseToRGBFunctor.h +++ b/Code/BasicFilters/otbAmplitudePhaseToRGBFunctor.h @@ -71,10 +71,8 @@ public: inline TOutput operator ()(const TInput1& amplitude, const TInput2& coherence, const TInput3& phase) const { // std::cout << amplitude << " - " << phase << std::endl; - double hinc, sinc, vinc; + double hinc; hinc = 0.6 / (CONST_2PI); - sinc = 0.0; - vinc = 0.0; double hue, sat, val; diff --git a/Code/BasicFilters/otbVectorDataToRandomLineGenerator.txx b/Code/BasicFilters/otbVectorDataToRandomLineGenerator.txx index a2ed84a2237369b664d9db8c1887a6c6a76ad675..147c0792c3a53d7374ac8f47cb40cc7b91560311 100644 --- a/Code/BasicFilters/otbVectorDataToRandomLineGenerator.txx +++ b/Code/BasicFilters/otbVectorDataToRandomLineGenerator.txx @@ -77,7 +77,7 @@ VectorDataToRandomLineGenerator<TVectorData> RegionType generatorRegion = node->GetPolygonExteriorRing()->GetBoundingRegion(); typename RegionType::SizeType generatorRegionSize = generatorRegion.GetSize(); typename RegionType::IndexType generatorRegionIndex = generatorRegion.GetIndex(); - typename RegionType::IndexType generatorRegionOrigin = generatorRegion.GetOrigin(); + //typename RegionType::IndexType generatorRegionOrigin = generatorRegion.GetOrigin(); // Generation PointType rangeMin, rangeMax; diff --git a/Code/FeatureExtraction/otbImageToSIFTKeyPointSetFilter.txx b/Code/FeatureExtraction/otbImageToSIFTKeyPointSetFilter.txx index c8d25f74ab8a051672d54c3a1bdfa1443db72e26..fd95dd4ae1014e8e3cd88c6dca6e68e136d166e8 100644 --- a/Code/FeatureExtraction/otbImageToSIFTKeyPointSetFilter.txx +++ b/Code/FeatureExtraction/otbImageToSIFTKeyPointSetFilter.txx @@ -627,7 +627,7 @@ ImageToSIFTKeyPointSetFilter<TInputImage, TOutputPointSet> double secondMax = 0; double sum = 0; int maxIndex = 0; - int secondMaxIndex = -1; + //int secondMaxIndex = -1; int j = 0; int i = 0; @@ -648,14 +648,14 @@ ImageToSIFTKeyPointSetFilter<TInputImage, TOutputPointSet> if (lSmoothedHistogram[i] > max) { secondMax = max; - secondMaxIndex = maxIndex; + //secondMaxIndex = maxIndex; max = lSmoothedHistogram[i]; maxIndex = i; } else if (sum > secondMax) { secondMax = lSmoothedHistogram[i]; - secondMaxIndex = i; + //secondMaxIndex = i; } } // This structure will hold the located maximums diff --git a/Testing/Code/FeatureExtraction/otbAlignImageToPath.cxx b/Testing/Code/FeatureExtraction/otbAlignImageToPath.cxx index 690b478dd6a20f5310705cd7c552acc69e813ef8..0a5d2e647e161e10a5c28c804b222e38b80a813d 100644 --- a/Testing/Code/FeatureExtraction/otbAlignImageToPath.cxx +++ b/Testing/Code/FeatureExtraction/otbAlignImageToPath.cxx @@ -129,7 +129,8 @@ int otbAlignImageToPath(int argc, char * argv[]) typedef VertexListType::ConstPointer VertexListTypePointer; VertexListTypePointer vertexList; VertexType cindex; - double x1, y1, x2, y2; + double x1, y1; + //double x2, y2; int nbPath = sortiePath->Size(); otbGenericMsgDebugMacro(<< "NbSegment: " << nbPath); @@ -141,8 +142,8 @@ int otbAlignImageToPath(int argc, char * argv[]) x1 = cindex[0]; y1 = cindex[1]; cindex = vertexList->GetElement(1); - x2 = cindex[0]; - y2 = cindex[1]; + //x2 = cindex[0]; + //y2 = cindex[1]; fprintf(file, "%8.3f %8.3f\n", x1, y1); } fclose(file); diff --git a/Testing/Code/FeatureExtraction/otbImageToSURFKeyPointSetFilterOutputInterestPointAscii.cxx b/Testing/Code/FeatureExtraction/otbImageToSURFKeyPointSetFilterOutputInterestPointAscii.cxx index ef1230f6cf1d9d945160e44c56a0b9c95342b1d8..fde28620bc138f8b8ca5a5fdfa20b63cee8beb03 100644 --- a/Testing/Code/FeatureExtraction/otbImageToSURFKeyPointSetFilterOutputInterestPointAscii.cxx +++ b/Testing/Code/FeatureExtraction/otbImageToSURFKeyPointSetFilterOutputInterestPointAscii.cxx @@ -70,7 +70,7 @@ int otbImageToSURFKeyPointSetFilterOutputInterestPointAscii(int argc, char * arg filter->Update(); PointsIteratorType pIt = filter->GetOutput()->GetPoints()->Begin(); - PointDataIteratorType pDataIt = filter->GetOutput()->GetPointData()->Begin(); + filter->GetOutput()->GetPointData()->Begin(); std::ofstream outfile(outfname); diff --git a/Testing/Code/IO/otbImageIOFactoryNew.cxx b/Testing/Code/IO/otbImageIOFactoryNew.cxx index 3b59e217c685f610ab31f0c5a92b669520c85f5d..0c6ef141a5ee04549d33510502c0a60096f5a4e4 100644 --- a/Testing/Code/IO/otbImageIOFactoryNew.cxx +++ b/Testing/Code/IO/otbImageIOFactoryNew.cxx @@ -24,7 +24,7 @@ int otbImageIOFactoryNew(int argc, char* argv[]) { - otb::ImageIOFactory * lImageIOFactory; + otb::ImageIOFactory *lImageIOFactory; lImageIOFactory = NULL; - return EXIT_SUCCESS; + return lImageIOFactory != NULL; //to avoid unused variable warning }