# Using 3D Slicer for Soil Scans Containing Insects

**URL:** <https://discourse.slicer.org/t/using-3d-slicer-for-soil-scans-containing-insects/22944>\
**Category:** Support\
**Created:** [April 13, 2022, 5:55pm UTC](https://discourse.slicer.org/t/using-3d-slicer-for-soil-scans-containing-insects/22944 "2022-04-13T17:55:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laricobius](https://avatars.discourse-cdn.com/v4/letter/l/ccd318/32.png) [@Laricobius](https://discourse.slicer.org/u/Laricobius)\
**Post date:** [April 13, 2022, 5:55pm UTC](https://discourse.slicer.org/t/using-3d-slicer-for-soil-scans-containing-insects/22944/1 "2022-04-13T17:55:19Z")

</div>

Operating system: iMac, Monterey 12.0.1  
Slicer version: 4.11.20210226 r29738 / 7a593c8  
Expected behavior: Viewing insects in scanned soil tubes  
Actual behavior: I am unable to use the ROI preset features to identify my insect in the scan. I have watched tutorials of people doing exactly what I want to do with identifying lung masses etc., however I cannot seem to figure out how to do it with insects in soil.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 13, 2022, 6:37pm UTC](https://discourse.slicer.org/t/using-3d-slicer-for-soil-scans-containing-insects/22944/2 "2022-04-13T18:37:04Z")

</div>

Can you attach a few screenshots that shows how the insect looks in slice views?

Due to density of soil, it may be hard to visualize the smaller, less dense insects inside. A solution can be to blank out the soil regions in the scan (you can do it using `Mask volume` effect in `Segment Editor` module).

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [April 13, 2022, 7:03pm UTC](https://discourse.slicer.org/t/using-3d-slicer-for-soil-scans-containing-insects/22944/3 "2022-04-13T19:03:18Z")

</div>

If the samples were scanned on a micro-CT scanner (not a medical scanner), the presets for visualizing bone, liver, etc will be useless as they are calibrated for specific dosages and tissues. Most zoological scans are not so standardized, and require determining proper transfer curves, thresholds, and so on manually.

---

<div class="post-metadata">

**Author:** ![Laricobius](https://avatars.discourse-cdn.com/v4/letter/l/ccd318/32.png) [@Laricobius](https://discourse.slicer.org/u/Laricobius)\
**Post date:** [April 14, 2022, 3:13pm UTC](https://discourse.slicer.org/t/using-3d-slicer-for-soil-scans-containing-insects/22944/4 "2022-04-14T15:13:54Z")

</div>

![Screen Shot 2022-04-14 at 10.53.16 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/4/c46239b7fe91c8db637c379b4e6543ba757a6465.jpeg)  
 ![Screen Shot 2022-04-14 at 10.54.42 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/b/fb5d2d1251b016177ce0db21cc9342b6a7f8706b.jpeg)  
 ![Screen Shot 2022-04-14 at 11.09.59 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/2/32be04e6dac27f5df216f073b6e37f7d5434d760.jpeg)

Here are several screenshots. Yes, I have found that those presets are useless. Are there guidelines for manually indicating my thresholds etc.?

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [April 14, 2022, 5:14pm UTC](https://discourse.slicer.org/t/using-3d-slicer-for-soil-scans-containing-insects/22944/5 "2022-04-14T17:14:35Z")

</div>

Generally, what I do is determine the voxel values for the area in question using the Data Probe in Segment Editor. If I can use thresholding combined with painting or scissors to extract what I’m looking for. Often, I will also use fill between slices combined with masking the volume to pull out a sub-volume for further processing.

What’s the insect in question? It’s hard to tell from this scan - is it a beetle or fly larva? What’s your voxel size and how big is the insect?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 14, 2022, 6:13pm UTC](https://discourse.slicer.org/t/using-3d-slicer-for-soil-scans-containing-insects/22944/6 "2022-04-14T18:13:19Z")

</div>

Could you also tell the end goal of your analysis? Would you like to count, measuring size & shape, visualize distribution within the soil sample, …? Do you have a plan for how to find the insects in the sample volume?
