romainvala / r_qc Goto Github PK
View Code? Open in Web Editor NEWshort script in R for computing SNR
short script in R for computing SNR
edit init_path.R and change the path, to your current path %first run the histogram fitting with the R command : cd dir where the data.nii.gz is Rscript /fullpath /volume_hist_bg_create_mask.R data.nii.gz If there is a file name bg_mask_crop.nii.gz in the current dir, it will take the background mask to compute signal std, if not it will create the background mask (For the paper I took your background mask or a version eddited manually (not sure) this will create a csv with std in backgroup and the different peak x_pos_sig : will be the mean peak Signal level (which depend of the total number of peak found as follow if x_data_P4_pos(k)>0 x_pos_sig(k) = (cout.x_data_P4_pos(k)+cout.x_data_P3_pos(k)+cout.x_data_P2_pos(k))/3; elseif x_data_P3_pos(k)>0 x_pos_sig(k) = (cout.x_data_P3_pos(k)+cout.x_data_P2_pos(k))/2; elseif x_data_P2_pos(k)>0 x_pos_sig(k) = cout.x_data_P2_pos(k); else x_pos_sig(k) = cout.x_data_P1_pos(k); end then SNR is x_pos_sig/noise_std (noise_std is the field in the csv file)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.