MagneticResonanceImaging/MRIReco.jl

Multiple regularizers

开放

#263 创建于 2025年10月16日

 (4 条评论) (0 个反应) (1 位负责人)Julia (24 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (97 个星标)
PR 合并指标
 (平均合并 65天 23小时) (30 天内合并 1 个 PR)

描述

Hi, I wanted to try multiple regularizers, but I couldn't manage to get it to work. I checked the source code, and it seemed to support this feature. I tried with the following (among many other variations, but this seemed to most logical way based on the code):

nx, ny = 10, 10
traj = MRIReco.CartesianTrajectory(Float32, ny, nx)
acq = MRIReco.AcquisitionData(traj, reshape([ones(ComplexF32, nx*ny, 1)], 1, 1, 1))
params = Dict{Symbol,Any}()
params[:reco] = "standard"
params[:reconSize] = (nx, ny)
params[:reg] = [MRIReco.L1Regularization(0.05), MRIReco.TVRegularization(0.2, shape = (nx, ny))]
params[:sparseTrafo] = ["Wavelet", nothing]
reconstruction(acq, params);

I always get this error: AssertionError: reg and regTrafo must have the same length Does MRIReco support this (assuming ADMM as the algorithm)?

贡献者指南