ChristophKirst / ClearMap

ClearMap is a python toolbox for the analysis and registration of volumetric data from cleared tissues.
http://christophkirst.github.io/ClearMap/build/html/index.html
GNU General Public License v3.0
49 stars 41 forks source link

sta.colorPvalues Function generates a duplicated stack #24

Closed auesro closed 5 years ago

auesro commented 5 years ago

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: captura de pantalla de 2019-02-15 13-11-34

Any ideas?

auesro commented 5 years ago

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