Hi Jordi,

Thanks for the response. Unfortunately, I don't think 
otb::PerBandVectorImageFilter is useful in my case because my inner filter 
does not output an image -- I'm trying to compute per-band statistics [1].

It looks like I'm having trouble getting ITK to compute the upstream 
filters in my pipeline. If you look at the implementation I've posted, 
search for the commented lines.

Laurentiu

[1] I know about otb::StreamingStatisticsVectorImageFilter, but its 
handling of ignored values does not work for my use-case.

On Wednesday, 19 October 2016 20:22:16 UTC+3, Jordi Inglada wrote:
>
> Hi Laurențiu, 
>
> I am not sure to understand the issue, but maybe the infamous 
> otb::PerBandVectorImageFilter can help you here: 
>
>
> https://www.orfeo-toolbox.org//doxygen/classotb_1_1PerBandVectorImageFilter.html
>  
>
> Good luck. 
>
> Jordi 
>
> Laurențiu Nicola <[email protected] <javascript:>> wrote: 
> > 
> > Hello, 
> > 
> > I'm trying to write a pipeline that 
> > 
> > 1 reads an image 
> > 2 passes each band to an instance of a filter 
> > 3 gathers the filter outputs and uses that as an input to a different 
> filter 
> > 
> > I'm not really familiar to ITK pipelines, but my approach was to derive 
> from itk::ProcessObject, set the outputs from step 1 as inputs to this 
> filter and use the computed values in GenerateData(). However, at 
> > that point the inputs don't seem to have been computed yet. 
> > 
> > A workaround is to manually call Update() in step 2, but that's probably 
> less efficient. 
> > 
> > Does anyone have some tips on how to do this? My code looks like this: 
> https://gist.github.com/lnicola/1710d79e4f129e02528e4c4149f8047d 
> > 
> > Thanks, 
> > 
> > Laurentiu Nicola 
> > 
> > -- 
>

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to