# FourPaneViewer example misses testcase

**URL:** https://discourse.vtk.org/t/fourpaneviewer-example-misses-testcase/7849
**Category:** Support
**Created:** [February 16, 2022, 11:01am UTC](https://discourse.vtk.org/t/fourpaneviewer-example-misses-testcase/7849 "2022-02-16T11:01:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pettaa123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pettaa123/32/218_2.png) [@pettaa123](https://discourse.vtk.org/u/pettaa123)
#### Post date: [February 16, 2022, 11:01am UTC](https://discourse.vtk.org/t/fourpaneviewer-example-misses-testcase/7849/1 "2022-02-16T11:01:11Z")

</div>

Since there is no test case specified for FourPaneViewer example and I have some failed tests,I dont know if my self compiled code is faulty or my input is wrong.

LastTest.log:

```auto
Running test command: "C:/Program Files/CMake/bin/ctest.exe" "-C" "Release"
Test project D:/vtk/vtkbuild/Examples/GUI/Qt/FourPaneViewer
No tests were found!!!

```

I tried several freely available test sets and the prostate set from src\Testing\Data\dicom, by specifying the file location as start parameter. D:\vtk\vtkbuild\ExternalData\Testing\Data\dicom

```auto
ERROR: In D:\vtk\vtksrc\IO\Image\vtkDICOMImageReader.cxx, line 96
vtkDICOMImageReader (000001AF06F659B0): DICOMParser couldn't open : D:/vtk/vtkbuild/ExternalData/Testing/Data/dicom/collection

```

content:  
-prostate.IMG  
-collection [folder]  
–IM-0001-1983.dcm  
–IM-0001-1984.dcm  
–IM-0001-1985.dcm  
…

[LastTestsFailed.log](https://discourse.vtk.org/uploads/short-url/5FweUXrIIe2ixDyB6DP2qWQ50hw.log) (1011 Bytes)

 ![ouput](https://discourse.vtk.org/uploads/default/original/2X/6/6a3308c974cc1550d2bb9fe4c399187de7530be4.png)

---

<div class="post-metadata">

### Author: ![pettaa123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pettaa123/32/218_2.png) [@pettaa123](https://discourse.vtk.org/u/pettaa123)
#### Post date: [February 23, 2022, 9:53am UTC](https://discourse.vtk.org/t/fourpaneviewer-example-misses-testcase/7849/2 "2022-02-23T09:53:07Z")

</div>

anyone? @dgobbi

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [February 23, 2022, 3:48pm UTC](https://discourse.vtk.org/t/fourpaneviewer-example-misses-testcase/7849/3 "2022-02-23T15:48:48Z")

</div>

I spent some time (too much time!) investigating this example, and here is what I’ve discovered:

- The “test” only builds the example, it doesn’t run the example (same as you found, it reports `No tests were found!!!` after the example is built).
- VTK doesn’t provide any data that is suitable for testing: `prostate.IMG` is just one slice, and the `collection/*.dcm` images are a time series rather than a volume.
- Even with as proper DICOM volume, the example appears to be incomplete and buggy (see image below).

So this example is probably not a good starting point for anyone wanting to create a DICOM viewer with VTK.

 ![FourPaneViewer](https://discourse.vtk.org/uploads/default/original/2X/c/c03563644bc538acf601f1bd854d84566459dcfc.png)

---

<div class="post-metadata">

### Author: ![pettaa123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pettaa123/32/218_2.png) [@pettaa123](https://discourse.vtk.org/u/pettaa123)
#### Post date: [February 24, 2022, 1:42pm UTC](https://discourse.vtk.org/t/fourpaneviewer-example-misses-testcase/7849/4 "2022-02-24T13:42:03Z")

</div>

Thanks four your investigations.

---

<div class="post-metadata">

### Author: ![pettaa123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pettaa123/32/218_2.png) [@pettaa123](https://discourse.vtk.org/u/pettaa123)
#### Post date: [March 10, 2022, 11:57am UTC](https://discourse.vtk.org/t/fourpaneviewer-example-misses-testcase/7849/5 "2022-03-10T11:57:29Z")

</div>

If someone stumbles across this thread. I downloaded the BRAINX MR dataset from Osirix [link](https://web.archive.org/web/20140707145307/http://osirix-viewer.com/datasets/DATA/BRAINIX.zip)  
and pointed the fourpaneviewer to it.  
I get the following result after dragging the mouse in bottom right viewer in order to update it.  
The slicing seems to work. I think its not intended that the non cross sectional views dont update after moving the corresponding plane so I will investigate why this is not working.

 ![fourpaneviewer](https://discourse.vtk.org/uploads/default/original/2X/3/3f0503abb061005ca675ec9c20c4bd9f153fdbe4.png)

---

<div class="post-metadata">

### Author: ![pettaa123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pettaa123/32/218_2.png) [@pettaa123](https://discourse.vtk.org/u/pettaa123)
#### Post date: [March 18, 2022, 2:44pm UTC](https://discourse.vtk.org/t/fourpaneviewer-example-misses-testcase/7849/6 "2022-03-18T14:44:47Z")

</div>

By clicking “i” on one vtkResliceImageViewer, you active the interactor and are able to scroll through the volume. But so far there is no crosshair in resliceImageViewer’s.
