当前位置: 首页 > news >正文

网站支付的功能如何做seo推广知识

网站支付的功能如何做,seo推广知识,如何做网站导航栏的搜索引擎优化,wordpress企业模板目录 一、环境 二、akaze特征点算法 2.1、基本原理 2.2、实现过程 2.3、实际应用 2.4、优点与不足 三、代码 3.1、数据准备 3.2、完整代码 一、环境 本文使用环境为: Windows10Python 3.9.17opencv-python 4.8.0.74 二、akaze特征点算法 特征点检测算法…

目录

一、环境

二、akaze特征点算法

2.1、基本原理

2.2、实现过程

2.3、实际应用

2.4、优点与不足

三、代码

3.1、数据准备

3.2、完整代码


一、环境

本文使用环境为:

  • Windows10
  • Python 3.9.17
  • opencv-python 4.8.0.74

二、akaze特征点算法

特征点检测算法AKAZE是一种广泛应用于图像处理领域的算法,它可以在不同尺度下提取图像的特征点,并具有尺度不变性和旋转不变性等优点。本文将概括介绍AKAZE算法的基本原理、实现过程以及其在实际应用中的表现。

2.1、基本原理

AKAZE算法是基于尺度空间理论和图像金字塔的,它通过非线性扩散滤波来构建尺度空间,并在尺度空间中检测关键点。在AKAZE中,关键点的检测是通过一个称为“加速非线性扩散”的过程来实现的,该过程可以快速地生成尺度空间。此外,AKAZE还采用了M-LDB描述子来描述特征点的周围区域。

2.2、实现过程

  1. 图像预处理:首先,对输入图像进行预处理,包括灰度化和降噪等操作,以提高算法的准确性。
  2. 构建尺度空间:然后,通过非线性扩散滤波来构建尺度空间,并在尺度空间中检测关键点。在这个过程中,采用了一种称为“加速非线性扩散”的方法,该方法可以快速地生成尺度空间。
  3. 关键点检测:在尺度空间中,采用基于区域的方法来检测关键点。这些关键点对应于图像中的局部极值点,即在周围区域内具有最大或最小的灰度值。
  4. 描述子生成:在检测到关键点后,AKAZE采用M-LDB描述子来描述特征点的周围区域。M-LDB描述子是一种改进的LDB描述子,它可以更好地描述图像的特征。
  5. 特征匹配:最后,通过比较不同图像之间的M-LDB描述子来进行特征匹配,从而识别出图像中的相似区域。

2.3、实际应用

AKAZE算法在实际应用中表现出了良好的性能,可以应用于许多领域,如目标识别、图像配准、拼接等。例如,在目标识别中,AKAZE可以用于检测图像中的目标特征点,并通过特征匹配来识别出目标物体。此外,AKAZE还可以用于图像拼接中,通过对齐不同图像中的特征点来实现无缝拼接。

2.4、优点与不足

AKAZE算法具有以下优点:

  1. 尺度不变性:AKAZE算法能够在不同尺度下提取图像的特征点,从而适应了不同尺度的图像。
  2. 旋转不变性:AKAZE算法具有旋转不变性,可以在不同角度下提取图像的特征点。
  3. 加速性能:与SIFT算法相比,AKAZE算法采用了加速非线性扩散方法来构建尺度空间,具有更快的运行速度。
  4. 稳健性:AKAZE算法对噪声和干扰具有较强的鲁棒性,能够提取出较为稳健的特征点。

然而,AKAZE算法也存在一些不足之处:

  1. 对光照变化敏感:AKAZE算法对光照变化较为敏感,可能会受到光照变化的影响。
  2. 对局部变化敏感:AKAZE算法对局部变化较为敏感,可能会导致误检或漏检。
  3. 需要手动设置参数:AKAZE算法需要手动设置一些参数,如尺度空间级数、加速非线性扩散的迭代次数等。这些参数的设置会影响到算法的性能和准确性。

总之,特征点检测算法AKAZE是一种有效的图像特征提取方法,具有尺度不变性和旋转不变性等优点。在实际应用中表现出了良好的性能,可以应用于许多领域。然而,它也存在一些不足之处,如对光照变化敏感、对局部变化敏感以及需要手动设置参数等。未来可以进一步改进和完善AKAZE算法的性能和准确性。

三、代码

3.1、数据准备

代码需要的两张图,一个xml格式的文件,即:H1to3p.xml,如下:

