[vtkusers] vtkImageReslice
João Domingos
joao.sousa.domingos at gmail.com
Tue Jan 22 16:11:12 EST 2013
For the ones who do not know, just add reslice.AutoCropOutputOn() and you
will get it done. Remember that The AutoCropOutputOn() will not work if you
call SetOutputSpacing(),
SetOutputOrigin(), or SetOutputExtent(). Make sure that you do not call
any of these three methods on your reslice object.
Thanks to David Gobbi for this info!
Joao
On 21 January 2013 09:23, João Domingos <joao.sousa.domingos at gmail.com>wrote:
> Hey again,
>
> Does anyone have any idea to this problem? I guess it is something simple..
>
> Is this the answer
> http://vtk.1045678.n5.nabble.com/vtkImageReslice-axes-direction-based-on-a-vtkPlane-td4825775.html?
> Meaning: VTK 5.10, that I guess includes vtkImageResliceMapper, and use
> of this class and method called SetSlicePlane() ?
>
> Many thanks for your time,
> Joao
>
>
> On 17 January 2013 10:07, João Domingos <joao.sousa.domingos at gmail.com>wrote:
>
>> Dear folks,
>>
>> Given the following:
>>
>> reslice = vtk.vtkImageReslice()
>> reslice.SetInputConnection(self.image_reader.GetOutputPort())
>> reslice.SetOutputDimensionality(2)
>> reslice.SetInterpolationModeToCubic()
>> reslice.SetResliceAxes(axes_matrix_from_vtkMatrix4x4)
>>
>> I am able to extract the 2D slice I want from my 3D volume, but it is
>> shortened on the sides and cuts both the right and left side of the volume
>> (cone). The height of the resulting slice is fine and includes the whole
>> cone. Imagining the volume is a cube, the resulting slice is a rectangle
>> (shortened on the sides).
>>
>> How can I choose the dimension of the resulting slice to include the
>> whole cone, i.e. basically how can I slice the whole volume?
>>
>>
>> Many thanks in advance!
>>
>> Joao
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130122/e594f483/attachment.htm>
More information about the vtkusers
mailing list