CN107071222A - A kind of image file encryption and decryption approaches of embedded spectral information - Google Patents

A kind of image file encryption and decryption approaches of embedded spectral information Download PDF

Info

Publication number
CN107071222A
CN107071222A CN201710197455.0A CN201710197455A CN107071222A CN 107071222 A CN107071222 A CN 107071222A CN 201710197455 A CN201710197455 A CN 201710197455A CN 107071222 A CN107071222 A CN 107071222A
Authority
CN
China
Prior art keywords
matrix
image
spectral information
gray
character
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.)
Granted
Application number
CN201710197455.0A
Other languages
Chinese (zh)
Other versions
CN107071222B (en
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.)
Xi'an Dragon Label Electronic Information Technology Co Ltd
Xian Jiaotong University
Original Assignee
Xi'an Dragon Label Electronic Information Technology Co Ltd
Xian Jiaotong University
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 Xi'an Dragon Label Electronic Information Technology Co Ltd, Xian Jiaotong University filed Critical Xi'an Dragon Label Electronic Information Technology Co Ltd
Priority to CN201710197455.0A priority Critical patent/CN107071222B/en
Publication of CN107071222A publication Critical patent/CN107071222A/en
Application granted granted Critical
Publication of CN107071222B publication Critical patent/CN107071222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Facsimile Transmission Control (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of image file encryption and decryption approaches of embedded spectral information, in spectroscopic data information is fused to the numerical matrix that image demodulation goes out with a matrix type, using numerical transformation by image RGB carry out gray scale layering, R is designated as respectively, tri- gray matrixs of G and B, each element of spectra values matrix is stored in the RGB gray matrixs of layering by numerical transformation order, the method that the spectral information so added in picture can only be decrypted by the present invention recalls numerical solution, and when irrelevant personage obtains picture, the information of shooting can only be seen from figure, it can't see hiding spectral information.In addition, image information and the curve of spectrum that the present invention is obtained are without being retained separately and compressing, but layering is merged into new type file, saves space so that the background process time is short.

Description

A kind of image file encryption and decryption approaches of embedded spectral information
【Technical field】
The invention belongs to image processing field, it is related to a kind of image file encryption and decryption approaches of embedded spectral information.
【Background technology】
With developing rapidly for network technology, while many acquisition of information, there is also information security technology hidden danger.Figure Important spatial information and object identification information as itself having, and in the picture can be anti-with the insertion of images match spectroscopic data The performance of the characteristic to light of some objects is answered, strengthens the identification of important objects information.And these important informations are once flowed into In irrelevant personnel's hand, will rapidly come forth disclosure, so administrative staff need to protect the interests of itself, this is required must Encryption technology must be applied on the image of this embedded spectral information.The original document of existing imaging sensor output is to scheme Based on information, and computer is input to data mode, this technology main target is intended to spectral information being embedded into image In file, a kind of bigger image information of new information content is obtained, conventional supervising device obtains and shows respective image, right The cognitive ability of object is limited.A kind of recently harvester of utilization spectral information augmented image information, can To obtain the image information and spectral information of object, so that the cognitive ability to object is improved, but existing analyzing and processing is soft Part is difficult to effectively extract this two category information.
【The content of the invention】
It is an object of the invention to the shortcoming for overcoming above-mentioned prior art, there is provided a kind of image file of embedded spectral information Encryption and decryption approaches, this method is for embedded in the light matched with image/video stream in the image that collects or video flowing Spectrum information so that Spectrum Data Fusion in view data so as to generation new file, wherein contain image and spectral mixing letter Breath.Using the encryption method of data mixing, when reading new file, original image or video is only seen, and embedded light Spectrum information will not be shown;When needing to read spectrum, using the decryption method in the technology of the present invention by image and spectral information Blended data draws out image and the curve of spectrum respectively.
To reach above-mentioned purpose, the present invention is achieved using following technical scheme:
A kind of image file encryption and decryption approaches of embedded spectral information, comprise the following steps:
1) encryption method:
1-1) input and read the color digital image that size is H × W pixels, color image into RGB three primary colours Gray values, the single gray matrixs of RGB tri- are designated as respectively, at the same read color digital image single-point spectral information number According to S.data, H × W image values matrix A and 2048 × 2 spectra values matrix B, wherein H ∈ [1,65535], W ∈ are obtained [1,65535];
The RGB three-primary colours numerical matrixs in A 1-2) are split into single gray matrix:
Imread (A), R=A (:,:,1);G=A (:,:,2);B=A (:,:,3)
Each gray matrix is still H × W monochrome image numerical matrix;Obtain the flat of each gray matrix numerical value , spectrum data matrix B first row is divided into three intervals, each interval matrix numerical value is transformed into gray level image pair In the rgb matrix answered, and no more than gray value corresponding with gray value progress;Again by the secondary series of spectrum matrix according to above-mentioned progress Operation;
Image after being encrypted;
2) decryption method:
2-1) input and read the digital picture that size is H × (W+2) pixel, obtain character matrix D, wherein H≤2000;
Character matrix D 2-2) is split into H × W character matrix E and 2 × 2000 character matrix F;
H × W character matrix E 2-3) is generated to the color digital image of H × W pixels by Image Rendering function;
2 × 2000 character matrix F 2-4) is generated into spectral information data S.date by Drawing of Curve function.
Further improve of the invention is:
The step 1-2) in, image information matrix A and spectral information matrix B are superimposed by the following method:
The row element value of image information matrix A is inputted to column vector Pi, the row element value of spectral information matrix B is inputted To column vector Pj, by column vector PiWith column vector PjIt is assigned to i × j character matrix C, wherein i=1,2,3 ..., H, j=1,2, 3 ..., H, and i and j is integer.
The step 2-2) in, character matrix D is split into H × W character matrix E and 2 × 2000 character matrix F's Specific method is as follows:
By each element value assignment of character matrix D H rows and W row to column vector Qi, by column vector QiEach value assignment Into H × W character matrix E;By each element value assignment of character matrix D W+1 row and W+2 row to column vector Qj, By column vector QjEach value assignment into 2 × 2000 character matrix F;Wherein i=1,2,3 ..., H, j=1,2,3 ..., H, And i and j is integer.
Compared with prior art, the invention has the advantages that:
Good confidentiality of the present invention, is mainly reflected in spectroscopic data information and is fused to the number that image demodulation goes out with a matrix type In value matrix, using numerical transformation by image RGB carry out gray scale layering, tri- gray matrixs of R, G and B are designated as respectively, by light Each element of spectrum numerical matrix is stored in the RGB gray matrixs of layering by numerical transformation order, is added in such picture The method that can only be decrypted by this patent of spectral information numerical solution is recalled, and when irrelevant personage obtains picture, only The information of shooting can be seen from figure, hiding spectral information is can't see.In addition, the image information and spectrum that the present invention is obtained are bent Line is without being retained separately and compressing, but layering is merged into new type file, saves space so that the background process time It is short.
【Brief description of the drawings】
Fig. 1 is the flow chart of encryption method of the present invention;
Fig. 2 is the flow chart of decryption method of the present invention.
【Embodiment】
The present invention is described in further detail below in conjunction with the accompanying drawings:
Referring to Fig. 1 and Fig. 2, the image file encryption and decryption approaches of the embedded spectral information of the present invention, it is characterised in that bag Include following steps:
1) encryption method:
1-1) input and read the color digital image that size is H × W pixels, color image into RGB three primary colours Gray values, the single gray matrixs of RGB tri- are designated as respectively, at the same read color digital image single-point spectral information number According to S.data, H × W image values matrix A and 2048 × 2 spectra values matrix B, wherein H ∈ [1,65535] W ∈ are obtained [1,65535];
The RGB three-primary colours numerical matrixs in A 1-2) are split into single gray matrix:
Imread (A), R=A (:,:,1);G=A (:,:,2);B=A (:,:,3);
Every a gray matrix be still H × W monochrome image numerical matrix.Obtain the flat of each gray matrix numerical value , spectrum data matrix B first row is divided into three intervals, each interval matrix numerical value is transformed into gray level image pair In the rgb matrix answered, and no more than gray value corresponding with gray value progress.Again by the secondary series of spectrum matrix according to above-mentioned progress Operation.
Image after being encrypted.
2) decryption method:
2-1) input and read the digital picture that size is H × (W+2) pixel, obtain character matrix D, wherein H≤2000;
Character matrix D 2-2) is split into H × W character matrix E and 2 × 2000 character matrix F, specific method is such as Under:
By each element value assignment of character matrix D H rows and W row to column vector Qi, by column vector QiEach value assignment Into H × W character matrix E;By each element value assignment of character matrix D W+1 row and W+2 row to column vector Qj, By column vector QjEach value assignment into 2 × 2000 character matrix F;Wherein i=1,2,3 ..., H, j=1,2,3 ..., H, And i and j is integer.
H × W character matrix E 2-3) is generated to the color digital image of H × W pixels by Image Rendering function;
2 × 2000 character matrix F 2-4) is generated into spectral information data S.date by Drawing of Curve function.
Fig. 1, while obtaining the spectral information of image information and matching, extracts the file of picture format and is decoded into number According to form, spectral information can save as data mode in itself, and both the above information is stored onto computer with data mode, New file type is rearranged into using data matrix, and is the new file file designation of the blended data.
The technological thought of above content only to illustrate the invention, it is impossible to which protection scope of the present invention is limited with this, it is every to press According to technological thought proposed by the present invention, any change done on the basis of technical scheme each falls within claims of the present invention Protection domain within.

