arsenal9971 / Shearlab.jl

Shearlab is a Julia Library with toolbox for two- and threedimensional data processing using the Shearlet system as basis functions which generates an sparse representation of cartoon-like functions.
https://arsenal9971.github.io/Shearlab.jl/
Other
31 stars 9 forks source link

conv2 not found #27

Open SimonRuetz opened 2 years ago

SimonRuetz commented 2 years ago

The command cov2 is no longer implemented in julia. conv has been moved to the package DSP.jl if I'm not mistaken. After installing Shearlab directly from github (on Julia 1.8 beta) the following code doesn't work

Im #Some image
using Shearlab
nScales = 4;
shearLevels = ceil.((1:nScales)/2)
scalingFilter = Shearlab.filt_gen("scaling_shearlet");
directionalFilter = Shearlab.filt_gen("directional_shearlet");
waveletFilter = Shearlab.mirror(scalingFilter);
scalingFilter2 = scalingFilter;
full = 0;
scales = 4;
@time shearletSystem_nopar = Shearlab.getshearletsystem2D(size(Im,1), size(Im,2), scales,shearLevels,full,directionalFilter,scalingFilter,0);

This leads to the following error:

ERROR: LoadError: UndefVarError: conv2 not defined
Stacktrace:
 [1] getwedgebandpasslowpassfilters2D(rows::Int64, cols::Int64, shearLevels::Vector{Int64}, directionalFilter::Matrix{Float64}, scalingFilter::Vector{Float64}, waveletFilter::Vector{Float64}, scalingFilter2::Vector{Float64}, gpu::Int64)
   @ Shearlab ~/.julia/packages/Shearlab/m0yFj/src/2D/getshearlets2D.jl:175
 [2] preparefilters2D(rows::Int64, cols::Int64, nScales::Int64, shearLevels::Vector{Int64}, directionalFilter::Matrix{Float64}, scalingFilter::Vector{Float64}, waveletFilter::Vector{Float64}, scalingFilter2::Vector{Float64}, gpu::Int64)
   @ Shearlab ~/.julia/packages/Shearlab/m0yFj/src/2D/getshearlets2D.jl:266
 [3] getshearletsystem2D(rows::Int64, cols::Int64, nScales::Int64, shearLevels::Vector{Float64}, full::Int64, directionalFilter::Matrix{Float64}, quadratureMirrorFilter::Vector{Float64}, gpu::Int64)
   @ Shearlab ~/.julia/packages/Shearlab/m0yFj/src/2D/getshearlets2D.jl:352
 [4] top-level scope
   @ ./timing.jl:242 [inlined]
 [5] top-level scope
   @ ~/Documents/Julia Code/CS/src/main.jl:0
in expression starting at /Users/simon/Documents/Julia Code/CS/src/main.jl:578