end2end-all-conv icon indicating copy to clipboard operation
end2end-all-conv copied to clipboard

Image preprocessing - convert to PNG, downscale

Open priley95 opened this issue 5 years ago • 1 comments

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.

priley95 avatar Jan 14 '20 11:01 priley95

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

Aonnghus avatar Mar 27 '20 10:03 Aonnghus