Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

own images pre-processing #6

Open
Diyhhh opened this issue Sep 3, 2021 · 2 comments
Open

own images pre-processing #6

Diyhhh opened this issue Sep 3, 2021 · 2 comments

Comments

@Diyhhh
Copy link

Diyhhh commented Sep 3, 2021

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.

@taigw
Copy link
Contributor

taigw commented Oct 4, 2021

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.

@dscarmo
Copy link

dscarmo commented Jan 25, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants