CN115002290B - 基于分块镜像的图像置乱方法 - Google Patents

基于分块镜像的图像置乱方法 Download PDF

Info

Publication number
CN115002290B
CN115002290B CN202210514007.XA CN202210514007A CN115002290B CN 115002290 B CN115002290 B CN 115002290B CN 202210514007 A CN202210514007 A CN 202210514007A CN 115002290 B CN115002290 B CN 115002290B
Authority
CN
China
Prior art keywords
image
minor
block
mirror
scrambling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210514007.XA
Other languages
English (en)
Other versions
CN115002290A (zh
Inventor
张晓强
廖菁菁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China University of Mining and Technology CUMT
Original Assignee
China University of Mining and Technology CUMT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China University of Mining and Technology CUMT filed Critical China University of Mining and Technology CUMT
Priority to CN202210514007.XA priority Critical patent/CN115002290B/zh
Publication of CN115002290A publication Critical patent/CN115002290A/zh
Application granted granted Critical
Publication of CN115002290B publication Critical patent/CN115002290B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32267Methods relating to embedding, encoding, decoding, detection or retrieval operations combined with processing of the image
    • H04N1/32272Encryption or ciphering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/001Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using chaotic signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/44Secrecy systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

一种基于分块镜像的图像置乱方法,属于信息加密领域。目前,数字图像是信息传播的主要载体,在各个领域都得到了广泛的应用。为保护图像信息的安全,本发明利用图像镜像和分块等技术,设计了一种基于分块镜像的图像置乱方法。首先,将原始图像进行分块;其次,对图像块进行多种不同方式的镜像变换;再次,利用混沌对所有镜像后的图像块进行块间置乱;最后,将图像块合并成置乱图像。实验表明:该方法加密效果良好,安全性高且高效。

Description

基于分块镜像的图像置乱方法
技术领域
本方法涉及一种信息加密技术,特别是涉及一种图像加密方法。
背景技术
图像信息是人类表达信息的重要手段。然而,其在复杂的互联网环境中传输时,极易受到各种传输特性的干扰与攻击,安全性容易受到破坏。因此,研究高效安全的图像加密方法显得尤为重要。
图像加密常用的手段包括置乱和扩散,置乱是指打乱像素在图像中的位置,扩散是指改变图像中的像素值。
为提高图像加密的安全性和效率,将图像处理中的镜像变换融入图像加密并结合混沌系统和块置乱等技术,设计了一种基于分块镜像的图像置乱方法。该方法利用图像镜像的特性,以及混沌良好的随机性和复杂性,有效地保护了图像内容网络传输和存储的安全。
发明内容
本发明的目的:为解决现有图像加密方法效率低或安全性弱等问题,提出了一种基于分块镜像的图像置乱方法。
基于分块镜像的图像置乱方法,其特征在于,置乱过程包括如下步骤:
步骤1:图像分块:令原始图像为一幅大小m×n的图像I,将I分割成大小均为q×q的图像块,可得s个图像块b 1 1, b 2 1, …, b s 1s=(m×n)/(q×q);若q无法整除mn,则用像素填补法对I进行扩充;
步骤2:产生混沌序列:随机选取二维Logistic映射的初始值x 0, y 0和控制参数μ 1,μ 2, a 1, a 2,按照公式(1)迭代1000+s次,为取得良好的随机性,丢掉前1000个值,可得两个长度为s的混沌序列X={x i }和Y={y i };
Figure 895565DEST_PATH_IMAGE001
, (1)
其中,x n, y n∈(0, 1),μ 1∈(2.75, 3.4],μ 2∈(2.75, 3.45],a 1∈(0.15, 0.21]和a 2∈(0.13, 0.15];
步骤3:混沌序列整数化:计算,
r i =mod(floor(x i ×1016), 7), (2)
其中,x i Xmod(·)是取模函数,floor(·)是取整函数;可产生一个长度为s的整数混沌序列R={r i };
步骤4:块内镜像变换:以b 1 1, b 2 1, …, b s 1为镜像对象,利用R,随机选择不同的镜像方式进行变换,可得镜像后的图像块b 1 2, b 2 2, …, b s 2
步骤5:块间置乱:对Y进行升序排序,
[Y 1, Y 2]=sort(Y), (3)
其中,sort (·)是升序排序函数,Y 1为索引值序列,Y 2为排序后的序列;利用Y 1b 1 2, b 2 2, …, b s 2进行块间置乱操作,
b i 3=b y1(i) 2i=1, 2, …, s, (4)
其中,y 1(i)∈Y 1b 1 3, b 2 3, …, b s 3为置乱后的结果;
步骤6:图像块合并:按照特定的顺序将b 1 3, b 2 3, …, b s 3进行图像块组合,可得一幅大小为m×n的置乱图像J
进一步地,所述步骤4中,镜像方式为:
Figure 875023DEST_PATH_IMAGE002
, (5)
其中,r i RB为原始图像块,B 1为镜像后的图像块,h_mirror(·)、v_mirror(·)、d_mirror(·)、hv_mirror(·)、hd_mirror(·)、vd_mirror(·)和hvd_mirror(·)分别为水平镜像函数、垂直镜像函数、对角镜像函数、水平-垂直镜像函数、水平-对角镜像函数、垂直-对角镜像函数和水平-垂直-对角镜像函数;R控制镜像方式,当r i =0时,执行h_mirror(B);当r i =1时,执行v_mirror(B);当r i =2时,执行d_mirror(B);当r i =3时,执行hv_mirror(B);当r i =4时,执行hd_mirror(B);当r i =5时,执行vd_mirror(B);当r i =6时,执行hvd_ mirror(B)。
有益效果:本发明针对现有图像加密方法存在加密效率低或安全性弱等问题,提出了一种基于分块镜像的图像置乱方法。主要贡献有:(1)将镜像变换应用于图像加密,设计了7种镜像方式提高了随机性和安全性;(2)结合分块技术,增大了加密粒度提高了加密效率;(3)该方法具有高效、安全和加密效果良好的特征,可有效保护图像内容网络传输和存储的安全。
附图说明
图1:基于分块镜像的图像置乱方法流程图;
图2:原始图像;
图3:置乱图像。
具体实施方式
下面结合具体附图和实例对本发明的实施过程进一步详细说明。
图1是本方法的置乱流程图。
采用的编程软件为Matlab R2020a,选取图2所示大小为512×512的图像作为原始图像。
步骤1:图像分块:令原始图像为一幅大小512×512的图像I,将I分割成大小均为4×4的图像块,可得16384个图像块b 1 1, b 2 1, …, b 16384 1
步骤2:产生混沌序列:随机选取二维Logistic映射的初始值0.7823,0.2433和控制参数3.1439,2.9123,0.1648,0.1357,按照公式(1)迭代17384次,为取得良好的随机性,丢掉前1000个值,可得两个长度为16384的混沌序列X={x i }和Y={y i }。
步骤3:混沌序列整数化:利用公式(2)对混沌序列X进行整数化,产生整数混沌序列R={r i}。
步骤4:块内镜像变换:以b 1 1, b 2 1, …, b 16384 1为镜像对象,利用R,随机选择不同的镜像方式进行变换,可得镜像后的图像块b 1 2, b 2 2, …, b 16384 2
步骤5:块间置乱:利用公式(3)对Y进行升序排序,得到索引值序列Y 1和排序后的序列Y 2;根据公式(4)并利用Y 1b 1 2, b 2 2, …, b 16384 2进行块间置乱操作,可得置乱后的结果b 1 3, b 2 3, …, b 16384 3
步骤6:图像块合并:按照特定的顺序将b 1 3, b 2 3, …, b 16384 3进行图像块组合,可得一幅大小为512×512的置乱图像J,如图3所示。

Claims (2)

1.基于分块镜像的图像置乱方法,其特征在于,置乱过程包括如下步骤:
步骤1:图像分块:令原始图像为一幅大小为m×n的图像I,将I分割成大小均为q×q的图像块,可得s个图像块b1 1,b2 1,…,bs 1,s=(m×n)/(q×q);若q无法整除m和n,则用像素填补法对I进行扩充;
步骤2:产生混沌序列:随机选取二维Logistic映射的初始值x0,y0和控制参数μ12,a1,a2,按照公式(1)迭代1000+s次,丢掉前1000个值,可得两个长度为s的混沌序列X={xi}和Y={yi};
Figure FDA0004136996520000011
其中,xn,yn∈(0,1),μ1∈(2.75,3.4],μ2∈(2.75,3.45],a1∈(0.15,0.21]和a2∈(0.13,0.15];
步骤3:混沌序列整数化:计算,
ri=mod(floor(xi×1016), 7), (2)
其中,xi∈X,mod(·)是取模函数,floor(·)是取整函数;可产生一个长度为s的整数混沌序列R={ri};
步骤4:块内镜像变换:以b1 1,b2 1,…,bs 1为镜像对象,利用R和设计的镜像方式进行变换,可得镜像后的图像块b1 2,b2 2,…,bs 2
步骤5:块间置乱:对Y进行升序排序,
[Y1, Y2]=sort(Y), (3)
其中,sort(·)是升序排序函数,Y1为索引值序列,Y2为排序后的序列;利用Y1对b1 2,b2 2,…,bs 2进行块间置乱操作,
bi 3=by1(i) 2,i=1, 2, …, s, (4)
其中,y1(i)∈Y1,b1 3,b2 3,…,bs 3为置乱后的结果;
步骤6:图像块合并:按照特定的顺序将b1 3,b2 3,…,bs 3进行图像块组合,可得一幅大小为m×n的置乱图像J。
2.根据权利要求1所述的方法,其特征在于:所述步骤4中,镜像方式为:
Figure FDA0004136996520000021
其中,ri∈R,B为原始图像块,B1为镜像后的图像块,h_mirror(·)、v_mirror(·)、d_mirror(·)、hv_mirror(·)、hd_mirror(·)、vd_mirror(·)和hvd_mirror(·)分别为水平镜像函数、垂直镜像函数、对角镜像函数、水平-垂直镜像函数、水平-对角镜像函数、垂直-对角镜像函数和水平-垂直-对角镜像函数;R控制镜像方式,当ri=0时,执行h_mirror(B);当ri=1时,执行v_mirror(B);当ri=2时,执行d_mirror(B);当ri=3时,执行hv_mirror(B);当ri=4时,执行hd_mirror(B);当ri=5时,执行vd_mirror(B);当ri=6时,执行hvd_mirror(B)。
CN202210514007.XA 2022-05-12 2022-05-12 基于分块镜像的图像置乱方法 Active CN115002290B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210514007.XA CN115002290B (zh) 2022-05-12 2022-05-12 基于分块镜像的图像置乱方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210514007.XA CN115002290B (zh) 2022-05-12 2022-05-12 基于分块镜像的图像置乱方法

Publications (2)

Publication Number Publication Date
CN115002290A CN115002290A (zh) 2022-09-02
CN115002290B true CN115002290B (zh) 2023-05-23

Family

ID=83027631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210514007.XA Active CN115002290B (zh) 2022-05-12 2022-05-12 基于分块镜像的图像置乱方法

Country Status (1)

Country Link
CN (1) CN115002290B (zh)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5309654B2 (ja) * 2008-03-31 2013-10-09 富士通株式会社 画像暗号装置及び画像復号化装置
CN111444522B (zh) * 2020-03-19 2024-02-27 南昌大学 一种随机分块的混沌图像加密方法

Also Published As

Publication number Publication date
CN115002290A (zh) 2022-09-02

Similar Documents

Publication Publication Date Title
CN108322622B (zh) 一种基于2d-vmd和八维超混沌系统的彩色数字图像加密方法
CN109150492B (zh) 基于三维置乱模型和混沌的多图像加密方法
CN111031193A (zh) 基于立体复合置乱模型和混沌的图像加密方法
CN111934846B (zh) 基于分数阶傅里叶变换的多混沌Arnold图像加密方法
CN106604040A (zh) 基于混合图元和全排列的多图像加密方法
CN107292805A (zh) 一种基于多参数分数阶离散Tchebichef变换的图像加密方法
CN110572252A (zh) 一种基于分数阶平移混沌系统的图像加密及解密方法
CN111263026B (zh) 基于立体置乱模型和分数阶傅里叶变换的多图像加密方法
Ye et al. Application of the chaotic ergodicity of standard map in image encryption and watermarking
CN113099069B (zh) 基于三维螺旋模型的多图像加密方法
CN113114870B (zh) 基于三维Zigzag模型的多图像加密方法
CN115002290B (zh) 基于分块镜像的图像置乱方法
CN116827509A (zh) 一种基于五维保守超混沌系统和位平面分割扩散的图像加密方法
CN109544435B (zh) Gyrator变换混沌随机相位编码数字图像加密方法
CN111682932A (zh) 一种基于混合混沌映射的单轮图像加密方法
CN116582623A (zh) 基于混沌系统及dna动态编码的彩色图像加密方法
Mohamed et al. Hybrid watermarking scheme for copyright protection using chaotic maps cryptography
CN111127292B (zh) 基于立体置乱模型和分数阶傅里叶变换的多图像加密方法
CN110418028B (zh) 基于级联变换的图像加密方法及装置
CN109214199B (zh) 一种图像加密方法、系统和解密方法、系统
CN113344762A (zh) 基于afd自适应分解的双重置乱图像加密方法
CN112288757A (zh) 一种基于数据打包技术的加密域图像分割优化方法
Jagadeesh et al. A new image scrambling scheme through chaotic permutation and geometric grid based noise induction
Kester et al. A hybrid image cryptographic and spatial digital watermarking encryption technique for security and authentication of digital images
CN114157774B (zh) 一种基于量子Baker映射和正弦混沌化模型的图像加密方法

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant