[vtkusers] How to set default scalar value when using vtkImageReslice

Cory Quammen cory.quammen at kitware.com
Fri Apr 13 00:35:26 EDT 2018


I would guess SetBackgroundColor
<https://www.vtk.org/doc/nightly/html/classvtkImageReslice.html#afc12e98a8cb2a33cc978b9d53235afc8>
 (double
<https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159>
, double
<https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159>
, double
<https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159>
, double
<https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159>)
or SetBackgroundLevel
<https://www.vtk.org/doc/nightly/html/classvtkImageReslice.html#ae7e49081800db82478d645dcc00ff75d>
 (double
<https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159>
 v) might be what you are looking for, though I'm not sure because their
default values are (0, 0, 0, 0) and 0, respectively.

- Cory

On Thu, Apr 12, 2018 at 11:23 PM, Jounly <lihouxing0710 at gmail.com> wrote:

> Dear all,
> I am trying to use vtkImageReslice to generate an oblique slice from the
> image volume. However, when some part of the output image is outside the
> volume, the scalar value of the region is very large, which I want it to be
> small as it is the background. I am wondering that is there any function
> which I can call to set the default scalar value generated by
> vtkImageReslice when it is outside the image volume?
> Any help would be appreciated, thanks in advance.
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180413/c3cc8786/attachment.html>


More information about the vtkusers mailing list