# NOT RUN {
# }
# NOT RUN {
library(DynClust)
## use fluorescence calcium imaging of neurons performed with Fura 2 excited at 340 nm
data('adu340_4small',package='DynClust')
## Gain of the CCD camera:
G <- 0.146
## readout variance of the CCD camera:
sro2 <- (16.4)^2
## Stabilization of the variance to get a normalized dataset (variance=1)
FT <- 2*sqrt(adu340_4small/G + sro2)
FT.range = range(FT)
## launches the denoising step on the dataset with a statistical level of 5%
FT.den.tmp <- RunDenoising(FT,1,mask.size=NA,nproc=2)
## get the results of the denoising step
FT.den.res <- GetDenoisingResults(FT,FT.den.tmp)
## plot results at time 50 in same grey scale
par(mfrow=c(1,3))
image(FT[,,50],zlim=FT.range,col=gray(seq(0,1,l=128)))
title('Original')
image(FT.den.res[,,50],zlim=FT.range,col=gray(seq(0,1,l=128)))
title('Denoised')
image(FT.den.res[,,50]-FT[,,50],col=gray(seq(0,1,l=128)))
title('Residuals')
# }
Run the code above in your browser using DataLab