Skip to content
Snippets Groups Projects
Commit b8b3f50f authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: 600: leave the SpectralSensitivity ordered by wavelength

parent caca2604
No related branches found
No related tags found
No related merge requests found
......@@ -1902,26 +1902,15 @@ PleiadesImageMetadataInterface
{
itkExceptionMacro(<< "Invalid number of bands...");
}
for (unsigned int k = 0; k < nbBands; ++k)
{
wavelengthSpectralBand->PushBack(FilterFunctionValues::New());
}
unsigned int j = 0;
for (std::list <std::vector<float> >::const_iterator it = tmpSpectralBandList.begin(); it != tmpSpectralBandList.end(); ++it)
{
for (unsigned int k = 0; k < nbBands; ++k)
{
if (this->BandIndexToWavelengthPosition(k) == j)
{
wavelengthSpectralBand->GetNthElement(k)->SetFilterFunctionValues(*it);
wavelengthSpectralBand->GetNthElement(k)->SetMinSpectralValue(0.430);
wavelengthSpectralBand->GetNthElement(k)->SetMaxSpectralValue(0.950);
wavelengthSpectralBand->GetNthElement(k)->SetUserStep(0.0025);
break;
}
}
wavelengthSpectralBand->PushBack(FilterFunctionValues::New());
wavelengthSpectralBand->GetNthElement(j)->SetFilterFunctionValues(*it);
wavelengthSpectralBand->GetNthElement(j)->SetMinSpectralValue(0.430);
wavelengthSpectralBand->GetNthElement(j)->SetMaxSpectralValue(0.950);
wavelengthSpectralBand->GetNthElement(j)->SetUserStep(0.0025);
++j;
}
......
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