lishen / end2end-all-conv

Deep Learning to Improve Breast Cancer Detection on Screening Mammography
Other
367 stars 126 forks source link

Image preprocessing - convert to PNG, downscale #18

Open priley95 opened 4 years ago

priley95 commented 4 years ago

Hi, would it be possible to receive some code that performs the image pre-processing? I'm aware some of it is using ImageMagick via the Linux command line, but I cannot correctly sort this at present. edit: I am trying to use the CBIS-DDSM dataset in the same way, using the patch classifier. Not necessarily the same splits; just the pre-processing. Kind regards.

Aonnghus commented 4 years ago

Hello, Since January you surely found a solution to your problem, but if that's not the case and you're still wondering, or at least for other people that might come accross the same problem: If you look read_resize_image function of dm_image.py file, you can see that using pure DICOM is possible, reading directly from pixel_array. No conversion to PNG seems to be required, even though it is said so in the paper

Regards