[vtkusers] Append volumes with different dimensions

David Gobbi david.gobbi at gmail.com
Thu Oct 4 11:21:42 EDT 2012


Hi Anupriya,

If the volumes are different sizes, then the smaller image must be
padded to make it the same size as the larger image.  The two ways of
doing this are with vtkImageConstantPad, or with vtkImageReslice.
With vtkImageReslice, you can pad an image by setting the OutputExtent
to the extent that you need.

 - David

On Thu, Oct 4, 2012 at 1:42 AM,  <anupriya.sharma at accenture.com> wrote:
> Hi David
>
> I am trying to append two volumes with the help of vtkImageAppendComponents.
>
> The two volumes are fused successfully if the
> dimensions(DataExtent,Dataspacing,DataOrigin) of both of them are same.
>
> But if the dimensions are different then I get an error.
>
> For instance the DataExtent of first volume is 239,255,175 and the
> DataExtent of second volume is 93,93,35
>
> Then I get the following error
>
> vtkStreamingDemandDrivenPipeline (000000001CD40000): The update extent
> specified in the information for output port 0 on algorithm
> vtkImageReader(000000001CD61900) is 0 239 0 255 0 175, which is outside the
> whole extent 0 93 0 93 0 35.
>
> Could you please help me out in this.
>
> How should I append volumes with different dimesions?
>
> Regards
>
> Anupriya Sharma
>
> ________________________________
> Subject to local law, communications with Accenture and its affiliates
> including telephone calls and emails (including content), may be monitored
> by our systems for the purposes of security and the assessment of internal
> compliance with Accenture policy.
> ______________________________________________________________________________________
>
> www.accenture.com



More information about the vtkusers mailing list