From 32ec2fc65c321b5bfe81d3da3702e1be8fc50f17 Mon Sep 17 00:00:00 2001 From: donghoon Date: Tue, 9 Nov 2021 08:17:03 -0500 Subject: [PATCH] Update cookbook.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, all, I was testing BlockRegistration to register two large 3d images (my image to a reference image, requiring non-linear transformation). Please let me know if anyone have any suggestions for this purpose. Anyway, I found that `warp!` does not work with `ϕs = []' (or Type `Any` does not work with `warp!`). `ϕs = AbstractDeformation[]` solves this issue. --- docs/src/cookbook.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/cookbook.md b/docs/src/cookbook.md index 62de16b..eae5f5a 100644 --- a/docs/src/cookbook.md +++ b/docs/src/cookbook.md @@ -99,7 +99,7 @@ Qs = Array{Any}(undef, gridsize) ap = AffinePenalty(nodes, first(λrange)) # Now loop over each timeslice -ϕs, λs, errs = [], [], [] # storage for results (the deformation, chosen λ, and resid for each timeslice) +ϕs, λs, errs = AbstractDeformation[], [], [] # storage for results (the deformation, chosen λ, and resid for each timeslice) @showprogress 1 for tidx in axes(img, Axis{:time}) moving = view(img, timeaxis(img)(tidx))