-
Notifications
You must be signed in to change notification settings - Fork 0
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
Weird Artifacts in Masks #1
Comments
@Govish sorry for the slow reply. Just to be sure: are you talking about the fieldmaps produced by our team and sent by @CharlesPageot within the context of our collaboration? If so, I would not use this repository to discuss that project. This repository is specifically about the susceptibility-to-fieldmap software. We should start a new repos (in this organization) and transfer this issue. In the meantime, @CharlesPageot can you please assist @Govish? |
Yeah--I'm referring to the field maps sent over in the scope of our specific collaboration; and sounds good! Let me know where would be a good place to discuss this! |
@CharlesPageot will write up a procedure to address this issue, but briefly:
|
Procedure to generate the fieldmaps based on inital segmentationHere I describe the steps to generate the fieldmaps, once each subject as a corresponding NIfTI file with every label of interset.
I uploaded a code in a new branch which is a batch procedure that calls both of those tools to generate the fieldmaps. Before running the script, one should create a new environment and follow the installation instruction from the two repos. Procedure to generate the spine and brain masksHere I describe the steps I used to generate the 3D binary masks for the brain and spine. I added steps (that were not yet implemented) to crop the spine mask to only the C-spine (see #2) C-spine maskMy idea to generate C-spine mask was to use the vertebrae labels from TotalSpineSeg to find the right position to crop. From the documentation, we know that segment 17 correspond to the C7 vertebrae. So the steps would be:
Brain maskHere are the problematic masks. What I have done previously was to combine every brain labels + CSF of the SAMSEG output to generate the masks. We can see below where the artifacts come from; the CSF is noisy, it overlaps with the skull and bleed inside the frontal sinuses. Here it might be good to look into other method to create brain masks as @jcohenadad pointed (FSL, ANTs, etc.) because smoothing operation tends to accentuate the overlap with the skull as we will see in the next section. Combine the masksOnce I had the spine and the brain masks, I perform a combination of the labels and a smoothing on Slicer. The smoothing was to connect the top of the cervical spine with the brain to have a continuous mask. I added a Python script which automate this procedure on Slicer. We see here that this operation correctly connect the two masks, but the smoothing generate unwanted overlap with the skull due to poo brain masks. |
Hi guys, hope you're doing well!
We've been running into some issues with some artifacts in the mask--there seem to be some rough edges/bleeding that may not be accurately capturing only the target anatomy. The image you hopefully see below shows this detail on
fieldmap_3
.We've been able to work around this issue by eroding the masks by 3-4 voxels, but a root-cause fix would be much appreciated. It's had been noticeably impacting the performance of the optimizer and validity of the results.
Thanks!
-Ishaan
The text was updated successfully, but these errors were encountered: