brainglobe-atlasapi icon indicating copy to clipboard operation
brainglobe-atlasapi copied to clipboard

kim mouse atlas meshes are scaled incorrectly

Open adamltyson opened this issue 3 years ago • 3 comments

I think each set of meshes is consistent, but they are scaled incorrectly, so they don't play nicely with external data.

adamltyson avatar Dec 07 '20 16:12 adamltyson

I think you're right...

image

in red is the allen atlas, in transparent kim 100um. To reproduce:

from brainrender import Scene


s = Scene(atlas_name='kim_mouse_100um')

s2 = Scene()

s2.root.c('red').alpha(1)
s.add(s2.root)
s.render()

FedeClaudi avatar Dec 07 '20 16:12 FedeClaudi

In blue is kim 50um, that seems to be the same as the allen_mouse_25um image

FedeClaudi avatar Dec 07 '20 16:12 FedeClaudi

There is an argument in the wrap_up utility function that should change if meshes are specified in pixels or microns to decide whether to scale them or not (convention for the final meshes is in microns). Maybe the problem's there?

vigji avatar Dec 08 '20 08:12 vigji