lfz / DSB2017

The solution of team 'grt123' in DSB2017
MIT License
1.23k stars 420 forks source link

How to find which slice has the nodule detected #60

Closed bijoygit closed 6 years ago

bijoygit commented 6 years ago

Hi . Thanks for the wonderful explanation. Can you please give me some info on how to find whcih slice has the nodule detected.

bijoygit commented 6 years ago

Can you please help me in this . This is just one thing I couldn’t understand

lfz commented 6 years ago

look at the demo file

2018-01-09 19:48 GMT+08:00 Bijoy Kumar Khandelwal notifications@github.com :

Can you please help me in this . This is just one thing I couldn’t understand

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lfz/DSB2017/issues/60#issuecomment-356262438, or mute the thread https://github.com/notifications/unsubscribe-auth/AIigQ22AGI9B6isWzixj7Z16yFtV4xLaks5tI1IlgaJpZM4RXq5t .

-- 廖方舟 清华大学医学院 Liao Fangzhou School of Medicine Tsinghua University Beijing 100084 China

bijoygit commented 6 years ago

Sorry . But the demo file doesn’t help me to get the particular slice which has nodule . Can u just let me know how to get a particular slice with nodule

lfz commented 6 years ago

In [41]:

box

Out[41]:

array([169, 153, 69, 13])

169 is the slice number

In [42]:

ax = plt.subplot(1,1,1)plt.imshow(img[0,box[0]],'gray')

2018-01-12 12:27 GMT+08:00 Bijoy Kumar Khandelwal notifications@github.com :

Sorry . But the demo file doesn’t help me to get the particular slice which has nodule . Can u just let me know how to get a particular slice with nodule

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lfz/DSB2017/issues/60#issuecomment-357140217, or mute the thread https://github.com/notifications/unsubscribe-auth/AIigQ1CCurQlOnokf4kNILWa3OqKVwbCks5tJt8dgaJpZM4RXq5t .

-- 廖方舟 清华大学医学院 Liao Fangzhou School of Medicine Tsinghua University Beijing 100084 China

lfz commented 6 years ago

196 means the slice number in the numpy file, the resolution of the numpy file is different from the origin dicom file

2018-01-12 13:12 GMT+08:00 Bijoy Kumar Khandelwal notifications@github.com :

Thanks. Actually I have a patient data with 140 dicom files. But the box shows

('BOX', array([196, 50, 145, 12]))

How is that possible ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lfz/DSB2017/issues/60#issuecomment-357144987, or mute the thread https://github.com/notifications/unsubscribe-auth/AIigQzRXsGjObhvcS9iKYo-MNXWFevB6ks5tJumngaJpZM4RXq5t .

-- 廖方舟 清华大学医学院 Liao Fangzhou School of Medicine Tsinghua University Beijing 100084 China

lfz commented 6 years ago

store the crop and resize parameters during preprocessing,

and revert the coordinate found in the resized version back to the original one

2018-01-12 13:38 GMT+08:00 Bijoy Kumar Khandelwal notifications@github.com :

Is there anyway I can map it back to the original slice number ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lfz/DSB2017/issues/60#issuecomment-357147843, or mute the thread https://github.com/notifications/unsubscribe-auth/AIigQ30uLuFL3PFSvMmtf1Rv-o5mzJrgks5tJu_JgaJpZM4RXq5t .

-- 廖方舟 清华大学医学院 Liao Fangzhou School of Medicine Tsinghua University Beijing 100084 China