question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RandomGhosting algorithm removes zero-frequency component

See original GitHub issue

🐛Bug

When the ghosting algorithm removes the center of k-space, the image is too distorted.

To reproduce

I’m using this image and the TorchIO Slicer module.

8 ghosts along axis 2:

Screen Shot 2020-06-24 at 13 45 15

7 ghosts: Screen Shot 2020-06-24 at 13 45 41

The shape of the image along axis 2 is 176, which is a multiple of 8.

Expected behavior

An image that looks more like the second.

TorchIO version

0.17.0.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
fepegarcommented, Jun 24, 2020

Note that since #204 you don’t need to pass the subject through the dataset:

suj = tio.data.Subject(t1=tio.Image('/data/t1.nii.gz'))
t = tio.RandomGhosting(axes=2, num_ghosts=(8, 8), intensity=(1, 1))
s = t(sun)
s.t1.save('/tmp/trans.nii')
1reaction
fepegarcommented, Jun 24, 2020

I prefer the MRI artifacts at the beginning as well, but users might, for whatever reason, have some negative values in the input.

Here’s a notebook that I’m playing with. You can see that there’s not much difference:

download (2)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Reflection Removal Using Ghosting Cues
In this work, we model the ghosted reflection using a double-impulse convolution kernel, and automatically estimate the spatial separation and relative at- ...
Read more >
Local software projects/MRI ghost artifact detection
It is a measure between zero and one. Since it is a distance measure the closer it is to one, the more severe...
Read more >
Ringing artifacts - Wikipedia
In signal processing, particularly digital image processing, ringing artifacts are artifacts ... This is a due to loss of high frequency components, as...
Read more >
A Novel De-Ghosting Image Fusion Technique for Multi ...
1) A single comprehensive method is developed which works on focused, flashed and multi-exposure images and also removes ghosting artifacts from ...
Read more >
LCoS nematic SLM characterization and modeling for ...
In the present paper we proposed a method to remove undesired ghosts and zero-orders introduced by a LCoS-SLM device applying a frequency based...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found