I have succesfully run the full code on the provided Saline and Haloperidol samples.
However, something is odd on the pvalues stack generated:
-It has double the amount of slices compared to the pvals variable (if written to disk as a .mhd stack pvals has 528 slices while pvalues has 1056)
-The apparent duplication visually looks as if another brain stack had been added sequentially to the pvals stack.
-However, it is not a simple duplicacion of pvals since slices of pvals appear intercalated with other slices of unknown origin.
In the attached image you can appreciate how pvalues.mhd looks like in the FIJI 3D viewer:
The problem is solved when pvalues is saved to .tif instead of .raw.
Somehow, the writeData function cannot reliably write this type of variable to .mhd format
Dear Christoph and users,
I have succesfully run the full code on the provided Saline and Haloperidol samples. However, something is odd on the pvalues stack generated: -It has double the amount of slices compared to the pvals variable (if written to disk as a .mhd stack pvals has 528 slices while pvalues has 1056) -The apparent duplication visually looks as if another brain stack had been added sequentially to the pvals stack. -However, it is not a simple duplicacion of pvals since slices of pvals appear intercalated with other slices of unknown origin. In the attached image you can appreciate how pvalues.mhd looks like in the FIJI 3D viewer:
Any ideas?