Skip to content

Instantly share code, notes, and snippets.

View tractatus's full-sized avatar

Daniel Fürth tractatus

View GitHub Profile
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){
@tractatus
tractatus / tensorflow GPU OSX build.txt
Created March 20, 2017 16:31
tensorflow GPU OSX build
brew install python3
brew install coreutils
brew tap caskroom/cask
brew cask install cuda
nano ~/.bash_profile
#paste in the following
library(rstan)
gaussianMM<-'
data {
int K;
int N;
real x[N];
}
parameters {
################################
# (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
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