Generation of training data for the graph extraction of endoscopic images.
- Append new video data to end of
video_data.py
- Run
before_filter.py
- In MATLAB, run
filtering/Bladder_vessels.m
(filepath can be input manually)
- Run
after_filter.py
- In
video_data.py
:
- Update/Set variable
video_filepath
= "C:/My/FullPath/ImageFolder" to folder containing the .png images
- Set variable
use_images
= True
- If you want to use the FFT filter, set variable
fft_filter
= True
- Run
before_filter.py
- In MATLAB,
filtering/Bladder_vessels.m
:
- Update/Set variable line 30
VIDEO_FILEPATH
= 'C:/My/FullPath/ImageFolder'
- Run
filtering/Bladder_vessels.m
- Run
after_filter.py
Functions |
Description |
before_filter.py |
Extracts and crops video frames |
filtering/Bladder_vessels.m |
Applies B-COSFIRE filter to cropped images |
after_filter.py |
Applies: mask, thresholding, skeletonising, graph generation |
Folder |
Description |
raw |
Raw video stills |
cropped |
Cropped images, 256x256px |
filtered |
Filtered images |
masked |
Filtered images masked with a circular mask |
threshed |
Thresholded images |
skeleton |
Skeletonised images |
graphs |
Graphs saved as .json files |
overlay |
Graph overlaid on cropped image |