Claims (3)

1. a kind of image file encryption and decryption approaches of embedded spectral information, it is characterised in that comprise the following steps:
1) encryption method:
1-1) input and read the color digital image that size is H × W pixels, color image into the ash of RGB three primary colours Number of degrees value, is designated as the single gray matrixs of RGB tri- respectively, while reading the single-point spectral information data of color digital image S.data, obtains H × W image values matrix A and 2048 × 2 spectra values matrix B, wherein H ∈ [1,65535], W ∈ [1,65535];
The RGB three-primary colours numerical matrixs in A 1-2) are split into single gray matrix:
Imread (A), R=A (:,:,1);G=A (:,:,2);B=A (:,:,3)
Each gray matrix is still H × W monochrome image numerical matrix;Being averaged for each gray matrix numerical value is obtained, will Spectrum data matrix B first row is divided into three intervals, and it is corresponding that each interval matrix numerical value is transformed into gray level image In rgb matrix, and no more than gray value corresponding with gray value progress;The secondary series of spectrum matrix is grasped according to above-mentioned again Make;
Image after being encrypted;
2) decryption method:
2-1) input and read the digital picture that size is H × (W+2) pixel, obtain character matrix D, wherein H≤2000;
Character matrix D 2-2) is split into H × W character matrix E and 2 × 2000 character matrix F;
H × W character matrix E 2-3) is generated to the color digital image of H × W pixels by Image Rendering function;
2 × 2000 character matrix F 2-4) is generated into spectral information data S.date by Drawing of Curve function.
2. the image file encryption and decryption approaches of embedded spectral information according to claim 1, it is characterised in that described Step 1-2) in, image information matrix A and spectral information matrix B are superimposed by the following method:
The row element value of image information matrix A is inputted to column vector Pi, the row element value of spectral information matrix B is inputted to row Vectorial Pj, by column vector PiWith column vector PjIt is assigned to i × j character matrix C, wherein i=1,2,3 ..., H, j=1,2, 3 ..., H, and i and j is integer.
3. the image file encryption and decryption approaches of embedded spectral information according to claim 1, it is characterised in that described Step 2-2) in, character matrix D is split into H × W character matrix E and 2 × 2000 character matrix F specific method such as Under:
By each element value assignment of character matrix D H rows and W row to column vector Qi, by column vector QiEach value assignment to H In × W character matrix E;By each element value assignment of character matrix D W+1 row and W+2 row to column vector Qj, will arrange Vectorial QjEach value assignment into 2 × 2000 character matrix F;Wherein i=1,2,3 ..., H, j=1,2,3 ..., H, and i It is integer with j.
CN201710197455.0A 2017-03-29 2017-03-29 A kind of image file encryption and decryption approaches being embedded in spectral information Active CN107071222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710197455.0A CN107071222B (en) 2017-03-29 2017-03-29 A kind of image file encryption and decryption approaches being embedded in spectral information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710197455.0A CN107071222B (en) 2017-03-29 2017-03-29 A kind of image file encryption and decryption approaches being embedded in spectral information

