[Insight-users] Array of Iterators
Bing Jian
bjian at cise . ufl . edu
Thu, 9 Oct 2003 21:47:44 -0400 (EDT)
On Thu, 9 Oct 2003, Bing Jian wrote:
>
> Hi Luis,
>
> It's still from the Jacobian problem.
> After the scalar comoponents are extracted by using ImageAdaptor,
> passed to gradient filter and finally stored into an array of
> vector images, then I need n input iterators and 1 output iterators to
> combine those n gradient images into 1 Jacobian image.
> That's what I am trying to do.
>
> I have tried this way, but was told that Pointer is not the member of
> IteratorType.
>
> ConstIteratorType::Pointer gradient_it[vector_dimension];
If I changed this line to
ConstIteratorType* gradient_it[vector_dimension];
then it can pass the compiling.
> for (i=0;i<vector_dimension;i++){
> gradient_it[i] = new
> ConstIteratorType(gradient_out[i], inputRegion);
> gradient_it[i]->GoToBegin();
> }
>
>
>