Commit c50f235d96e9f82b1b2c95ce72d4b384a344cba6

Authored by Cédric Traizet
1 parent ac8185b7
Exists in master

removed the factor of the variance for normalization

app/cbDimensionalityReduction.cxx
... ... @@ -222,7 +222,7 @@ private:
222 222 }
223 223  
224 224 // Rescale vector image
225   - m_Rescaler->SetScale(stddevMeasurementVector*3);
  225 + m_Rescaler->SetScale(stddevMeasurementVector);
226 226 m_Rescaler->SetShift(meanMeasurementVector);
227 227 m_Rescaler->SetInput(inImage);
228 228  
... ...
app/cbDimensionalityReductionTrainer.cxx
... ... @@ -124,7 +124,7 @@ private:
124 124 ShiftScaleFilterType::Pointer trainingShiftScaleFilter = ShiftScaleFilterType::New();
125 125 trainingShiftScaleFilter->SetInput(input);
126 126 trainingShiftScaleFilter->SetShifts(meanMeasurementVector);
127   - trainingShiftScaleFilter->SetScales(stddevMeasurementVector*3);
  127 + trainingShiftScaleFilter->SetScales(stddevMeasurementVector);
128 128 trainingShiftScaleFilter->Update();
129 129  
130 130 ListSampleType::Pointer trainingListSample= trainingShiftScaleFilter->GetOutput();
... ...
app/cbDimensionalityReductionVector.cxx
... ... @@ -223,7 +223,7 @@ class CbDimensionalityReductionVector : public Application
223 223 ShiftScaleFilterType::Pointer trainingShiftScaleFilter = ShiftScaleFilterType::New();
224 224 trainingShiftScaleFilter->SetInput(input);
225 225 trainingShiftScaleFilter->SetShifts(meanMeasurementVector);
226   - trainingShiftScaleFilter->SetScales(stddevMeasurementVector*3);
  226 + trainingShiftScaleFilter->SetScales(stddevMeasurementVector);
227 227 trainingShiftScaleFilter->Update();
228 228 otbAppLogINFO("mean used: " << meanMeasurementVector);
229 229 otbAppLogINFO("standard deviation used: " << stddevMeasurementVector);
... ...