jspunda / prostatex

This is the repository of the final project for the course Intelligent Systems in Medical Imaging 2017
14 stars 7 forks source link

Utilize K-trans #45

Open patricksttan opened 7 years ago

patricksttan commented 7 years ago

We have to find out if they can be used and if so, how.

To solve now!

Improvements could be tried:

liuzrcc commented 7 years ago

We got all the ktrans images in numpy format now. You can visualise them by the normal matplot command. The problem we have now is:

  1. Get the exact lesion area. 2.Normalise them to make sure that we can train the model with it.
liuzrcc commented 7 years ago

scan_directory = 'ProstateXKtrains-train-fixed/ProstateX-0000/ProstateX-0000-Ktrans.mhd' img = sitk.ReadImage(scan_directory) img.GetSpacing()

output: (1.5, 1.5, 3.0)

From the result, I think the voxel size is above. Right?

schelv commented 7 years ago

I think it means that it is the voxel size for that image. 😉 For checking the voxel size of all the images, you can check the file datachecks.py, this has the method check_equal_voxel_size. It only checks the dicom files now but maybe you can modify it for the ktrans images.

liuzrcc commented 7 years ago

Already made ktrans lesion visualisable with ktrans_example_check.py in branch 'ktrans_work'.

liuzrcc commented 7 years ago

Sub-steps now.

MPS93 commented 7 years ago

So I have taken the existing h5_converter and manage to join the ktrans data for both the train and the test set. I think this is useful torwards the momento we want to work with all data.

In order to do so the easiest way possible, I created two new directories: one for the all the train data and another for all the test data. This can be done by running join_all_data.unify_data.py but it takes an awful amount of time. That's why I'll leave bellow the links to .zip files containing these newly arranged directories.

I've also uploaded the new HDF5 datasets for the train and the test data (output of join_all_data.h5_converter_all.py) and the new .csvfiles (output of join_all_data.csv_fix_all.py).

Here are all the links:

  1. For the new combined data folders: train set and test set.

  2. For the new combined HDF5 data sets: train set and test set The test set is missing one ktrans case, I'll updated as soon as it decides to upload

  3. For the new combined .csv files: train set and test set

liuzrcc commented 7 years ago

There is something wrong with the .hdf5 test data. Cannot get test data from it properly.

MPS93 commented 7 years ago

The problem with the .hdf5 test data is solved. The code is updated and the .csv file as well (that's where the problem was). The .hdf5 test data will be updated as soon as possible (I'm having problems uploading it)