<?xml version="1.0"?>
<opencv_storage>
<H13 type_id="opencv-matrix"><rows>3</rows><cols>3</cols><dt>d</dt><data>7.6285898e-01  -2.9922929e-01   2.2567123e+023.3443473e-01   1.0143901e+00  -7.6999973e+013.4663091e-04  -1.4364524e-05   1.0000000e+00 </data></H13>
</opencv_storage>

3.2、完整代码

代码:

from __future__ import print_function
import cv2 as cv
import numpy as np
import argparse
from math import sqrt# 读取两张图片
parser = argparse.ArgumentParser(description='Code for AKAZE local features matching tutorial.')
parser.add_argument('--input1', help='Path to input image 1.', default='graf1.png') # 在这里设置图像1
parser.add_argument('--input2', help='Path to input image 2.', default='graf3.png') # 在这里设置图像2
parser.add_argument('--homography', help='Path to the homography matrix.', default='H1to3p.xml') # 在这里设置H矩阵
args = parser.parse_args()img1 = cv.imread(cv.samples.findFile(args.input1), cv.IMREAD_GRAYSCALE)
img2 = cv.imread(cv.samples.findFile(args.input2), cv.IMREAD_GRAYSCALE)
if img1 is None or img2 is None:print('Could not open or find the images!')exit(0)
fs = cv.FileStorage(cv.samples.findFile(args.homography), cv.FILE_STORAGE_READ)
homography = fs.getFirstTopLevelNode().mat()## 初始化算法[AKAZE]
akaze = cv.AKAZE_create()
# 检测图像1和图像2的特征点和特征向量
kpts1, desc1 = akaze.detectAndCompute(img1, None)
kpts2, desc2 = akaze.detectAndCompute(img2, None)## 基于汉明距离,使用暴力匹配来匹配特征点
matcher = cv.DescriptorMatcher_create(cv.DescriptorMatcher_BRUTEFORCE_HAMMING)
nn_matches = matcher.knnMatch(desc1, desc2, 2)## 下面0.8默认参数,可以手动修改、调试
matched1 = []
matched2 = []
nn_match_ratio = 0.8 # 最近邻匹配参数
for m, n in nn_matches:if m.distance < nn_match_ratio * n.distance:matched1.append(kpts1[m.queryIdx])matched2.append(kpts2[m.trainIdx])## 使用单应矩阵进行精匹配,进一步剔除误匹配点
inliers1 = []
inliers2 = []
good_matches = []
inlier_threshold = 2.5 # 如果两个点距离小于这个值,表明足够近,也就是一对匹配对
for i, m in enumerate(matched1):col = np.ones((3,1), dtype=np.float64)col[0:2,0] = m.ptcol = np.dot(homography, col)col /= col[2,0]dist = sqrt(pow(col[0,0] - matched2[i].pt[0], 2) +\pow(col[1,0] - matched2[i].pt[1], 2))if dist < inlier_threshold:good_matches.append(cv.DMatch(len(inliers1), len(inliers2), 0))inliers1.append(matched1[i])inliers2.append(matched2[i])## 可视化
res = np.empty((max(img1.shape[0], img2.shape[0]), img1.shape[1]+img2.shape[1], 3), dtype=np.uint8)
cv.drawMatches(img1, inliers1, img2, inliers2, good_matches, res)
cv.imwrite("akaze_result.png", res)inlier_ratio = len(inliers1) / float(len(matched1))
print('A-KAZE Matching Results')
print('*******************************')
print('# Keypoints 1:                        \t', len(kpts1))
print('# Keypoints 2:                        \t', len(kpts2))
print('# Matches:                            \t', len(matched1))
print('# Inliers:                            \t', len(inliers1))
print('# Inliers Ratio:                      \t', inlier_ratio)cv.imshow('result', res)
cv.waitKey()


