<div dir="ltr">I would guess <a class="el" href="https://www.vtk.org/doc/nightly/html/classvtkImageReslice.html#afc12e98a8cb2a33cc978b9d53235afc8" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">SetBackgroundColor</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>(</span><a class="el" href="https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">double</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">,<span> </span></span><a class="el" href="https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">double</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">,<span> </span></span><a class="el" href="https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">double</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">,<span> </span></span><a class="el" href="https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">double</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">) or <a class="el" href="https://www.vtk.org/doc/nightly/html/classvtkImageReslice.html#ae7e49081800db82478d645dcc00ff75d" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">SetBackgroundLevel</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>(</span><a class="el" href="https://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a45c855d65dd0e2b57b08024500ff9159" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">double</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>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.</span></span><div><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></div><div><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">- Cory</span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 12, 2018 at 11:23 PM, Jounly <span dir="ltr"><<a href="mailto:lihouxing0710@gmail.com" target="_blank">lihouxing0710@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
I am trying to use vtkImageReslice to generate an oblique slice from the<br>
image volume. However, when some part of the output image is outside the<br>
volume, the scalar value of the region is very large, which I want it to be<br>
small as it is the background. I am wondering that is there any function<br>
which I can call to set the default scalar value generated by<br>
vtkImageReslice when it is outside the image volume?<br>
Any help would be appreciated, thanks in advance.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div>