imlab-uiip / lung-segmentation-2d

Lung fields segmentation on CXR images using convolutional neural networks.
MIT License
172 stars 72 forks source link

what is in th 'idx.cvs' and 'left lung'? #1

Closed sybilWsybil closed 7 years ago

sybilWsybil commented 7 years ago

I don't Know what kind of data for this code. csv_path = '/path/to/JSRT/idx.csv' what kind of data in idx.cvs? Does 'filenames' include suffix? and what's in 'left lung' ? left = io.imread('/path/to/JSRT/Masks/left lung/' + filename[:-4] + '.gif') right = io.imread('/path/to/JSRT/Masks/right lung/' + filename[:-4] + '.gif')

eclique commented 7 years ago

@sybilWsybil, as stated in comments above, csv file should contain x-ray filenames as first column and mask filenames as second column. Example: csv:

xray_path, mask_path
JPCLN001.png, JPCLN001msk.png
...

csv_path = /path/to/JSRT/idx.csv (that will make path equal to /path/to/JSRT/ so image will be loaded from /path/to/JSRT/JPCLN001.png)

Folders "left(right) lung" come with JSRT dataset (link in readme). This code merges two lung mask files into single mask.

sybilWsybil commented 7 years ago

@eclique, I have download the ''All247images.zip (1.33GB)'',''Nodule_Subtlety1_1 [80.9MB]'' and ''NonNodule1 [80.1MB]'' in http://www.jsrt.or.jp/jsrt-db/eng-04.php. But there are no ''left(right) lung''. Did I do wrong?

eclique commented 7 years ago

@sybilWsybil Sorry, my mistake. The annotations were made as part of this project, but the site they are referencing is currently down. The name of the data set is SCR (Segmentation in Chest Radiographs), maybe you can find it in some other place or the site will be functioning again.

sybilWsybil commented 7 years ago

@eclique Thank you so much!

qinriver commented 3 years ago

I don't Know what kind of data for this code. csv_path = '/path/to/JSRT/idx.csv' what kind of data in idx.cvs? do you think I should write this file by myself?