Giter Site home page Giter Site logo

computational-imaging / threedeconv.jl Goto Github PK

View Code? Open in Web Editor NEW
30.0 6.0 6.0 544 KB

A convex 3D deconvolution algorithm for low photon count fluorescence imaging

Home Page: http://www.computationalimaging.org/publications/3d-deconvolution-for-low-photon-count-fluorescence-imaging-scientific-reports-2018/

License: Other

Julia 100.00%
julia deconvolution-microscopy fluorescence-microscopy-imaging microscopy image-processing

threedeconv.jl's People

Contributors

hayatoikoma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

threedeconv.jl's Issues

Deconvolute Confocal Images

First, Thanks for this awesome package! I am really enjoy it using for widefield images. But i have a little question. Is this package suitable to deconvolute confocal images in Z-stack mode? If the answer is "yes", i should to have psf image generated with depth same as my image depth, and deconvolute each image in "for" cycle?

CuArray error upon calling deconvolve

Thanks for the package! Excited to try it out, but calling deconvolve causes the following error (using the example code).
Julia 1.5.3 and up-to-date packages with CUDA.

MethodError: no method matching zero(::Type{CuArray{Float32,N} where N})
Closest candidates are:
  zero(!Matched::Type{Pkg.Resolve.FieldValue}) at /home/.../Src/julia/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/fieldvalues.jl:38
  zero(!Matched::Type{Dates.Time}) at /home/.../Src/julia/julia-1.5.3/usr/share/julia/stdlib/v1.5/Dates/src/types.jl:406
  zero(!Matched::Type{Dates.DateTime}) at /home/.../Src/julia/julia-1.5.3/usr/share/julia/stdlib/v1.5/Dates/src/types.jl:404
  ...

Stacktrace:
 [1] zeros(::Type{CuArray{Float32,N} where N}, ::Tuple{Int64,Int64,Int64}) at ./array.jl:526
 [2] ThreeDeconv.ADMMstate(::Tuple{Int64,Int64,Int64}, ::Array{Tuple,1}) at /home/.../.julia/packages/ThreeDeconv/vtLlk/src/deconvolution/admm.jl:78
 [3] initialize_optimizer(::ThreeDeconv.ADMM, ::ThreeDeconv.StackedLinearOperator, ::ThreeDeconv.var"#58#65"{CuArray{Complex{Float32},3},ThreeDeconv.LinearOperator,ThreeDeconv.LinearOperator,CuArray{Complex{Float32},3},CuArray{Complex{Float32},3},CuArray{Complex{Float32},3},CuArray{Complex{Float32},3},CuArray{Complex{Float32},3},CuArray{Complex{Float32},3}}, ::ThreeDeconv.var"#60#67"{Float32,Float32,Float32}) at /home/.../.julia/packages/ThreeDeconv/vtLlk/src/deconvolution/admm.jl:103
 [4] setup_optimizer(::ThreeDeconv.ADMM, ::Array{Float32,3}, ::Array{Float32,3}, ::Float32, ::Float32, ::Float32) at /home/.../.julia/packages/ThreeDeconv/vtLlk/src/deconvolution/setup_admm.jl:128
 [5] deconvolve(::Array{Float32,3}, ::Array{Float32,3}, ::Float64, ::Float64, ::Float64, ::ThreeDeconv.ADMM; options::ThreeDeconv.DeconvolutionOptions) at /home/.../.julia/packages/ThreeDeconv/vtLlk/src/deconvolution/deconvolve.jl:88
 [6] top-level scope at In[25]:4
 [7] include_string(::Function, ::Module, ::String, ::String) at ./loading.jl:1091

cuFFT always fail to allocate GPU or CPU memory

When I run ThreeDeconv.deconvolve in the first time, it work well.
But at second time, error occur:
CUFFTError(code 2, cuFFT failed to allocate GPU or CPU memory)
Then I run same command against, no error!!! I am confused why GC.gc() don't release GPU memory.

I run Julia 1.2 in Fedora 30 with a NVIDIA 2080Ti.

What should I do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.