# View slice after thresholding

**URL:** https://discourse.paraview.org/t/view-slice-after-thresholding/11797
**Category:** ParaView Support
**Created:** [April 3, 2023, 1:45pm UTC](https://discourse.paraview.org/t/view-slice-after-thresholding/11797 "2023-04-03T13:45:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jadball](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jadball/32/11319_2.png) [@jadball](https://discourse.paraview.org/u/jadball)
#### Post date: [April 3, 2023, 1:45pm UTC](https://discourse.paraview.org/t/view-slice-after-thresholding/11797/1 "2023-04-03T13:45:29Z")

</div>

Hi all,

I have an RGB image stack into a cell array where each cell contains the RGB value I’d like to plot. I am able to display this by picking the RGB array in the Coloring menu under Display (UniformGridRepresentation). However, each image in the stack contains a black background. This means that when I plot the RGB array in 3D, I see the image background as a black box surrounding my region of interest.

I can remove these black regions with a Threshold filter, which works fine for 3D plots. However, because the Threshold filter changes the data to an UnstructuredGridRepresentation, I then can’t use the “Slice” representation to plot individual slices at specific array indices.

Is there a way around this? Thanks in advance.
