Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added readme to describe the examples #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions settings/readme-examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
This folder contains examples on how to use the program to generate scatterers.

Three use-case are presented :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Three use-case are presented :
Three use-cases are presented:


- Visualisation of the scatterers in the probe coordinate system using DICOM
- Visualisation of the scatterers in the global coordinate system using a cube and a tilted probe
- Generation of scatterers to be used in off-line simulation using a sphere
Comment on lines +5 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Visualisation of the scatterers in the probe coordinate system using DICOM
- Visualisation of the scatterers in the global coordinate system using a cube and a tilted probe
- Generation of scatterers to be used in off-line simulation using a sphere
- Visualisation of the scatterers in the global coordinate system using a cube and a tilted probe
- Generation of scatterers to be used in off-line simulation using a sphere
- Visualisation of the scatterers in the probe coordinate system using DICOM


---

**General Usage**

Once the program is compiled, each .json file can be used to produce the described result using:

`.\Scus <path/to/file>.json`

All those files can be modified according to the main readme instructions.

---

**DICOM visualisation**

*File:*
settings_preview_projectedDICOM.json

***/!\\*** - This configuration file needs to be filled with actual DICOM slice files.

Additionally, only DICOM in the form of one slice by file are accepted, they will be read as stacked bottom up in the given order.

*Out:* a *preview_projectedDICOM.dat* to be used with the scatterer_visualisation.py script.

This file contains scatterers generated and extracted to simulate the DICOM region described, projected in the probe system coordinate.

---

**Tilted Cube in probe coordinate**

*File:*
settings_preview_tiltedCube.json

*Out:*
a *tiltedCubeScats_preview.dat* to be used with the scatterer_visualisation.py script.

This file contains scatterers generated for a tiled probe crossing a cube. the visualisation is done in global coordinate system, with the grid displayed.

---

**Simulation with a Sphere**

*File:* settings_simu_sphere.json

*Out:*
a sphereScats.dat to be used with FieldII/Simus to simulate an ultrasound image using the generated scatterers. This file represents an imaging plane crossing a sphere in its center.
Comment on lines +21 to +53
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**DICOM visualisation**
*File:*
settings_preview_projectedDICOM.json
***/!\\*** - This configuration file needs to be filled with actual DICOM slice files.
Additionally, only DICOM in the form of one slice by file are accepted, they will be read as stacked bottom up in the given order.
*Out:* a *preview_projectedDICOM.dat* to be used with the scatterer_visualisation.py script.
This file contains scatterers generated and extracted to simulate the DICOM region described, projected in the probe system coordinate.
---
**Tilted Cube in probe coordinate**
*File:*
settings_preview_tiltedCube.json
*Out:*
a *tiltedCubeScats_preview.dat* to be used with the scatterer_visualisation.py script.
This file contains scatterers generated for a tiled probe crossing a cube. the visualisation is done in global coordinate system, with the grid displayed.
---
**Simulation with a Sphere**
*File:* settings_simu_sphere.json
*Out:*
a sphereScats.dat to be used with FieldII/Simus to simulate an ultrasound image using the generated scatterers. This file represents an imaging plane crossing a sphere in its center.
**Tilted Cube in probe coordinate**
*File:*
settings_preview_tiltedCube.json
*Out:*
a *tiltedCubeScats_preview.dat* to be used with the scatterer_visualisation.py script.
This file contains scatterers generated for a tiled probe crossing a cube. the visualisation is done in global coordinate system, with the grid displayed.
---
**Simulation with a Sphere**
*File:* settings_simu_sphere.json
*Out:*
a sphereScats.dat to be used with FieldII/Simus to simulate an ultrasound image using the generated scatterers. This file represents an imaging plane crossing a sphere in its center.
---
**DICOM visualisation**
*File:*
settings_preview_projectedDICOM.json
***/!\\*** - We do not provide DICOM files for this example: the configuration file needs to be edited to link to local DICOM files. The configuration file except a list of DICOMs, where each slice is stored in a different file. Files are read as stacked bottom up in the given order.
*Out:* a *preview_projectedDICOM.dat* to be used with the scatterer_visualisation.py script.
This file contains scatterers generated and extracted to simulate the DICOM region described, projected in the probe system coordinate.