Recursive-Cascaded-Networks icon indicating copy to clipboard operation
Recursive-Cascaded-Networks copied to clipboard

The flow field output

Open Barnonewdm opened this issue 4 years ago • 4 comments

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.

Barnonewdm avatar Mar 31 '20 08:03 Barnonewdm

Check demo.py where some part of the code generates the deformation fields (there is a key "real_flow" in the output").

zsyzzsoft avatar Mar 31 '20 19:03 zsyzzsoft

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]

Barnonewdm avatar Apr 01 '20 06:04 Barnonewdm

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]

where to add this code?

krisice avatar Nov 23 '20 08:11 krisice

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.

Hoodini-Gzj avatar Nov 16 '21 03:11 Hoodini-Gzj