Trait opencv::prelude::RidgeDetectionFilter
source · [−]pub trait RidgeDetectionFilter: AlgorithmTrait + RidgeDetectionFilterConst {
fn as_raw_mut_RidgeDetectionFilter(&mut self) -> *mut c_void;
fn get_ridge_filtered_image(
&mut self,
_img: &dyn ToInputArray,
out: &mut dyn ToOutputArray
) -> Result<()> { ... }
}
Required Methods
fn as_raw_mut_RidgeDetectionFilter(&mut self) -> *mut c_void
Provided Methods
sourcefn get_ridge_filtered_image(
&mut self,
_img: &dyn ToInputArray,
out: &mut dyn ToOutputArray
) -> Result<()>
fn get_ridge_filtered_image(
&mut self,
_img: &dyn ToInputArray,
out: &mut dyn ToOutputArray
) -> Result<()>
Apply Ridge detection filter on input image.
Parameters
- _img: InputArray as supported by Sobel. img can be 1-Channel or 3-Channels.
- out: OutputAray of structure as RidgeDetectionFilter::ddepth. Output image with ridges.
Implementations
sourceimpl dyn RidgeDetectionFilter + '_
impl dyn RidgeDetectionFilter + '_
sourcepub fn create(
ddepth: i32,
dx: i32,
dy: i32,
ksize: i32,
out_dtype: i32,
scale: f64,
delta: f64,
border_type: i32
) -> Result<Ptr<dyn RidgeDetectionFilter>>
pub fn create(
ddepth: i32,
dx: i32,
dy: i32,
ksize: i32,
out_dtype: i32,
scale: f64,
delta: f64,
border_type: i32
) -> Result<Ptr<dyn RidgeDetectionFilter>>
Create pointer to the Ridge detection filter.
Parameters
- ddepth: Specifies output image depth. Defualt is CV_32FC1
- dx: Order of derivative x, default is 1
- dy: Order of derivative y, default is 1
- ksize: Sobel kernel size , default is 3
- out_dtype: Converted format for output, default is CV_8UC1
- scale: Optional scale value for derivative values, default is 1
- delta: Optional bias added to output, default is 0
- borderType: Pixel extrapolation method, default is BORDER_DEFAULT
See also
Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)
C++ default parameters
- ddepth: CV_32FC1
- dx: 1
- dy: 1
- ksize: 3
- out_dtype: CV_8UC1
- scale: 1
- delta: 0
- border_type: BORDER_DEFAULT