[vtkusers] Oblique slice of 3D image data
Praz3
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
that the
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
> I
> wanted to use a vtkPlane as the cutting source. For the solution that I've
> used, see this post on the mailinglist:
> http://www.vtk.org/pipermail/vtkusers/2011-September/119089.html
>
> If you want to go the vtkImageReslice -> vtkImagemapToColors way, have a
> look at the example posted by Jothy (
> http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/ImageProcessing/Cxx/ImageSlicing.cxx
> )
>
> Cheers,
> Tijmen
>
> On Wed, Sep 28, 2011 at 10:46 PM, Rafay <
> rafayk_@
> > wrote:
>
>> Hi Tijmen,
>>
>> I am looking to do the exact same thing. I have 3d data set from a CT and
>> I
>> 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
>> using
>> 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?
>>
>> Thanks
>>
>> --
>> View this message in context:
>> http://vtk.1045678.n5.nabble.com/Oblique-slice-of-3D-image-data-tp4822198p4850672.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
More information about the vtkusers
mailing list