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>
double normProd1=0.0;
double normProd2=0.0;
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];
normProd1 += pixel[i]*pixel[i];
......
......@@ -44,6 +44,7 @@ namespace Functor
{
if (itA.GetCenterPixel() != 0)
{
TOutput resp = 0;
typename TInput1::OffsetType offset1,offset2;
int neighborhoodNumber;
if (itB.GetCenterPixel() > 0)
......@@ -84,13 +85,10 @@ namespace Functor
if ((itA.GetCenterPixel() > itA.GetPixel(offset1))
&& (itA.GetCenterPixel() > itA.GetPixel(offset2)))
{
return itA.GetCenterPixel();
}
else
{
return 0;
resp = itA.GetCenterPixel();
}
}
return resp;
}
};
}
......
......@@ -112,7 +112,6 @@ SpatialObjectDXFReader<TSpatialObject>
::GenerateData()
{
TestFileExistanceAndReadability();
GroupSpatialObjectType * ptr = this->GetOutput();
typedef otb::DXFToSpatialObjectGroupFilter<TSpatialObject> CreationFilter;
typename CreationFilter::Pointer creationClass = CreationFilter::New();
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