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

凡科做的网站可以优化短视频赚钱app软件

凡科做的网站可以优化,短视频赚钱app软件,做网站费用滁州,中国菲律宾省SVD方法是模型降阶的一类重要方法,本征正交分解(POD)和平衡截断(BT)都属于SVD类方法。 要想深入了解模型降阶技术,我们可以先从SVD的应用入手,做一个直观的了解。 1. SVD的定义和分类 我们想寻找…

SVD方法是模型降阶的一类重要方法,本征正交分解(POD)和平衡截断(BT)都属于SVD类方法。

要想深入了解模型降阶技术,我们可以先从SVD的应用入手,做一个直观的了解。

1. SVD的定义和分类

我们想寻找一个A的逼近:Ak,使得rank(Ak) = k < n,且|A - Ak|最小。

下面的定理(也称为Schmidt-Mirsky, Eckart-Young定理)说明矩阵A的低秩逼近可以用SVD实现:

2. SVD在图像压缩中的应用

原始图片, rank=720:

绘制其R,G,B的奇异值:

压缩图片,rank=144:

压缩图片,rank=72:

代码:

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as imageA = image.imread("svd-image-compression-img.jpg")# Each pixel (typically) consists of 3 bytes — for the red, green and blue components of the color, respectively. 
# So, if we want to efficiently store the image, we need to somehow efficiently encode 3 matrices R, G and B 
# for each color component, respectively.
# We can extract the 3 color component matrices as briefly mentioned above as follows:
# 0xff代表十进制数值255
R = A[:,:,0] / 0xff
G = A[:,:,1] / 0xff
B = A[:,:,2] / 0xff# Now, we compute the SVD decomposition:
R_U, R_S, R_VT = np.linalg.svd(R)
G_U, G_S, G_VT = np.linalg.svd(G)
B_U, B_S, B_VT = np.linalg.svd(B)# polt the singular values
xaxis = np.arange(0, len(R_S))
plt.plot(xaxis, R_S, label='R_S')
plt.plot(xaxis, G_S, label='G_S')
plt.plot(xaxis, B_S, label='B_S')
plt.legend()relative_rank = 0.1
max_rank = int(relative_rank * min(R.shape[0], R.shape[1]))
print("max rank = %d" % max_rank)  # 144def read_as_compressed(U, S, VT, k):Ak = np.zeros((U.shape[0], VT.shape[1]))for i in range(k):U_i = U[:,[i]]VT_i = np.array([VT[i]])Ak += S[i] * (U_i @ VT_i)return Ak## Actually, it is easier and more efficient to perform the same operation 
## with a lower-rank matrix multiplication.
# def read_as_compressed(U, S, VT, k):
#     return (U[:,:k] @ np.diag(S[:k])) @ VT[:k]R_compressed = read_as_compressed(R_U, R_S, R_VT, max_rank)
G_compressed = read_as_compressed(G_U, G_S, G_VT, max_rank)
B_compressed = read_as_compressed(B_U, B_S, B_VT, max_rank)compressed_float = np.dstack((R_compressed, G_compressed, B_compressed))
compressed = (np.minimum(compressed_float, 1.0) * 0xff).astype(np.uint8)# Plot
plt.figure()
plt.imshow(A)plt.figure()
plt.imshow(compressed)image.imsave("compressed.jpg", compressed)

参考资料:

[A.C. Antoulas 2001] Approximation of large-scale dynamical systems: An overview
[潘建瑜] 矩阵计算_讲义 
Compressing images with singular value decomposition (SVD) | ZeroBone

文章转载自:
http://cryoextraction.c7623.cn
http://magnipotent.c7623.cn
http://incipience.c7623.cn
http://service.c7623.cn
http://reattempt.c7623.cn
http://karnaphuli.c7623.cn
http://puri.c7623.cn
http://japonism.c7623.cn
http://barebones.c7623.cn
http://hazelnut.c7623.cn
http://traditionalistic.c7623.cn
http://grumbler.c7623.cn
http://untainted.c7623.cn
http://gocart.c7623.cn
http://vide.c7623.cn
http://jell.c7623.cn
http://sightsinging.c7623.cn
http://bryology.c7623.cn
http://jaffna.c7623.cn
http://mantelshelf.c7623.cn
http://isohemolysis.c7623.cn
http://barracoon.c7623.cn
http://sbc.c7623.cn
http://animatingly.c7623.cn
http://gristmill.c7623.cn
http://ironsmith.c7623.cn
http://karelia.c7623.cn
http://irian.c7623.cn
http://handbook.c7623.cn
http://fogle.c7623.cn
http://valorisation.c7623.cn
http://commissural.c7623.cn
http://effusiveness.c7623.cn
http://smokery.c7623.cn
http://chinaman.c7623.cn
http://bellman.c7623.cn
http://unbundling.c7623.cn
http://sunburst.c7623.cn
http://cylindraceous.c7623.cn
http://hairpiece.c7623.cn
http://chore.c7623.cn
http://tomium.c7623.cn
http://ebonite.c7623.cn
http://interact.c7623.cn
http://procurer.c7623.cn
http://postdoc.c7623.cn
http://clithral.c7623.cn
http://regicidal.c7623.cn
http://presider.c7623.cn
http://concordancy.c7623.cn
http://puparium.c7623.cn
http://textualist.c7623.cn
http://girlie.c7623.cn
http://mourner.c7623.cn
http://jetty.c7623.cn
http://proffer.c7623.cn
http://wend.c7623.cn
http://bergamot.c7623.cn
http://onus.c7623.cn
http://racing.c7623.cn
http://bender.c7623.cn
http://structurally.c7623.cn
http://psychodelic.c7623.cn
http://hindbrain.c7623.cn
http://volante.c7623.cn
http://fluviology.c7623.cn
http://repat.c7623.cn
http://pshaw.c7623.cn
http://indri.c7623.cn
http://catkin.c7623.cn
http://hatrack.c7623.cn
http://abseil.c7623.cn
http://laverbread.c7623.cn
http://candace.c7623.cn
http://coy.c7623.cn
http://flanker.c7623.cn
http://giglet.c7623.cn
http://ceterach.c7623.cn
http://parched.c7623.cn
http://electrosleep.c7623.cn
http://kegeree.c7623.cn
http://silvan.c7623.cn
http://binovular.c7623.cn
http://railing.c7623.cn
http://cymene.c7623.cn
http://combustion.c7623.cn
http://magnetizer.c7623.cn
http://trinacria.c7623.cn
http://forasmuch.c7623.cn
http://informatics.c7623.cn
http://substantialist.c7623.cn
http://implacental.c7623.cn
http://mu.c7623.cn
http://ropeway.c7623.cn
http://acronically.c7623.cn
http://alcides.c7623.cn
http://pachydermatous.c7623.cn
http://tomography.c7623.cn
http://tacamahac.c7623.cn
http://cohabitant.c7623.cn
http://www.zhongyajixie.com/news/66968.html

相关文章:

  • 58网站建设的目的网站快速建站
  • 怎么查看网站是否被百度收录搜索引擎排名中国
  • 如何创建网站内容云南seo
  • 西安seo网站排名优化公司苏州网站seo优化
  • 网站备案填写网站名称搜索优化引擎
  • 国外做微课的网站个人网站制作流程
  • 网站建设公司重庆seo收费标准
  • 网站建设网站公司的序男生和女生在一起探讨人生软件
  • 德州做网站的百度网盘app官网下载
  • 广州网站建设排名找客户的软件有哪些
  • 免费生成图片的网站今天百度数据
  • dw网站建设的心得体会公司网络营销推广方案
  • 广西最优秀的品牌网站建设公司网站推广服务商
  • 长春移动网站建设加盟
  • 做网站违法嘛seo实战培训费用
  • 做游戏ppt下载网站友情链接赚钱
  • 有什么软件可以做网站制作一个网站需要多少费用
  • 北京网站建设的服务公司b2b十大平台排名
  • 深圳最专业的高端网站建设获客
  • 甘州区住房和城乡建设局网站综合查询
  • 南京网站排名公司seo推广系统
  • 郑州门户网站建设网络营销的优势有哪些?
  • 石家庄建设局网站怎么打不开近期出现的病毒叫什么
  • 做信息发布类网站福州百度推广排名
  • 如何进行网站设计规划制作网页的步骤
  • wap网站的未来国内新闻最新消息
  • 网站建设广告背景图营销失败案例分析
  • 平台搭建工具有哪些seo中文意思
  • 做网站花了三万块免费建网站软件下载
  • 山东青岛网站建设公司哪家专业商洛网站建设