Matlab编码工具
=========================
Matlab实用程序编码/解码字节序列。该包支持金宝app
以下特点。
* Base64编码
* ZLIB压缩
* GZIP压缩
*图像压缩(需要图像处理工具箱)
包内部使用JAVA函数。必须在Matlab中启用JAVA。
使用
-----
# # # Base64编码
使用' base64encode '和' base64decode '进行编码/解码。
>> x = 'foo bar';
>> z = base64encode(x)
z =
Zm9vIGJhcg = =
>> x2 = char(base64decode(z))
x2 =
foo酒吧
# # # ZLIB压缩
使用' zlibencode '和' zlibdecode '。
>> x = 0 (1,1000, 'uint8');
>> z = zlibencode(x);
> >谁
类属性
X 1x1000 1000 uint8
Z 1x17 17 uint8
>> x == zlibdecode(z)
# # # GZIP压缩
使用' gzipcode '和' gzipdecode '。
>> x = 0 (1,1000, 'uint8');
>> z = gzipencode(x);
> >谁
类属性
X 1x1000 1000 uint8
Z 1x29 29 uint8
>> x == gzipdecode(z)
# # #图像压缩
使用' imencode '和' imdecode '。两个函数在第二个函数中都采用图像格式
论点。参见' imformats '查看平台上可用的格式列表。
>> im = imread('cat.jpg');
>> z = imencode(im, 'jpg');
> >谁
类属性
Im 500x375x3 562500 uint8
z1x24653 24653 uint8
>> im2 = imdecode(z, 'jpg');
引用作为
哥打山口(2022)。字节编码工具(//www.tatmou.com/matlabcentral/fileexchange/39526-byte-encoding-utilities), MATLAB中央文件交换。检索.