Open gkiar opened 7 years ago
@toekneesunshine what's up with the brain? The colour seems inverted or something? I think your implementation histogram equalization is going wrong somewhere.
This image is getting close but isn't what we want. We want a single token containing two channels (which you do). We want the types of the channels, however to be: an image channel containing the aligned brain, and an annotation channel containing the ARA (currently the ARA is also an image channel). With the ARA as an annotation channel it'll automatically colour different regions.
Once we fix the histogram eq. and have the ARA as an annotation, it's looking close!!
Hey @gkiar, I was actually going to ask that about the brain today -- Albert and I thought the brain looked very odd. Not sure what's going on with the raw image, that's the brain image we're getting directly from ndstore w/o any transformations. To confirm that, I actually uploaded the brain twice -- here is the raw image I get directly from ndstore (by directly downloading the img from ndstore, and it looks identical to the raw image I uploaded previously...)
As for uploading the annotation channel as an image channel, let me try that now -- didn't realize there was an annotation image type...!
Looking at Ailey's data in ndviz at the same location I'm inclined to disagree with you :) Where are you pulling it from?
http://viz.neurodata.io/Aut1367/Aut1367_stitched/5/297/481/250
We're pulling from ndstore using ndreg's function call:
inToken = "Aut1367"
inImg = imgDownload(inToken, resolution=5)
imgUpload(inImg, token, channel, resolution=5)
where the token and channel are the ones that we sent you
Yeah, what Albert said, except instead of inToken = "Aut1374" we're using inToken = "Aut1367".
Ok, verify the following:
If these are the case, comment back here documenting clearly that you:
If you do this and I can't find an obvious problem, we'll copy-pasta it to an issue in ndstore
Hey @gkiar: By uploading as an annotation channel, I was able to get color annotations. However, the annotations channel still seems to be cut off... not sure how to fix this problem currently.
So the current overlay looks something like this.
TODO:
Is there a docs page that shows the specific url ndreg submits when me make a particular function call? The only ndreg docs I could find were Kwame's ndreg ipynb's.
Your urls aren't working for me?
The only way I can think of is going into the ndreg code and adding a print
statement in the function call that you're using that prints the url. If it's using ndio, then check the ndio docs to see if there is an additional parameter you can pass so that you see the url, such as a verbose
flag.
Hey @gkiar, you must've caught them just as I was in the middle of reuploading something! The links are working now.
As a temporary workaround, I was able to get the annotated labels overlaid on the original Aut1367 token. There's a picture of that here. I did this manually by using the (+) icon on the side to add an additional channel overlay -- if I can figure out why it's cut off, this looks pretty close to what Ailey's looking for, right?
if your brain were histogrammed/datatyped correctly and solved the cutoff so looked like the thing you showed me in the picture, then the link you provided in "the current overlay looks something like this" would be perfect. Let's figure out why the brain looks dumb and why it's cutoff, then we're there!
Hmm, it also appears that some of the layers didn't get cut off... Here's an example of one that wasn't cut off.
Not sure what's going on, I guess we can figure it out more during class/for next week.
remind me to ask you to show the "cut off" slices to me today in class.
So as it turns out, after trying a bunch of different layers, ONLY later 250 is cut off. I'm actually pretty sure that might be b/c when I was uploading, I was also refreshing layer 250 (I had the page open) so something funny happened. I think if I reupload the image it might fix it -- I'll do that after class. Here's an example overlay over the native Aut1367 token (by using the (+) icon again).
Interesting. Try reuploading only slice 250 and see if that fixes it.
A registered brain to Allen atlas ingested into ndstore, with ndviz link showing the brain overlaid with the Atlas.
This means you need to, from square one: