本文实例讲述了Python基于opencv的图像压缩算法。分享给大家供大家参考,具体如下: 插值方法: CV_INTER_NN – 最近邻插值, CV_INTER_LINEAR – 双线性插值 (缺省使用) CV_INTER_AREA – 使用象素关系重采样。当图像缩小时候,该方法可以避免波纹出现。当图像放大时,类似于 CV_INTER_NN 方法.. CV_INTER_CUBIC – 立方插值. 函数 cvResize 将图像 src 改变尺寸得到与 dst 同样大小。若设定 ROI,函数将按常规支持 ROI. 程序1:图像压缩(第一版) # coding=utf-8 import tim
2023-03-25 16:50:43 52KB c nc op
1
基于jq的分页插件,简单易用。 $(function () { $("#page").initPage({ maxPage: 5, //最大显示数 pageCount: 7, //总页数 callBack: function (data) { //点击页码回调,data是页码 } }); }); 插件代码未压缩,可自行扩展。有其他两种分页风格,查看test.html可知。
2023-03-25 13:40:16 38KB 分页插件 jq javascript
1
ImageCompressionAndRestroation 利用霍夫曼树实现8位256色灰度图像的压缩与复原 一、实验语言与环境 Windows C++ Visual Studio Code或code::blocks MinGW-gcc.exe 二、代码解析 图像压缩 详见ImageCompress.cpp 获取256种颜色的权值 int wid = bitMapInfoHeader.biWidth, hei = bitMapInfoHeader.biHeight; int md = wid%4; int base = (md==0)? wid:4-md+wid; for (int j=0;j<hei;j++){ for (int i=0;i<wid;i++){ v[pData[j*base+i]] +=1; //颜色 i 的权值 v[i] } } 建立霍
2023-03-25 10:07:34 730KB 附件源码 文章源码
1
一本很好的关于新一代视频编码技术H264和MPEG-4的书籍。
2023-03-24 18:19:40 42.56MB H264 MPEG-4 视频编码
1
该工具采用了Java Swing 的技术开发,仿MAC界面UI,并且依赖于精简版的jre包运行。不但可以压缩GIF动态图,还可以自定义设置压缩比。
2023-03-24 17:39:21 25.31MB GIF 压缩 工具 Java
1
绍了基于Zynq平台实现的JPEG图像压缩系统。该系统利用Zynq片上AXI总线实现了ARM与FPGA核间高吞吐率的数据交互操作,并结合了ARM和FPGA在嵌入式系统开发中各自的优势,对软硬件功能的实现进行了明确的划分。通过具体的实验测试,本系统的通用性及高效性得到了验证,并且该系统可方便地移植到不同的实际应用中。
2023-03-24 16:18:57 287KB AXI总线 JPEG压缩 XC7Z020-CLG484 文章
1
随意修改GIF动态图的大小,方便用作QQ、微信等聊天表情制作
2023-03-24 10:16:54 49KB gif 动图
1
100%原生的DELPHI编写的ZIP/UNZIP 全功能开发包,包含全部源代码. Delphi 4, 5, 6, 7, 2005, 2006, 2007 and 2009 compatible C++ Builder 4, 5 6, 2007, and 2009 compatible The VCLZip Delphi component allows you to add ZIP and UNZIP capabilites to your application. This component is different from most other "ZIP" development libraries in that it is written in 100% Delphi Object Pascal code and is full featured. There are no DLL's to tote around. This component links right into your application's executable. It is very easy to use. Just SOME of the features include: Create zip files fully compatable with PKZip Completely native Delphi VCL (NO DLLS) Create Disk Spanning and Blocked zip files Delphi 4, 5, 6, 7, 2005, 2006, 2007 and 2009 compatible C++ Builder 4, 5 6, 2007, and 2009 compatible Zip directly from streams to zip files Unzip directly to streams from zip files Stream to Stream zipping and unzipping Unzip directly to memory buffers Zip directoy from memory buffers Create and read Zip and File Comments Create Self Extracting Zip Files (16 bit and 32 bit distributable Windows sfx stubs included (source included for these too) or use your own stubs) Complete support for encrypted files (encrypts as it zips) Save Relative Path information Unzip using Relative Paths (even if zip file wasn't created with relative path info) Use enhanced wildcards Exclude List (tell VCLZip which files not to include (use wildcards too)) NoCompress (STORE) List (tell VCLZip which files to just store (use wildcards too) Set your own temp directory Plenty of events Long filenames, even the 16 bit VCLZip/VCLUnZip Includes comprehensive Zip Utility with source as demo Includes a small stream zipping demo Includes a context sensitive help file Use Unicode filenames, archive names, and pathnames (except for Delphi/BCB 4 and5) . No Royalties! AES Strong Encryption Zip64 capabilities, properties, methods and events: Uncompressed, Compressed, and Archive file sizes can be up to 2^63-1 bytes in length. You can compress up to 2147483647 files into an archive. This is compatible with PKZip's Zip64 format. If a file does not extend beyond any of the original limitations (filesizes of 4 gig or 65535 files) then no Zip64 format information is included in the archive. property isZip64 - tells you when you are working with a zip file that is using Zip64 format. Faster processing due to linking to Zlib 1.2.3 object files for compression and decompression routines. Blocked Zip Files (spanned zip archives split onto hard drive) Compatible with PKZip and WinZip split archives file naming format. For backwards compatability you can tell VCLZip to use the old VCLZip filenaming format by using the BlockMode property
2023-03-23 16:17:00 916KB DELPHI BCB VCLZip ZIP/UNZIP
1
文件包含了 1.POI导入导出的工具类; 2.图片URL导出成图片文件; 3.导出excel和图片压缩包格式文件。 如果下载后有任何问题,可以联系我哦!
2023-03-23 12:02:12 23KB poi 导入导出
1
Lhaca(支持压缩LZH格式),lzh是一种文件压缩形式之一。是在吉崎荣泰先生开发的自由软件「LHA」中被使用的形式,主要在日本国内普及着。这种文件格式在国内用的并不很多,用得最多的是日本,所以不少来自日本的软件都用这种格式压缩. WINRAR支持解压缩LZH格式的压缩文件,可以用winrar解压缩打开。压缩为LZH的软件名称就是LZH。不过现在用得不多。
2023-03-23 03:50:07 282KB 压缩工具 日本的压缩软件
1