1
$\begingroup$

I'm trying to reconstruct an image given its Laplacian, which results in a Poisson equation and I'm using Neumann boundary conditions (derivative at boundary = 0).

What I have is the laplacian (f, left-hand side), and the image borders (boundaries).

How can I solve this in Matlab or Octave? I found the poisolv() and assempde() functions but I don't quite understand how they work.

$\endgroup$
1
$\begingroup$

In MATLAB I suggest using the pdetool GUI which provides an easier-to-use interface to the assempde function.

$\endgroup$
  • $\begingroup$ I think I dont own that toolbox. I think this might be a fairly easy problem, is not there a simple way of doing this? $\endgroup$ – manatttta Jan 7 '15 at 12:36
  • $\begingroup$ Since you mentioned poisolv and assempde, I assumed you had PDE Toolbox; those functions are part of that product. If you want to do more coding in MATLAB you can find examples of how to solve the Poisson equation in chapter 11 of Moler's book: mathworks.com/moler/pdes.pdf $\endgroup$ – Bill Greene Jan 7 '15 at 12:43
  • $\begingroup$ thanks for the help, I will dive into it. but anyways, if I were to use that function alone (without the GUI and so on), where could I get alll the inputs to that function? (as I don't really understand what they are) $\endgroup$ – manatttta Jan 7 '15 at 14:37
  • $\begingroup$ The PDE Toolbox doc is several hundred pages long so that is why I suggested starting with the GUI to learn the product. Alternately, there are quite a few example problems here, mathworks.com/help/pde/examples.html, and several of them use the assempde function. $\endgroup$ – Bill Greene Jan 7 '15 at 15:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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