Skip to content

own images pre-processing #6

Open

Description

@Diyhhh

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.

Activity

  1. taigw commented on Oct 4, 2021

    @taigw
    Contributor

    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.

  2. dscarmo commented on Jan 25, 2023

    @dscarmo

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions