Skip to content
Snippets Groups Projects
Commit a50cc19d authored by Luc Hermitte's avatar Luc Hermitte
Browse files

REFACT: Let LIA map in float32

The conversion to int16 will be done after orthorectofication
parent 478484ab
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,8 @@ public:
using InputImageType = otb::VectorImage<RealInputPixelType, 2>;
// using OutputImageType = otb::VectorImage<RealOutputPixelType, 2>;
using OutputImageType = otb::Image<RealOutputPixelType, 2>;
using LIAOutputImageType = otb::Image<std::int16_t, 2>;
using LIAOutputImageType = otb::Image<RealOutputPixelType, 2>;
// using LIAOutputImageType = otb::Image<std::int16_t, 2>;
using FilterType = otb::SARComputeLocalIncidenceAngle<InputImageType, OutputImageType, LIAOutputImageType>;
/** Standard macro */
......@@ -96,8 +97,10 @@ private:
AddParameter(ParameterType_OutputImage, k_out_lia, "Optional output image with abs(LIA) in degree * 100");
SetParameterDescription(k_out_lia, "Optional output image with abs(LIA) in degree * 100");
SetParameterOutputImagePixelType(k_out_lia, ImagePixelType_int16);
// SetDefaultOutputPixelType(k_out_lia, ImagePixelType_uint16);
// SetParameterOutputImagePixelType(k_out_lia, ImagePixelType_int16);
#if defined(DOUBLES_EVERYWHERE)
SetDefaultOutputPixelType(k_out_lia, ImagePixelType_double);
#endif
MandatoryOff(k_out_lia);
AddParameter(ParameterType_OutputImage, k_out_sin, "Output image with abs(sin LIA)");
......
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