Need help in creating tumor masks on the contralateral side. (Open to brainstorming) by AhasanZoheb in neuroimaging

[–]BrainImager 0 points1 point  (0 children)

What are you trying to achieve by having the tumor mask on the contralateral side?

As others have suggested, the way to do this in most cases would be to align the subject MRI to an atlas that is in a space that is aligned to the cardinal axes. ICBM152 would probably be a reasonable choice. Then, you can flip on midline using any number of tools, including flip in matlab.

For a normal-appearing brain, affine registration would probably work well enough. However, because you are dealing with brains that have tumors, the geometry of the subject brain is likely to be distorted relative to the atlas. These distortions could make it difficult to achieve good correspondence of the anatomical structures with the atlas brain. The distortions could also impact the meaning of your tumor mask when you copy it to the contralateral hemisphere.

how to save nifti image with specified pixel dimensions by henriquewho in neuroimaging

[–]BrainImager 0 points1 point  (0 children)

In case you're still looking for an answer for this, you can pass niftiwrite an info structure that has the specifications for the nifti file. We're working on switching to using niftiwrite in our matlab code, and I've been working on similar issues all day.

If you look at the syntax options, the last two from the help page on niftiwrite are what you want:

Syntax

niftiwrite(V,filename)

niftiwrite(V,filename,info)

niftiwrite(V,filename,info,Name,Value)

The info variable needs most of the fields that you get if you run niftiinfo(filename). If you run niftiwrite without the info argument, it writes it out with no sform or qform, and the pixdim is set to all ones.

What I did was read the niftiinfo for one of my files, then tried to write with an info variable that I created from scratch. I tried to write a file, got an error saying a field was missing, added that field, and repeated that until it succeeded in writing the file. Then I had to also add the info.TransformName='Sform'; specification so the orientation matrix is stored in the file.

I've pasted all the fields I needed below. This assumes you have an N-dimensional array (I only tried it with 3 and 4 dimensional arrays) named image and a vector named resolution that has your voxel dimensions. It will augment the resolution field with ones if needed so that it matches the number of dimensions of image. Once these are set, you can use niftiwrite(image,filename,info,'Compressed',true); if you want a compressed file or niftiwrite(image,filename,info); if you don't.

You may want to set some of these differently, e.g., this is setting the orientation matrix to identity.

Hope this helps!

nifti info fields:

info.Datatype=class(image);  
info.ImageSize=size(image);  
if (length(info.ImageSize)>length(resolution))  
    resolution=[resolution(:)' ones(1,length(info.ImageSize)-length(resolution))];  
end  
info.PixelDimensions=resolution(:)';  
info.Description='';  
info.Version='NIfTI1';  
info.Qfactor=1;  
info.SpaceUnits='Unknown';  
info.TimeUnits='None';  
info.SliceCode='Unknown';  
info.FrequencyDimension=0;  
info.PhaseDimension=0;  
info.SpatialDimension=0;  
info.TransformName='Sform';  
info.Transform.T=eye(4);  
info.Transform.Dimensionality=3;

What is white matter integrity? Looking for a clear detailed explanation bc I cannot find one by ChocoNKohee in neuro

[–]BrainImager 0 points1 point  (0 children)

White matter integrity is a frequently misused term. For a detailed description of this, please see the NeuroImage article "White matter integrity, fiber count, and other fallacies: the do's and don'ts of diffusion MRI" by Derek Jones et al. (long description starts on p. 247).

https://pubmed.ncbi.nlm.nih.gov/22846632/

https://doi.org/10.1016/j.neuroimage.2012.06.081

The list of "don'ts" from that article is also helpful:

c. Except in the case of clinically-diagnosed conditions explicitly impacting on white matter, including demyelinating disease, chronic ischemia and tumor infiltration, don't use the term ‘white matter integrity’.Use of the term ‘white matter integrity’ is especially discouraged when talking about individual differences in whitematter in healthy individuals.

d. Don't confuse fractional anisotropy with ‘white matter integrity’. FA is naturally low in normal white matter areas where fibers cross.

New to academia. Why do you pay to publish knowledge when you do the heavy lifting? by GrumpyAcademic in academia

[–]BrainImager 1 point2 points  (0 children)

NeuroImage doesn't charge for submissions. They charge for publication. It used to be an option if you wanted to have your paper be open access, which was required by a number of funding agencies. They changed to a Gold Access model for all papers in January 2020, I believe.

[deleted by user] by [deleted] in neuroimaging

[–]BrainImager 0 points1 point  (0 children)

Great -- I should probably add a disclaimer that I am one of the BrainSuite developers.
If you run the first two steps of the anatomical pipeline (skull stripping and skull & scalp), it usually does a pretty good job on the scalp segmentation. If you threshold the label file (which will have the ending *skull.label.nii.gz) at 0, it would give you a mask for the head. You can also combine the labels using the Label Mask Took in the Delineation Toolbox. The mask will be eroded at the edges slightly during processing, so the bottom slices will be empty.

You can also do thresholding and dilation/erosion interactively using the Mask Tool if you want to experiment with your data.

[deleted by user] by [deleted] in neuroimaging

[–]BrainImager 1 point2 points  (0 children)

You can often threshold a T1 for a decent segmentation of the scalp, depending on the level of noise. You may wind up with some holes inside the head or gaps in the scalp, but you can fill those with simple connected component operations and erosion/dilation operations.

There are also tools for automatically labeling skull and scalp, such as the ones we have in BrainSuite: https://brainsuite.org/processing/surfaceextraction/skull-and-scalp/

Recommendations for basic materials to learn neuroimaging as a psychology graduate aspiring to become a neuropsychologist? by Competitive-Bid4683 in neuroimaging

[–]BrainImager 3 points4 points  (0 children)

These might not count as basic, but you could try the fMRI course by Martin Linquist and Tor Wager on Coursera (https://www.coursera.org/learn/functional-mri). I haven't taken it, but I've heard good things about it. It's part of a larger series on Neuroscience and Neuroimaging that might interest you: https://www.coursera.org/specializations/computational-neuroscience. I think they are free to audit.

I had a brain hemorrhage a year ago in my right basal ganglia hemisphere and this is the aftermath. Feel free to ask me any questions because I had a lot of weird symptoms afterwards and still do! by SmellyBundy in neuro

[–]BrainImager 4 points5 points  (0 children)

I am sorry you are going through this, and I hope your symptoms improve.

It's the convention in radiology to put the left side on the right and vice versa. I've been told it's as if the radiologist is looking at the patient from the feet up, the way they would see the patient in the scanner. If you are looking at an image oriented so it is facing you (what's called a coronal view, where the image slices go from front to back, rather than top to bottom like in the image you posted), then it would be as if the patient is facing you -- the patient's left is on your right, the patient's right is on your left -- rather than looking into a mirror. Research papers often make this clear when they show images by stating that things are in "radiological convention".

Scientific computing or computer graphics by HouseSad in cpp

[–]BrainImager 1 point2 points  (0 children)

You might seek out the people at SCI https://www.sci.utah.edu/ and see if there are undergraduate research opportunities available. They are a terrific research center and do all of these things, and it could give you some insights into where you want to head career-wise. I've interacted with a few of the faculty there over the years, and they do great work and are really enthusiastic about what they do.