Self-Supervised Depth Estimation in Laparoscopic Image using 3D Geometric Consistency (MICCAI 2022) (Data Generation)
By Baoru Huang, Jian-Qing Zheng, Anh Nguyen, Chi Xu, Ioannis Gkouzionis, Kunal Vyas, David Tuch, Stamatia Giannarou, Daniel S. Elson
- Download 'SL-Decoder'
- Capture original RGB image with no pattern projection and name it '00000.jpg'
- Project patterns in patterns.odp on the object that you want to calculate the depth and for each image captured with patten, name it as '00001.jpg, 00002.jpg..., 00022.jpg'
- For every set, save it in folder 'round_n' where n indicates the round index
- Save the round folder to folder 'L' and folder 'R' for left and right side images.
Dataset/
├─ L/
│ ├─ round_n/
│ │ ├─ 00000.jpg
│ │ ├─ 00001.jpg
│ │ ├─ ......
│ │ ├─ 00022.jpg
├─ R/
│ ├─ round_n/
│ │ ├─ 00000.jpg
│ │ ├─ 00001.jpg
│ │ ├─ ......
│ │ ├─ 00022.jpg
├─ recimgdepth/
- Modify camera parameters (Intrinsic and extrinsic parameters)
- Change the 'folder_list' in GT_depth.py to the path of the 'Dataset' folder
- Create a folder called 'recimgdepth' under folder 'Dataset'
cd $M3Depth
python GT_depth.py
-
Image size
- Self.height and self.width under the 'def init' show dimensions of the original images.
- Self.images_l, self.images_r, self.three_phase, self,patterns_l, and self.patterns_r represent dimensions after processing.
-
Orientation:
- Patterns need to be projected vertically
If you find our paper useful in your research, please consider citing:
@inproceedings{huang2022self,
title={Self-supervised Depth Estimation in Laparoscopic Image Using 3D Geometric Consistency},
author={Huang, Baoru and Zheng, Jian-Qing and Nguyen, Anh and Xu, Chi and Gkouzionis, Ioannis and Vyas, Kunal and Tuch, David and Giannarou, Stamatia and Elson, Daniel S},
booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention},
pages={13--22},
year={2022},
organization={Springer}
}
MIT License
This work was supported by the UK National Institute for Health Research (NIHR) Invention for Innovation Award NIHR200035, the Cancer Research UK Imperial Centre, the Royal Society (UF140290) and the NIHR Imperial Biomedical Research Centre.