OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::ximgproc::EdgeAwareInterpolator 类参考抽象类

基于修改的局部加权仿射估计器的稀疏匹配插值算法,出自 [228],并使用快速全局平滑器作为后处理滤波器。 更多...

#include <opencv2/ximgproc/sparse_match_interpolator.hpp>

cv::ximgproc::EdgeAwareInterpolator 的协作图

公共成员函数

virtual float getFGSLambda ()=0
 
virtual float getFGSSigma ()=0
 
virtual int getK ()=0
 
virtual float getLambda ()=0
 
virtual float getSigma ()=0
 
virtual bool getUsePostProcessing ()=0
 
virtual void setCostMap (const Mat &_costMap)=0
 提供更详细的代价图(即边缘图)的接口,用于边缘感知项。 此实现基于相当简单的基于梯度的边缘图估计。 为了使用更复杂的边缘图估计器(例如,StructuredEdgeDetection,它已在原始出版物中使用),这可能会提高准确性,可以绕过内部边缘图估计。
 
virtual void setFGSLambda (float _lambda)=0
 设置相应的 fastGlobalSmootherFilter() 参数。
 
virtual void setFGSSigma (float _sigma)=0
 
virtual void setK (int _k)=0
 用于调整用于超像素分割的超像素近似大小的参数。
 
virtual void setLambda (float _lambda)=0
 Lambda 是一个参数,用于定义大地距离中边缘感知项的权重,应在 0 到 1000 的范围内。
 
virtual void setSigma (float _sigma)=0
 Sigma 是一个参数,用于定义局部加权仿射拟合中权重下降的速度。 较高的值有助于保留精细的细节,较低的值有助于消除输出流中的噪声。
 
virtual void setUsePostProcessing (bool _use_post_proc)=0
 设置是否使用 fastGlobalSmootherFilter() 后处理。 默认情况下已启用。
 
- 从 cv::ximgproc::SparseMatchInterpolator 继承的公共成员函数
virtual void interpolate (InputArray from_image, InputArray from_points, InputArray to_image, InputArray to_points, OutputArray dense_flow)=0
 插值输入稀疏匹配。
 
- 从 cv::Algorithm 继承的公共成员函数
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 清除算法状态。
 
virtual bool empty () const
 如果 Algorithm 为空(例如,在刚开始或不成功的读取之后),则返回 true。
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 从文件存储中读取算法参数。
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 将算法参数存储到文件存储中。
 
void write (FileStorage &fs, const String &name) const
 

其他继承成员

- 从 cv::Algorithm 继承的静态公共成员函数
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 从文件中加载算法。
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 从字符串加载算法。
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 从文件节点读取算法。
 
- 从 cv::Algorithm 继承的保护成员函数
void writeFormat (FileStorage &fs) const
 

详细描述

基于修改的局部加权仿射估计器的稀疏匹配插值算法,出自 [228],并使用快速全局平滑器作为后处理滤波器。

成员函数文档

◆ getFGSLambda()

virtual float cv::ximgproc::EdgeAwareInterpolator::getFGSLambda ( )
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.getFGSLambda() -> retval
另请参见
setFGSLambda

◆ getFGSSigma()

virtual float cv::ximgproc::EdgeAwareInterpolator::getFGSSigma ( )
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.getFGSSigma() -> retval
另请参见
setFGSLambda

◆ getK()

virtual int cv::ximgproc::EdgeAwareInterpolator::getK ( )
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.getK() -> retval
另请参见
setK

◆ getLambda()

virtual float cv::ximgproc::EdgeAwareInterpolator::getLambda ( )
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.getLambda() -> retval
另请参见
setLambda

◆ getSigma()

virtual float cv::ximgproc::EdgeAwareInterpolator::getSigma ( )
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.getSigma() -> retval
另请参见
setSigma

◆ getUsePostProcessing()

virtual bool cv::ximgproc::EdgeAwareInterpolator::getUsePostProcessing ( )
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.getUsePostProcessing() -> retval
另请参见
setUsePostProcessing

◆ setCostMap()

virtual void cv::ximgproc::EdgeAwareInterpolator::setCostMap ( const Mat & _costMap)
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.setCostMap(_costMap) ->

提供更详细的代价图(即边缘图)的接口,用于边缘感知项。 此实现基于相当简单的基于梯度的边缘图估计。 为了使用更复杂的边缘图估计器(例如,StructuredEdgeDetection,它已在原始出版物中使用),这可能会提高准确性,可以绕过内部边缘图估计。

参数
_costMap需要类型为 CV_32FC1 的 Mat
另请参见
cv::ximgproc::createSuperpixelSLIC

◆ setFGSLambda()

virtual void cv::ximgproc::EdgeAwareInterpolator::setFGSLambda ( float _lambda)
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.setFGSLambda(_lambda) ->

设置相应的 fastGlobalSmootherFilter() 参数。

◆ setFGSSigma()

virtual void cv::ximgproc::EdgeAwareInterpolator::setFGSSigma ( float _sigma)
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.setFGSSigma(_sigma) ->
另请参见
setFGSLambda

◆ setK()

virtual void cv::ximgproc::EdgeAwareInterpolator::setK ( int _k)
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.setK(_k) ->

用于调整用于超像素分割的超像素近似大小的参数。

另请参见
cv::ximgproc::createSuperpixelSLIC

K 是拟合局部仿射模型时考虑的最近邻匹配数。 通常它应该在 128 左右。 但是,较低的值会使插值明显更快。

◆ setLambda()

virtual void cv::ximgproc::EdgeAwareInterpolator::setLambda ( float _lambda)
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.setLambda(_lambda) ->

Lambda 是一个参数,用于定义大地距离中边缘感知项的权重,应在 0 到 1000 的范围内。

◆ setSigma()

virtual void cv::ximgproc::EdgeAwareInterpolator::setSigma ( float _sigma)
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.setSigma(_sigma) ->

Sigma 是一个参数,用于定义局部加权仿射拟合中权重下降的速度。 较高的值有助于保留精细的细节,较低的值有助于消除输出流中的噪声。

◆ setUsePostProcessing()

virtual void cv::ximgproc::EdgeAwareInterpolator::setUsePostProcessing ( bool _use_post_proc)
纯虚函数
Python
cv.ximgproc.EdgeAwareInterpolator.setUsePostProcessing(_use_post_proc) ->

设置是否使用 fastGlobalSmootherFilter() 后处理。 默认情况下已启用。


此类文档由以下文件生成