Recursive-Cascaded-Networks
Recursive-Cascaded-Networks copied to clipboard
The flow field output
Thanks for your work in this field.
I have tried your code. It gives results as reported. However, the flow field is not given. Note the flow field is quite needed than the warped image or segmentation map. In this way, could you help figure me out what is the best way to check the flow field in your code? How to save the deformation fields in your eval.py?
Thanks a lot.
Check demo.py where some part of the code generates the deformation fields (there is a key "real_flow" in the output").
Thanks. I have figured it out. If anyone else is curious, here is an option in eval.py:
-
add the 'real_flow' in the key, which can also include 'image_fixed', 'warped_moving' and so on.
keys = ['real_flow', 'image_fixed', 'warped_moving']
-
The subject i flow result can be extracted by:
flow = results['real_flow'][i]
Thanks. I have figured it out. If anyone else is curious, here is an option in eval.py:
- add the 'real_flow' in the key, which can also include 'image_fixed', 'warped_moving' and so on.
keys = ['real_flow', 'image_fixed', 'warped_moving']
- The subject i flow result can be extracted by:
flow = results['real_flow'][i]
where to add this code?
Thanks. I have figured it out. If anyone else is curious, here is an option in eval.py:
1. add the 'real_flow' in the key, which can also include 'image_fixed', 'warped_moving' and so on. `keys = ['real_flow', 'image_fixed', 'warped_moving']` 2. The subject i flow result can be extracted by: `flow = results['real_flow'][i]`
Hello, is that right to replace keys = ['pt_mask', 'landmark_dists', 'jaccs', 'dices', 'jacobian_det', ] in eval.py with keys = ['real_flow', 'image_fixed', 'warped_moving']? Are there any specific changes that need to be made elsewhere? Looking forward to your reply.