fcm-normalize for multiple images #78
-
Hello, But, the library was updated and I don't know how to work on folders like before. I've tried what is specified in the documents:
The thing is that I can't add the folder with my white matter masks, something like:
I know fcm-normalize can get the wm masks internally but I already have them so I believe the algorithm can run faster having these masks ready. Also, I want to plot the histogram of all the normalized images in same plot as it used to work before the update, but now for every normalized image I get a hist.pdf plot and it is rewritten each time an image is normalized. I hope you can help me, thanks a lot! Al. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The easiest way to do this is to write a small bash script with a for loop properly formats the call to You can also use the Python API to write a script that does the normalization if that's easier than bash for you (see the docs for examples). I had to remove the ability to process whole directories for individual timepoint-based normalization schemes because it was too difficult to maintain. For the histogram, instead of using the |
Beta Was this translation helpful? Give feedback.
The easiest way to do this is to write a small bash script with a for loop properly formats the call to
fcm-normalize
with the corresponding image and brain mask. You can avoid usingfind
in that case; this bash reference might be useful if you're not familiar with bash.You can also use the Python API to write a script that does the normalization if that's easier than bash for you (see the docs for examples).
I had to remove the ability to process whole directories for individual timepoint-based normalization schemes because it was too difficult to maintain.
For the histogram, instead of using the
-p
option onfcm-normalize
, use theplot-histograms
CLI that's installed with the package a…