Publications (2)

Publication Number Publication Date
CN107071222A true CN107071222A (en) 2017-08-18
CN107071222B CN107071222B (en) 2019-02-01

Family

ID=59618299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710197455.0A Active CN107071222B (en) 2017-03-29 2017-03-29 A kind of image file encryption and decryption approaches being embedded in spectral information

Country Status (1)

Country Link
CN (1) CN107071222B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452688A (en) * 2021-06-24 2021-09-28 山东三未信安信息科技有限公司 Image encryption and decryption method and device based on SM4 and SM2 algorithms
CN115230359A (en) * 2022-09-22 2022-10-25 江苏铨通印数字印刷有限公司 Intelligent digital printing anti-counterfeiting mark generation and use method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103884427A (en) * 2014-03-11 2014-06-25 清华大学 Hyperspectral and high-spatial-resolution image obtaining method and device
US20150268017A1 (en) * 2014-03-24 2015-09-24 Triple D Tracker Encrypted spectral taggant for a cartridge
CN106454076A (en) * 2016-09-26 2017-02-22 西安交通大学 Collection apparatus for enhancing object image information by using spectral information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103884427A (en) * 2014-03-11 2014-06-25 清华大学 Hyperspectral and high-spatial-resolution image obtaining method and device
US20150268017A1 (en) * 2014-03-24 2015-09-24 Triple D Tracker Encrypted spectral taggant for a cartridge
CN106454076A (en) * 2016-09-26 2017-02-22 西安交通大学 Collection apparatus for enhancing object image information by using spectral information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
方海、周诠: "多层嵌入的多光谱图像可逆信息隐藏算法", 《万方数据库》 *
魏峰、何明一、梅少辉: "空间一致性邻域保留嵌入的高光谱数据特征提取", 《万方数据库》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452688A (en) * 2021-06-24 2021-09-28 山东三未信安信息科技有限公司 Image encryption and decryption method and device based on SM4 and SM2 algorithms
CN113452688B (en) * 2021-06-24 2022-07-08 山东三未信安信息科技有限公司 Image encryption and decryption method and device based on SM4 and SM2 algorithms
CN115230359A (en) * 2022-09-22 2022-10-25 江苏铨通印数字印刷有限公司 Intelligent digital printing anti-counterfeiting mark generation and use method

