基于四叉树算法的图像隐藏Matlab实现

135 篇文章 ¥59.90 ¥99.00
本文介绍了如何使用Matlab实现基于四叉树的图像隐藏技术。通过将图像转换为灰度,再转为二进制序列,然后利用四叉树算法进行划分和处理,最终达到隐藏信息的目的。实验结果显示了隐藏过程的有效性。

基于四叉树算法的图像隐藏Matlab实现

在图像处理领域中,图像的隐藏是一项非常重要的技术,其可以避免敏感信息被未经授权的人员查看。四叉树是图像隐藏的一种常用算法之一,其将图像划分为多个子块,并对每个子块进行处理。本文将介绍如何使用Matlab实现基于四叉树算法的图像隐藏。

  1. 算法原理

四叉树是一种二叉树的扩展,它将空间划分为四个象限。在图像处理中,四叉树可以用于将图像划分为四个象限,然后对每个象限进行处理。然后,如果某个象限可以继续划分,则将该象限进一步划分为四个象限,并重复此过程。最后,将所有叶子节点转换为一个数字,从而得到一个二进制序列。通过这种方式,可以将一幅图像隐藏到二进制序列中。

  1. 实现步骤

下面介绍如何使用Matlab实现基于四叉树算法的图像隐藏。

(1)读取需要隐藏的图片并将其转换为灰度图像。

img = imread('image.jpg');
img_gray = rgb2gray(img);

(2)将灰度图像转换为二进制序列。

img_bin = dec2bin(img_gray);

(3)使用四叉树算法对二进制序列进行划分。

quad_tree = qtdecomp(img_gray,0.05);

其中,第二个参数是控制图像压缩率的参数,建议取值在0.02~0.08之间。

(4)根据四叉树生成的分割图像压缩比例,对应修改每个分块的二进制数据,并将得到的新的二进制序

文章作者写的matlab源代码,该文章2017年发表在Signal Processing: Image Communication: Hui Liu, Ke-Kun Huang*, Chuan-Xian Ren, Yu-Feng Yu and Zhao-Rong Lai. Quadtree Coding with Adaptive Scanning Order for Space-borne Image Compression. Signal Processing: Image Communication, vol. 55, no. 7, pp. 1-9, 2017. (http://dx.doi.org/10.1016/j.image.2017.03.011) 星载设备产生非常大的图像,而存储、计算和传输的能力有限,因此需要低复杂度的图像压缩算法。在本文中,我们开发了一种基于四叉树的高效图像压缩算法。首先,我们提出了一种自适应扫描顺序,它从先前有效节点的邻居遍历四叉树,从而指定的比特率下对更多的有效系数进行编码。其次,我们将整个小波图像划分成几个块,并对它们进行单独编码。因为失真率通常随着树节点的层次的增加而减小,我们选择在四叉树的每个层次编码后的点作为候选截断点。提出的方法可以提供质量、位置和分辨率的可扩展性,简单快速,无需任何熵编码,因此非常适合于星载设备。实验结果表明,与一些最先进的算法相比,它具有更好的性能。 Space-borne equipments produce very big images while their capacities of storage, calculation and transmission are limited, so low-complexity image compression algorithms are necessary. In this paper, we develop an efficient image compression algorithm based on quadtree in wavelet domain for this mission. First, we propose an adaptive scanning order for quadtree, which traverses prior the neighbors of previous significant nodes from bottom to the top of quadtree, so that more significant coefficients are encoded at a specified bit rate. Second, we divide the entire wavelet image to several blocks and encode them individually. Because the distortion-rate usually decreases as the level of the quadtree increases with the adaptive scanning order, to control bit rate for each block, we set the points exactly after coding each level of the quadtree as the candidate truncation points. The proposed method can provide quality, position and resolution scalability, which is simple and fast without any entropy coding, so it is very suitable for space-borne equipments. Experimental results show that it attains better performance compared with some state-of-the-art algorithms.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值