wenhailiu / MedImgParser

MedImgParser is a light-weight tool to parse DICOM, NIfTI, Nrrd, JPG, PNG, BMP to pure binary file(*.raw, float32, uncompressed, row-major), and display the spatial information.
1 stars 0 forks source link

how to conver a .nrrd or .dcm picture to .jpg and .png? #2

Open xinsuinizhuan opened 4 years ago

xinsuinizhuan commented 4 years ago

Now i can conver a .dcm, but don't know how to conver a .nrrd to a .jpg? I want use your projection, but so when read_nrrd or read_dcm, break! Help me!

wenhailiu commented 4 years ago

Because of the data storage limitation of JPG and PNG, it doesn't support to write out medical image to these type. What type of data do you want to export, integer or floating points data? And how many bits are they?