# VTK-examples FrogSlice

**URL:** https://discourse.vtk.org/t/vtk-examples-frogslice/8364
**Category:** Support
**Tags:** file-formats
**Created:** [April 25, 2022, 1:43am UTC](https://discourse.vtk.org/t/vtk-examples-frogslice/8364 "2022-04-25T01:43:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Chris9810](https://discourse.vtk.org/user_avatar/discourse.vtk.org/chris9810/32/5064_2.png) [@Chris9810](https://discourse.vtk.org/u/Chris9810)
#### Post date: [April 25, 2022, 1:43am UTC](https://discourse.vtk.org/t/vtk-examples-frogslice/8364/1 "2022-04-25T01:43:13Z")

</div>

Hi,  
I’m a beginner about VTK. I want to learn the FrogSlice-example in VTK website. The example provides C++ code and CMakeList.txt, but no raw image data. I would greatly appreciate it if anyone could tell me about how to get raw image data of the FrogSlice-example.

Thanks

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://discourse.vtk.org/user_avatar/discourse.vtk.org/freya_the_goddess/32/4942_2.png) [@Freya\_the\_Goddess](https://discourse.vtk.org/u/Freya_the_Goddess)
#### Post date: [April 25, 2022, 1:59pm UTC](https://discourse.vtk.org/t/vtk-examples-frogslice/8364/2 "2022-04-25T13:59:54Z")

</div>

Hi Chris,

I am a newbie as well, but because I saw this question, I become curious and interested to answer your question while learning as well.

So if you want to know, when you git clone the vtk-example repository here:  
‘[GitHub - Kitware/vtk-examples: This is the VTK Examples Web Site. This is a mirror of the https://gitlab.kitware.com/vtk/vtk-examples repository in order to host web pages. DO NOT SUBMIT MERGE REQUESTS HERE.](https://github.com/Kitware/vtk-examples)’

then all the data for examples will be available under this directory `<vtk-examples>/src/Testing/Data/Frog`  
here is the link:  
‘[vtk-examples/src/Testing/Data/Frog at master · Kitware/vtk-examples · GitHub](https://github.com/Kitware/vtk-examples/tree/master/src/Testing/Data/Frog)’  
That’s the files you are looking for.

You can call it after building the example of FrogSlice by adding the path to the `frog.mhd` and `frogtissue.mhd`

See my screenshot below:  
I create an environment variable by setting `$vtkdata=../<vtk-examples>/src/Testing/Data/Frog`

This is the command I use:  
`./FrogSlice $vtkdata/Frog/frog.mhd $vtkdata/Frog/frogtissue.mhd`

 ![1vtk4](https://discourse.vtk.org/uploads/default/original/2X/d/d9fbd624149a5f64eaf8729888b1de601f0a0201.png)

---

<div class="post-metadata">

### Author: ![Chris9810](https://discourse.vtk.org/user_avatar/discourse.vtk.org/chris9810/32/5064_2.png) [@Chris9810](https://discourse.vtk.org/u/Chris9810)
#### Post date: [May 4, 2022, 11:03am UTC](https://discourse.vtk.org/t/vtk-examples-frogslice/8364/3 "2022-05-04T11:03:50Z")

</div>

Thank you very much for your patient reply!!! It really helped me a lot.
