[vtkusers] imageSliceMapper->GetSliceNumber() problem

José M. Rodriguez Bacallao jmrbcu at gmail.com
Thu Aug 16 08:59:00 EDT 2012

ohh, I got it, the think is that I am only using vtkImageResliceMapper
because of its capability to manage big images very well, no to do
oblique reformats, just orthogonal ones. I understand what you say
about calculating the distance between planes, but, there is a ready
made example?

On Thu, Aug 16, 2012 at 8:38 AM, David Gobbi <david.gobbi at gmail.com> wrote:
> On Thu, Aug 16, 2012 at 5:53 AM, José M. Rodriguez Bacallao
> <jmrbcu at gmail.com> wrote:
>> David, could you please post an example of how to calculate the slice
>> number give an vtkPlane and vice versa (setting the slice number from
>> an vtk plane) using vtkImageResliceMapper as the mapper?
> If you know a point on whatever you consider to be the first slice of
> the volume, then all you need to do is compute the distance of the
> slice plane from that point.  But what do you consider to be the
> "first slice" when you are doing an oblique reformat?  Really, it's
> arbitrary.  The numbering of the slices is up to whoever is developing
> the application.
>  - David

More information about the vtkusers mailing list