Commit faa48a98 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

FIX: Replaced MultitempFilteringFilter (causing stream artifacts) with a...

FIX: Replaced MultitempFilteringFilter (causing stream artifacts) with a sequence of mean smoothing and bandmath.
parent d6505203
......@@ -354,8 +354,9 @@ def MultitempFilteringFilter(infiles, outdir, window_radius, outcore_file, enl_f
pipe[-1].SetParameterString('ram', str(ram))
pipe[-1].Execute()
pipe.append(otb.Registry.CreateApplication('BandMath'))
pipe[-1].SetParameterStringList('il', [f, outcore_file])
pipe[-1].SetParameterString('exp', 'im1b1*im2b1/im2b2')
pipe[-1].SetParameterStringList('il', [outcore_file])
pipe[-1].AddImageToParameterInputImageList('il', pipe[-2].GetParameterOutputImage('out'))
pipe[-1].SetParameterString('exp', 'im2b1*im1b1/im1b2')
pipe[-1].SetParameterString('ram', str(ram))
pipe[-1].SetParameterString('out', outfiles[i])
pipe[-1].ExecuteAndWriteOutput()
......
Markdown is supported
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