[Insight-users] Borland 6 Build error
Miller, James V (Research)
millerjv@crd.ge.com
Mon, 25 Nov 2002 09:25:02 -0500
If we make this change, won't we have a problem with 1D images? SliceRegion
will then be an ImageRegion<0> which the compiler is not going to like (all
the arrays will be zero length).
> Now that,...
>
> looking closer to the ImageRegion class, maybe the
> problem is simple here since the dimension is not
> obtained from a class in the template parameters.
> The dimension is the parameter itself.
>
> It is then much simpler to define SliceRegion just as:
>
>
> typedef ImageRegion< VImageDimension-1 > SliceRegion
>
>
> Could you please try this definition in
> line 85 of itkImageRegion.h ?
>
> and let us know how Borland 6 feels about it ?
>
>