[vtkusers] Oblique slice of 3D image data
joshipranav333 at gmail.com
Tue Jul 3 06:25:52 EDT 2018
Hi, I am having the same need ,i.e, I want to extract a 2D slice out of a 3D
vtkImageData and I am using the vtkPlaneWidget for getting the plane
(vtkPlane) and I want to display this extracted plane. But the same problem
colors shown are not accurate.
As mentioned in this answer that, have found an approach and gave a
link of the post, but unfortunately that url is no more in existence.
Will you please help me to find a solution on this.
If possible I want to have the same color map on the 2D slice that I have
applied to the 3D volume..
Tijmen Klein wrote
> Hello Rafay,
> I ended up with a different approach, not using the vtkImageReslice, since
> wanted to use a vtkPlane as the cutting source. For the solution that I've
> used, see this post on the mailinglist:
> If you want to go the vtkImageReslice -> vtkImagemapToColors way, have a
> look at the example posted by Jothy (
> On Wed, Sep 28, 2011 at 10:46 PM, Rafay <
> > wrote:
>> Hi Tijmen,
>> I am looking to do the exact same thing. I have 3d data set from a CT and
>> want to extract a 2D plane passing through the origin with any direction
>> cosines I choose and I want to extract the data along this plane. I am
>> ImageReslice I was wondering if u could post your code for this part as I
>> dont understand how you did this
>> vtkImageReslice -> vtkImagemapToColors
>> Also do you know how I can incorporate the interpolator into this?
>> View this message in context:
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Please keep messages on-topic and check the VTK FAQ at:
>> Follow this link to subscribe/unsubscribe:
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
More information about the vtkusers