π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix open_close docs (#952)
Roger Shiehffd04c259943
diff --git a/kornia/morphology/open_close.py b/kornia/morphology/open_close.pyindex b88be76ce..bfc7f357b 100644--- a/kornia/morphology/open_close.py+++ b/kornia/morphology/open_close.py@@ -7,7 +7,7 @@ from kornia.morphology.basic_operators import dilation, erosion# opendef open(tensor: torch.Tensor, kernel: torch.Tensor) -> torch.Tensor:- r"""Returns the opened image, (that means, erosion after a dilation) applying the same kernel in each channel.+ r"""Returns the opened image, (that means, dilation after an erosion) applying the same kernel in each channel.The kernel must have 2 dimensions, each one defined by an odd number.@@ -45,7 +45,7 @@ def open(tensor: torch.Tensor, kernel: torch.Tensor) -> torch.Tensor:# closedef close(tensor: torch.Tensor, kernel: torch.Tensor) -> torch.Tensor:- r"""Returns the closed image, (that means, dilation after an erosion) applying the same kernel in each channel.+ r"""Returns the closed image, (that means, erosion after a dilation) applying the same kernel in each channel.The kernel must have 2 dimensions, each one defined by an odd number.