GeodesicClosing[image,ker]
gives the geodesic closing of image with respect to the structuring element ker.
GeodesicClosing[image,r]
gives the geodesic closing with respect to a range r square.
GeodesicClosing[data,…]
applies geodesic closing to an array of data.


GeodesicClosing
GeodesicClosing[image,ker]
gives the geodesic closing of image with respect to the structuring element ker.
GeodesicClosing[image,r]
gives the geodesic closing with respect to a range r square.
GeodesicClosing[data,…]
applies geodesic closing to an array of data.
Details

- GeodesicClosing works with binary, grayscale, and other images.
- GeodesicClosing works with 3D as well as 2D images, and also with data arrays of any rank.
- The structuring element ker is a matrix containing 0s and 1s.
- GeodesicClosing automatically pads structuring elements to have odd dimensions.
- GeodesicClosing[image,r] is equivalent to GeodesicClosing[image,BoxMatrix[r]].
- If multiple image channels are present, GeodesicClosing operates on each of them separately.
Examples
open all close allBasic Examples (3)
Related Guides
History
Text
Wolfram Research (2012), GeodesicClosing, Wolfram Language function, https://reference.wolfram.com/language/ref/GeodesicClosing.html.
CMS
Wolfram Language. 2012. "GeodesicClosing." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeodesicClosing.html.
APA
Wolfram Language. (2012). GeodesicClosing. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeodesicClosing.html
BibTeX
@misc{reference.wolfram_2025_geodesicclosing, author="Wolfram Research", title="{GeodesicClosing}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/GeodesicClosing.html}", note=[Accessed: 14-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_geodesicclosing, organization={Wolfram Research}, title={GeodesicClosing}, year={2012}, url={https://reference.wolfram.com/language/ref/GeodesicClosing.html}, note=[Accessed: 14-August-2025]}