COPLE-Net icon indicating copy to clipboard operation
COPLE-Net copied to clipboard

own images pre-processing

Open Diyhhh opened this issue 4 years ago • 2 comments

Dear, your work is great, I have some questions and look forward to your reply. For segment COVID-19 pneumonia lesions from my images, Can you share the code for data pre-processing? you said that the images have been cropped into the lung region, and the intensity has been normalized into [0, 1] using window width/level of 1500/-650.

Diyhhh avatar Sep 03 '21 08:09 Diyhhh

Hi, the normalization is quite easy. The code looks like the following:

 img[img<-1400] = -1400
 img[img> 100] = 100
 img = img + 1400
 img = img / 1500.0

For cropping, you can use manual cropping.

taigw avatar Oct 04 '21 03:10 taigw

@taigw I have run your method and the results don't look good in my test set without the cropping to the lung region, but I don't have a way to reproduce your cropping. Did you use any kind of automatic cropping to the lung region? Could you provide the script in the repo? Thanks. Its not reasonable to do manual cropping in my test set since I am comparing your outputs to medical outcomes and it involves hundreds of CTs.

dscarmo avatar Jan 25 '23 22:01 dscarmo