microsoft / Recursive-Cascaded-Networks

[ICCV 2019] Recursive Cascaded Networks for Unsupervised Medical Image Registration
https://arxiv.org/abs/1907.12353
MIT License
361 stars 87 forks source link

Inquiries about using two-dimensional ultrasound image as dataset #52

Open shakerxuek opened 3 years ago

shakerxuek commented 3 years ago

Dear developer,

Thank you for your time to read my inquiries. I managed to use two-dimensional ultrasound image as dataset to get weights. And I encountered several problems.

The proposed method to handle input is introduceing h5 file and json file. When I tried to build dataset by creating h5 file with jpg ultrasound image,it causes various errors. I understand that is because the proper input format is dicom. But what should I do to create h5 file as dataset with two-dimensional image? How did you create h5 file as dataset?

Thank you in advance, I am looking forward to receive your response.

zsyzzsoft commented 3 years ago

You can first inspect the format (keys, shapes, data types) of our provided h5 files and then create your dataset following our format. However, you need to change a lot of things other than the dataset to work with 2D images.

shakerxuek commented 3 years ago

Thanks for your reply, I tried to stacked my 2D ultrasound image and convert them into 3D DICOM file. I have create h5 file as training set following you format, and I noticed that the h5 files used for testing purpose (like lits_val.h5) have 3 members in each group while the training set has 1. What is the purpose of this structure?

zsyzzsoft commented 3 years ago

The validation set also contains segmentation mask (to evaluate the Dice score) and landmarks (to evaluate the landmark distance) for testing purpose.