Skip to content
Snippets Groups Projects
Commit 8249c1e4 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ERR : wrong commit

parent 6637a517
No related branches found
No related tags found
No related merge requests found
......@@ -91,9 +91,6 @@ int otbSurfaceAdjencyEffect6SCorrectionSchemeFilter(int argc, char * argv[])
double aerosolOptical(0.);
std::vector<double> DVector(1,0);
std::vector< std::vector<double> > DVectorVector(1,DVector);
std::ifstream fin;
fin.open(paramFile);
//Read input file parameters
......@@ -127,8 +124,6 @@ int otbSurfaceAdjencyEffect6SCorrectionSchemeFilter(int argc, char * argv[])
ValuesVectorType vect;
for (unsigned int j=0; j<nbChannel; j++)
{
DVector.clear();
functionValues = FilterFunctionValuesType::New();
vect.clear();
......@@ -146,7 +141,7 @@ int otbSurfaceAdjencyEffect6SCorrectionSchemeFilter(int argc, char * argv[])
while (!fin.eof() && fin.good())
{
fin >> value;
DVector/*vect*/.push_back(value);
vect.push_back(value);
}
fin.close();
......@@ -154,18 +149,17 @@ int otbSurfaceAdjencyEffect6SCorrectionSchemeFilter(int argc, char * argv[])
functionValues->SetMinSpectralValue(minSpectralValue);
functionValues->SetMaxSpectralValue(maxSpectralValue);
functionValues->SetUserStep( val );
DVectorVector.push_back(DVector);
param->SetWavelenghtSpectralBandWithIndex(j, functionValues);
}
corrToRadia->SetInput( param );
corrToRadia->Update();
//filter->SetAtmosphericRadiativeTerms(corrToRadia->GetOutput());
filter->SetFilterFunctionCoef(DVectorVector);
filter->SetAtmosphericRadiativeTerms(corrToRadia->GetOutput());
filter->SetWindowRadius(atoi(argv[3]));
filter->SetPixelSpacingInKilometers(static_cast<double>(atof(argv[4])));
//filter->SetZenithalViewingAngle(param->GetViewingZenithalAngle());
filter->SetZenithalViewingAngle(param->GetViewingZenithalAngle());
filter->SetInput(reader->GetOutput());
writer->SetInput(filter->GetOutput());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment