[vtkusers] correction of spacing
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Nov 25 08:25:02 EST 2008
On Tue, Nov 25, 2008 at 2:22 PM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> On Tue, Nov 25, 2008 at 8:24 AM, Bartosz Wiklak <bwiklak at gmail.com> wrote:
>>> Plug a vtkImageChangeInformation object into your pipeline right after your reader. It'll look something like:
>>
>>> vtkImageChangeInformation *changer = vtkImageChangeInformation::New();
>>> changer->SetOutputSpacing(xSpacing, ySpacing, zSpacing);
>>> changer->SetInputConnection(reader->GetOutputPort());
>>> ...
>>> vtkImageReslice *reslice = vtkImageReslice::New();
>>> reslice->SetInputConnection(changer->GetOutputPort());
>>
>>> Hope that helps,
>>
>> Yes, that is what I needed!
>
> No, this is not what you should be doing.
Ok I did not read the vtkImageChangeInformation part, this is correct.
What is the vtkImageReslice part for ?
--
Mathieu
More information about the vtkusers
mailing list