Also Published As

Publication number Publication date
CN107071222B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
Fridrich Steganography in digital media: principles, algorithms, and applications
US20080089554A1 (en) Device and method for digitally watermarking an image with data
US20030072037A1 (en) System and method for imprinting a digital image with an identifier using black metamers
Mehboob et al. A stegnography implementation
CN104115481A (en) Spectral image processing
CN106911876A (en) For the method and apparatus of output image
Eltahir et al. High rate video streaming steganography
EP1439716A1 (en) Spectrum and color reproduction system
KR101341482B1 (en) Network photographing apparatus having a partial encryption function
CN102665029A (en) Gradient learning-based method for amplification of super-resolution image
CN107071222B (en) A kind of image file encryption and decryption approaches being embedded in spectral information
CN105427268A (en) Medium-long-wave dual-waveband infrared image feature level color fusion method
Murakami et al. Hybrid-resolution spectral video system using low-resolution spectral sensor
Toet Colorizing single band intensified nightvision images
Alwan et al. Color image steganography in YCbCr space
Madhu et al. Image steganography: 2-bit XOR algorithm used in YCbCr color model with crypto-algorithm
CN111815548B (en) Medium-long wave double-band infrared image fusion method
Chen et al. Skin‐color correction method based on hue template mapping for wide color gamut liquid crystal display devices
Crichton et al. Skin chromaticity gamuts for illumination recovery
CN107392833A (en) A kind of adding method and adding set of the picture watermark based on smart machine
Li et al. Transferring Colours to Grayscale Images by Locally Linear Embedding.
US20060001676A1 (en) Image processing method
Chang et al. Distortion-free data embedding scheme for high dynamic range images
Horiuchi et al. Colorization for monochrome image with texture
Li Image fusion based on color transfer technique

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