Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An issue in read_fmr #55

Open
kenshukoiso opened this issue May 17, 2024 · 2 comments
Open

An issue in read_fmr #55

kenshukoiso opened this issue May 17, 2024 · 2 comments

Comments

@kenshukoiso
Copy link

Hi Faruk,

Thank you so much for always solving my issues!

I am facing an issue that when I read fmr and write nifti with your example script, it looks like the image below. (Matrix dimension is messed up.)
The thing is for most of the data it works perfectly, but for some data (maybe peculiar scanning setup data).
I will send you this fmr/stc file via email.

Thank you so much in advance!

Best regards,
Kenshu

read_fmr_write_nifti
@kenshukoiso
Copy link
Author

I couldn't send it via email due to its large data size so I uploaded it here.

@ofgulban
Copy link
Owner

ofgulban commented May 18, 2024

Thanks for posting this issue @kenshukoiso ,
Upon inspection, it seems that your FMR header has x and y dimensions mixed up somehow. As a general advice, please use the latest version of BrainVoyager if you are creating these fmr files from dicom directly in BrainVoyager.

Nevertheless, I have created a new example to show how you can have lower level access to the FMR data (voxel values), that are the STC files which comes coupled with FMRs. For this, see 0d90ca8 . Direct access to STC files requires you to figure out the data dimensions manually. However, once done you can correctly convert your data to nifti (see below.)

Screenshot 2024-05-18 at 10 25 20 Screenshot 2024-05-18 at 10 24 46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants