This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void createWeb::run(cv::Mat& sourceImage, cv::Mat& dstImage){ | |
int tiers; | |
int height = sourceImage.rows; | |
int width = sourceImage.cols; | |
int maxdim = (width > height ? width : height); | |
tiers = (int)log2(maxdim/256); | |
if((maxdim/pow(2, tiers))>256){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install python3 | |
brew install coreutils | |
brew tap caskroom/cask | |
brew cask install cuda | |
nano ~/.bash_profile | |
#paste in the following |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rstan) | |
gaussianMM<-' | |
data { | |
int K; | |
int N; | |
real x[N]; | |
} | |
parameters { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################ | |
# (c) Daniel Fürth, 2016 | |
# Spatial Transcriptomics with WholeBrain | |
################################ | |
#set the anterior poster coordinate of brin section in millimeter | |
coordinate.for.section<- -0.42 | |
#set filter for Cy3 spots | |
feature.filter <-structure(list(alim = c(120, 1000), threshold.range = c(14L, 255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(wholebrain) | |
#set folder path | |
folder<-'/Users/danielfurth/Desktop/an_example_animal/section001' | |
#find out how many images we have and their location | |
images<-get.images(folder) | |
length(images) | |
#stitch this image |
NewerOlder