Diffuse from "sources" in "image" until diffusion stops at insulating "boundaries".
Diffuse from "sources" in "image" until diffusion stops at insulating "boundaries".
The image to be diffused.
The pixels in the image which are to be considered Dirichlet boundaries or sources that do not change as a result of the diffusion. A non-zero scalar in the field => "source", while a zero scalar => pixel that can be diffused through. This field essentially samples "image" to define the Dirichlet boundary constraints. THIS SHOULD BE A BINARY FIELD, 0's and 1's.
The maximum number of diffusion iterations to run per level in the image pyramid.
The diffused version of "image" subject to the constraints in "sources" and "boundaries"
Implements diffusion with both insulating and Dirichlet boundary constraints using a multigrid algorithm.