11
$\begingroup$

Bug introduced in 9.0 and fixed in 10.0


I am trying to get the ImageDeconvolve function to work with Image3D objects. In the documentation of ImageDeconvolve it says:

ImageDeconvolve works with Image3D objects.

But I can't get the function to work. I tried the following:

kernel = GaussianMatrix[{{7, 7, 7}, 2}]; Image3D@kernel // ImageAdjust 

enter image description here

img3d = Import["ExampleData/CTengine.tiff", "Image3D"] 

enter image description here

ImageDeconvolve[img3d, GaussianMatrix[{{1, 1, 1}, 1}], Method -> {"RichardsonLucy", "Preconditioned" -> True}, MaxIterations -> 16] 

enter image description here

Deconvolution seems to be applied only to the first plane. Is ImageDeconvolve just not working for Image3D or am I doing something wrong here? I also tried different algorithms, kernels and other options without success.

$\endgroup$
4
  • $\begingroup$ I can confirm the behaviour you see, with 9.0.1. $\endgroup$ Commented Sep 12, 2013 at 14:30
  • $\begingroup$ I'm sorry I forgot to mention: I am also working on version 9.0.1. $\endgroup$ Commented Sep 12, 2013 at 14:53
  • $\begingroup$ I would contact support about it. If they confirm it's a bug, you can come back and note it in an answer (so the question doesn't stay unresolved). $\endgroup$ Commented Sep 12, 2013 at 15:03
  • $\begingroup$ I reported it as a possible bug/missing feature to Wolfram. $\endgroup$ Commented Sep 12, 2013 at 15:42

1 Answer 1

13
$\begingroup$

I'm a consultant at Wolfram Research. It is a bug which will be fixed in Mathematica 10. Here is a workaround for Mathematica 9.0.1:

Image3D[ListDeconvolve[GaussianMatrix[{{1, 1, 1}, 1}], ImageData[img3d], Method -> {"RichardsonLucy", "Preconditioned" -> True}, MaxIterations -> 16]] 

enter image description here

$\endgroup$
1
  • $\begingroup$ Thanks for the workaround. Looking forward to Mathematica version 10. $\endgroup$ Commented Sep 13, 2013 at 8:48

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.