Compute X, Y and Z gradients of an input image convolving it with 3d Sobel kernels.
More...
| IPSDKIPLFILTERING_API GradientXYZImg | ipsdk::imaproc::filter::sobelGradient3dImg (const image::ImageConstPtr &pInImg) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API GradientXYZImg | ipsdk::imaproc::filter::sobelGradient3dImg (const image::ImageConstPtr &pInImg, const ipsdk::eSobelKernelType &kernelType, const bool bNormalize) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::sobelGradient3dImg (const image::ImageConstPtr &pInImg, const ipsdk::eSobelKernelType &kernelType, const bool bNormalize, const image::ImagePtr &pOutOptGradXImg, const image::ImagePtr &pOutOptGradYImg, const image::ImagePtr &pOutOptGradZImg) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::sobelXGradient3dImg (const image::ImageConstPtr &pInImg) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::sobelXGradient3dImg (const image::ImageConstPtr &pInImg, const ipsdk::eSobelKernelType &kernelType, const bool bNormalize) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::sobelXGradient3dImg (const image::ImageConstPtr &pInImg, const ipsdk::eSobelKernelType &kernelType, const bool bNormalize, const image::ImagePtr &pOutXGradImg) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::sobelYGradient3dImg (const image::ImageConstPtr &pInImg) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::sobelYGradient3dImg (const image::ImageConstPtr &pInImg, const ipsdk::eSobelKernelType &kernelType, const bool bNormalize) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::sobelYGradient3dImg (const image::ImageConstPtr &pInImg, const ipsdk::eSobelKernelType &kernelType, const bool bNormalize, const image::ImagePtr &pOutYGradImg) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::sobelZGradient3dImg (const image::ImageConstPtr &pInImg) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::sobelZGradient3dImg (const image::ImageConstPtr &pInImg, const ipsdk::eSobelKernelType &kernelType, const bool bNormalize) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::sobelZGradient3dImg (const image::ImageConstPtr &pInImg, const ipsdk::eSobelKernelType &kernelType, const bool bNormalize, const image::ImagePtr &pOutYGradImg) |
| | wrapper function for Sobel filter used to compute gradient on a 2d image More...
|
| |
Compute X, Y and Z gradients of an input image convolving it with 3d Sobel kernels.
3d Sobel kernels are separable, they can be decomposed as the product of 3 vectors. X gradient kernel equals to the product
, Y gradient kernel equals to the product
, and Z gradient kernel equals to the product
. Depending on the value of parameter
(default value: eSKT_SobelHalfKnlSz1), smoothing and derivative vectors equal to:
To handle image borders, a mirror extrapolation is used (see Border policy for more details).
Here is an example of a Sobel gradient applied to an 8-bits grey levels input image with default parameters used:
- See also
- https://en.wikipedia.org/wiki/Sobel_operator
Attributes description
Attribute description for algorithm :
Global Rule description
Global rule description for algorithm :
((ipsdk::processor::isSet (_pOutOptGradXImg3d) ||
ipsdk::processor::isSet (_pOutOptGradYImg3d) ||
ipsdk::processor::isSet (_pOutOptGradZImg3d)) &&
(ipsdk::processor::ifIsSet (_pOutOptGradXImg3d,
ipsdk::imaproc::matchSize (_pInImg3d,_pOutOptGradXImg3d))) &&
(ipsdk::processor::ifIsSet (_pOutOptGradYImg3d,
ipsdk::imaproc::matchSize (_pInImg3d,_pOutOptGradYImg3d))) &&
(ipsdk::processor::ifIsSet (_pOutOptGradZImg3d,
ipsdk::imaproc::matchSize (_pInImg3d,_pOutOptGradZImg3d))))
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLFiltering as filter
Code Example
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
outGxImg, outGyImg, outGzImg = filter.sobelGradient3dImg(inImg)
Example of C++ code :
Example informations
Associated library
IPSDKIPLFiltering
Header file
Code Example
- See also
- SobelGradient3dImgLvl1
◆ sobelGradient3dImg() [1/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelGradient3dImg() [2/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelGradient3dImg() [3/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelXGradient3dImg() [1/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelXGradient3dImg() [2/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelXGradient3dImg() [3/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelYGradient3dImg() [1/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelYGradient3dImg() [2/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelYGradient3dImg() [3/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelZGradient3dImg() [1/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelZGradient3dImg() [2/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-
◆ sobelZGradient3dImg() [3/3]
wrapper function for Sobel filter used to compute gradient on a 2d image
- Exceptions
-