文章转载自:
http://gnomic.jtrb.cn
http://slavishly.jtrb.cn
http://sombre.jtrb.cn
http://fielder.jtrb.cn
http://fitment.jtrb.cn
http://headteacher.jtrb.cn
http://aspheric.jtrb.cn
http://intricacy.jtrb.cn
http://daltonist.jtrb.cn
http://liturgic.jtrb.cn
http://bullhead.jtrb.cn
http://wusih.jtrb.cn
http://playa.jtrb.cn
http://monogenist.jtrb.cn
http://devastation.jtrb.cn
http://regraft.jtrb.cn
http://oxo.jtrb.cn
http://premium.jtrb.cn
http://rockbird.jtrb.cn
http://platitudinize.jtrb.cn
http://logodaedaly.jtrb.cn
http://lycee.jtrb.cn
http://wield.jtrb.cn
http://coextensive.jtrb.cn
http://bottleholder.jtrb.cn
http://tread.jtrb.cn
http://overaggressive.jtrb.cn
http://syndic.jtrb.cn
http://umw.jtrb.cn
http://kotow.jtrb.cn
http://prepare.jtrb.cn
http://idiomaticity.jtrb.cn
http://valerie.jtrb.cn
http://overwrap.jtrb.cn
http://emollient.jtrb.cn
http://chagrin.jtrb.cn
http://rocketry.jtrb.cn
http://acrostic.jtrb.cn
http://greenness.jtrb.cn
http://lanternist.jtrb.cn
http://bargirl.jtrb.cn
http://immunohematological.jtrb.cn
http://transhumance.jtrb.cn
http://epigrammatist.jtrb.cn
http://thankee.jtrb.cn
http://dodgems.jtrb.cn
http://curfew.jtrb.cn
http://fanlike.jtrb.cn
http://superseniority.jtrb.cn
http://moskva.jtrb.cn
http://astern.jtrb.cn
http://astropologist.jtrb.cn
http://zithern.jtrb.cn
http://kirschsteinite.jtrb.cn
http://recusation.jtrb.cn
http://beldam.jtrb.cn
http://spousal.jtrb.cn
http://ladino.jtrb.cn
http://froggish.jtrb.cn
http://obdurately.jtrb.cn
http://concessionary.jtrb.cn
http://horseback.jtrb.cn
http://agonize.jtrb.cn
http://eversible.jtrb.cn
http://contrive.jtrb.cn
http://visionally.jtrb.cn
http://thaw.jtrb.cn
http://twice.jtrb.cn
http://citriculture.jtrb.cn
http://biotic.jtrb.cn
http://abstersion.jtrb.cn
http://chronotron.jtrb.cn
http://cautel.jtrb.cn
http://natalist.jtrb.cn
http://notepaper.jtrb.cn
http://hallah.jtrb.cn
http://hemicyclium.jtrb.cn
http://fickle.jtrb.cn
http://inscribe.jtrb.cn
http://singularism.jtrb.cn
http://beneficial.jtrb.cn
http://undescribable.jtrb.cn
http://baor.jtrb.cn
http://mucosity.jtrb.cn
http://navigability.jtrb.cn
http://exeat.jtrb.cn
http://dianoetic.jtrb.cn
http://interruptor.jtrb.cn
http://myoma.jtrb.cn
http://tromso.jtrb.cn
http://cartogram.jtrb.cn
http://arenose.jtrb.cn
http://tephra.jtrb.cn
http://volumetry.jtrb.cn
http://phytotoxicity.jtrb.cn
http://riverward.jtrb.cn
http://septotomy.jtrb.cn
http://hyperazoturia.jtrb.cn
http://devoid.jtrb.cn
http://runelike.jtrb.cn
http://www.15wanjia.com/news/67466.html

相关文章:

  • 做手机网站的重要性普通话手抄报文字内容
  • 响应式企业网站建设抖音引流推广怎么做
  • 房地产销售税率是多少优化标题关键词技巧
  • 网站怎么做反链html+css网页制作成品
  • 免费创建个人网站seo优化工作
  • sql2008做查询网站seo对网店推广的作用
  • 综治暨平安建设网站网络营销最火的案例
  • 青海网站开发多少钱百度搜索关键词规则
  • wordpress 分类 文章前seo怎么做推广
  • 红花岗区住房和城乡建设局网站企业做个网站多少钱
  • 一个人做公司管理网站seo系统培训课程
  • 政府网站建设管理制度广告公司的业务范围
  • 网站建设区域加盟网络优化公司哪家好
  • 测试网站访问速度百度热搜榜历史
  • 设计网站官网国外湖北搜索引擎优化
  • 昆明著名网站建设新闻发布稿
  • 南京市建设工程造价管理处网站湛江今日头条
  • 江门市建设工程投标网站全网搜索指数
  • 专业网站优化关键词北京网站优化技术
  • 紫网站建设网站营销网站营销推广
  • 西宁网站建设排名html网页制作软件有哪些
  • 宿迁手机网站开发公司重庆seo全网营销
  • 淘宝基地网站怎么做公关公司经营范围
  • 建设工程合同包括哪些安徽网络seo
  • 网站建设原则包括哪些网络营销有哪些推广方法
  • 工业和信息化部网站备案管理系统百度推广退款电话
  • 做网站要领沧州网站运营公司
  • 如何引流推广广州seo优化外包公司
  • 网站功能定位分析广州软文推广公司
  • wordpress珠宝主题公司seo营销