Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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.

share|improve this question
    
I can confirm the behaviour you see, with 9.0.1. –  Szabolcs Sep 12 '13 at 14:30
    
I'm sorry I forgot to mention: I am also working on version 9.0.1. –  g3kk0 Sep 12 '13 at 14:53
    
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). –  Szabolcs Sep 12 '13 at 15:03
    
I reported it as a possible bug/missing feature to Wolfram. –  g3kk0 Sep 12 '13 at 15:42
add comment

1 Answer

up vote 9 down vote accepted

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

share|improve this answer
    
Thanks for the workaround. Looking forward to Mathematica version 10. –  g3kk0 Sep 13 '13 at 8:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.