Making the protype for the image fusion for assessment 4
- With a powershell window open on this folder with admin access, run
poetry --version # to ensure poetry is installed
python -m venv .venv
.venv/Scripts/activate
This will then access a virtual environment to gather the dependencies required. It should now say (.venv) PS C:/...
- Now to install the dependencies run:
poetry install
All the dependencies will now install in the venv.
- Once all dependencies are installed, run:
python main.py
- With a terminal window open on this folder with sudo access, run
poetry --version # to ensure poetry is installed
python3 -m venv .venv
source .venv/bin/activate
This will then access a virtual environment to gather the dependencies required. It should now say (imagefusionproto-py3.1x)...
- Now to install the dependencies run:
poetry install
All the dependencies will now install in the venv.
- Once all dependencies are installed, run:
python3 main.py
To dislay the data
- Click the load DICOM Folder button
- Navigate to the data folder
- Press the Select the folder button on the data just before the data. Note: If you click in till it says "No items match your search" go back up one directory and select that folder.
- Data should be loaded
- To select a second layer follow the above steps again
- Once you have two layers, select the overlay and make as transparent as needed via the opacity slider
- Use the translate / rotate buttons to align images
- Optimise the rotation [MATT]
- Add colour fusion (purple/green) (simple toggle button) [WILL]
- Able to extract transformation objects from DICOM files and apply them automatically [MATT]
- Toggle dosage overlay [WILL]
- Add reset button that resets all sliders [WILL]
- Add translation sliders (XYZ) [WILL]
- Look at auto fusion code and see how to integrate or what functions can be reused [BOTH]
- Split up file into smaller files [WILL]
- XYZ sliders (Translation)
- LR, PA, IS sliders (Rotation)
- Transfer ROI between DICOM image sets
- Reset the sliders
- Toggle the overlay DICOM image
- Colour fusion (potential for multiple colour options such as [(purple = base layer, green = overlay) (purple-green, yellow-darkblue, red-lightblue)])
- How does the automatic fusion work in OnkoDICOM?
- Where to put opacity slider and toggle layer button (switch?)