Skip to content
Snippets Groups Projects
Commit aeb4d66f authored by Julien Michel's avatar Julien Michel
Browse files

Correction warnings debug - wall

parent d6b5a149
Branches
Tags
No related merge requests found
...@@ -76,7 +76,7 @@ SpectralAngleDistanceImageFilter<TInputImage,TOutputImage> ...@@ -76,7 +76,7 @@ SpectralAngleDistanceImageFilter<TInputImage,TOutputImage>
double normProd1=0.0; double normProd1=0.0;
double normProd2=0.0; double normProd2=0.0;
InputPixelType pixel = inputIt.Get(); InputPixelType pixel = inputIt.Get();
for (int i=0; i<pixel.Size(); i++) for (unsigned int i=0; i<pixel.Size(); i++)
{ {
scalarProd += pixel[i]*m_ReferencePixel[i]; scalarProd += pixel[i]*m_ReferencePixel[i];
normProd1 += pixel[i]*pixel[i]; normProd1 += pixel[i]*pixel[i];
......
...@@ -44,6 +44,7 @@ namespace Functor ...@@ -44,6 +44,7 @@ namespace Functor
{ {
if (itA.GetCenterPixel() != 0) if (itA.GetCenterPixel() != 0)
{ {
TOutput resp = 0;
typename TInput1::OffsetType offset1,offset2; typename TInput1::OffsetType offset1,offset2;
int neighborhoodNumber; int neighborhoodNumber;
if (itB.GetCenterPixel() > 0) if (itB.GetCenterPixel() > 0)
...@@ -84,13 +85,10 @@ namespace Functor ...@@ -84,13 +85,10 @@ namespace Functor
if ((itA.GetCenterPixel() > itA.GetPixel(offset1)) if ((itA.GetCenterPixel() > itA.GetPixel(offset1))
&& (itA.GetCenterPixel() > itA.GetPixel(offset2))) && (itA.GetCenterPixel() > itA.GetPixel(offset2)))
{ {
return itA.GetCenterPixel(); resp = itA.GetCenterPixel();
}
else
{
return 0;
} }
} }
return resp;
} }
}; };
} }
......
...@@ -112,7 +112,6 @@ SpatialObjectDXFReader<TSpatialObject> ...@@ -112,7 +112,6 @@ SpatialObjectDXFReader<TSpatialObject>
::GenerateData() ::GenerateData()
{ {
TestFileExistanceAndReadability(); TestFileExistanceAndReadability();
GroupSpatialObjectType * ptr = this->GetOutput();
typedef otb::DXFToSpatialObjectGroupFilter<TSpatialObject> CreationFilter; typedef otb::DXFToSpatialObjectGroupFilter<TSpatialObject> CreationFilter;
typename CreationFilter::Pointer creationClass = CreationFilter::New(); typename CreationFilter::Pointer creationClass = CreationFilter::New();
if (m_LayerName.size()>0) if (m_LayerName.size()>0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment