GithubHelp home page GithubHelp logo

Comments (8)

dvm-shlee avatar dvm-shlee commented on June 3, 2024 1

@eugenegkim That's just a bug because I haven't had enough test case for that.
Could you provide the dataset that causes the issue? then I can fix it for the next update.

Thank you!

from brkraw.

eugenegkim avatar eugenegkim commented on June 3, 2024 1

Yeah! Seems like ages ago. Hope you and all your loved ones are doing well.

from brkraw.

dvm-shlee avatar dvm-shlee commented on June 3, 2024

@eugenegkim Oh BTW, could you let me know if it just flipped or rotated 180 degrees so that the left and right are also flipped?

If you are urgent to access the data and If you are familiar with python, you can easily correct that with python API.

For example. as below.

import numpy as np
import nibabel as nib
import brkraw as br
from brkraw.lib.utils import apply_rotate
raw = br.load('<your raw data path>')
old_nii = raw.get_niftiobj(<scan_id>, <reco_id>)
new_affine = apply_rotate(old_nii.affine, rad_y=np.pi)

new_nii = nib.Nifti1Image(old_nii._dataobj, affine=new_affine, header=old_nii._header)
new_nii.to_filename('<new filename>')

from brkraw.

eugenegkim avatar eugenegkim commented on June 3, 2024

Oh good point. It looks like it's rotated 180 degrees. I use an in-house converter, so it's not urgent. But I'm looking into making all my data BIDS-compliant. I'll send you the dataset in a moment. Thanks!

from brkraw.

dvm-shlee avatar dvm-shlee commented on June 3, 2024

@eugenegkim Oh BTW, have we meet at the Bruker sequence programming course? Your name is familiar 😃

from brkraw.

dvm-shlee avatar dvm-shlee commented on June 3, 2024

@eugenegkim Thanks for sharing the data. I will update the code once I clarify the issue. Regarding the BIDS, there is something I haven't documented yet (for JSON), so if you experiencing any issue, please let me know.

from brkraw.

dvm-shlee avatar dvm-shlee commented on June 3, 2024

@eugenegkim I found using your dataset that Bruker does internal correction for the position, so actually no need additional correction, but my code originally did. It has been removed now. It will work without issue from v0.3.3 released version.

from brkraw.

eugenegkim avatar eugenegkim commented on June 3, 2024

Thanks!

from brkraw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.