Commit 0ca0cb58 authored by jbrossar's avatar jbrossar
Browse files

[BUG] Remove angles image writing

parent a2deb044
Pipeline #10566 failed with stages
in 19 minutes and 15 seconds
......@@ -89,6 +89,7 @@ build-env-ubuntu:
- rclone copy s3_otb:wasp-data/test_Preprocessing_Light ../Data/test_Preprocessing_Light
- rclone copy s3_otb:wasp-data/test_ProductFormatter_Light ../Data/test_ProductFormatter_Light
- rclone copy s3_otb:wasp-data/test_UpdateSynthesis_Light ../Data/test_UpdateSynthesis_Light
- rclone copy s3_otb:wasp-data/test_SimpleLutXMLReader ../Data/test_SimpleLutXMLReader
- ctest -V
- mkdir ../pkg-build
- cd ../pkg-build
......
......@@ -29,8 +29,6 @@
#include "PreprocessingAdapter.h"
#include "DirectionalCorrection.h"
#include "MetadataHelperFactory.h"
#include "otbImageFileReader.h"
#include "otbImageFileWriter.h"
#include "otbWrapperApplication.h"
......@@ -41,10 +39,7 @@ const char * PreprocessingSentinel::GetNameOfClass() const
{
return "PreprocessingSentinel";
}
typedef float FloatPixelType;
typedef otb::Image<FloatPixelType, 2> InputImageType;
typedef otb::Wrapper::FloatVectorImageType FloatVectorImageType;
typedef otb::ImageFileWriter<FloatVectorImageType> FloatVectorImageWriterType;
PreprocessingAdapter::FloatImageType::Pointer PreprocessingSentinel::getCloudMask(const std::string &filename, const unsigned char &bit){
return getFloatMask(filename, bit);
......@@ -99,14 +94,6 @@ std::vector<PreprocessingAdapter::ShortVectorImageType::Pointer> PreprocessingSe
anglesImg->Update();
m_createAngles.push_back(createAngles);
FloatVectorImageWriterType::Pointer l_coeffwriter = FloatVectorImageWriterType::New();
l_coeffwriter->SetInput(anglesImg);
l_coeffwriter->SetFileName("/home/julie/angles_images.tif");
l_coeffwriter->Update();
//If Resolution is not principal Resolution, then resize the additional images
std::cout << "Current resolution: " <<
pHelper->getResolutions().getResolutionVector()[resolution].getBands()[0].getResolution() << std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment