CN107071222B - A kind of image file encryption and decryption approaches being embedded in spectral information - Google Patents

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

Info

Publication number
CN107071222B
CN107071222B CN201710197455.0A CN201710197455A CN107071222B CN 107071222 B CN107071222 B CN 107071222B CN 201710197455 A CN201710197455 A CN 201710197455A CN 107071222 B CN107071222 B CN 107071222B
Authority
CN
China
Prior art keywords
matrix
image
gray
spectral information
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.)
Active
Application number
CN201710197455.0A
Other languages
Chinese (zh)
Other versions
CN107071222A (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 for being embedded in spectral information, in the numerical matrix that spectroscopic data information is fused to that image demodulation goes out with a matrix type, using numerical transformation by the carry out gray scale layering of image RGB, it is denoted as R respectively, tri- gray matrixs of G and B, each element of spectra values matrix is stored in the RGB gray matrix of layering by numerical transformation sequence, the spectral information being added in picture in this way can only recall numerical solution by the method that this patent is decrypted, and when non-related people 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 obtains do not have to be retained separately and compress, but layering is merged into new type file, space is saved, so that the background process time is short.

Description

A kind of image file encryption and decryption approaches being embedded in spectral information
[technical field]
The invention belongs to field of image processings, are related to a kind of image file encryption and decryption approaches for being embedded in spectral information.
[background technique]
With the rapid development of network technology, while many acquisition of information, there is also information security technology hidden danger.Figure As itself having important spatial information and object identification information, and in the picture can be anti-with the insertion of images match spectroscopic data The performance of the characteristic to light of certain objects is answered, the identification of important objects information is enhanced.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 requires must Encryption technology must be applied on the image of this insertion 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 image information that novel information content is bigger is obtained, conventional monitoring device obtains and show respective image, right The cognitive ability of object is limited.A kind of recently acquisition device using 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, however existing analysis processing is soft Part is difficult to effectively extract these two types of information.
[summary of the invention]
It is an object of the invention to overcome the above-mentioned prior art, a kind of image file for being embedded in spectral information is provided Encryption and decryption approaches, this method are embedded in and the matched light of image/video stream in acquired image or video flowing Spectrum information so that Spectrum Data Fusion in image data to the new file generated, wherein believing containing image and spectral mixing Breath.Using the encryption method of data mixing, the light that when reading new file, only sees original image or video, and be embedded in 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.
In order to achieve the above objectives, the present invention is achieved by the following scheme:
A kind of image file encryption and decryption approaches being embedded in spectral information, comprising the following steps:
1) encryption method:
The color digital image that size is H × W pixel 1-1) is inputted and read, RGB three primary colours are colored image into Gray values, be denoted as tri- individual gray matrixs of RGB respectively, while reading the single-point spectral information number of color digital image According to S.data, the image values matrix A of H × W and 2048 × 2 spectra values matrix B are obtained, wherein [1,65535] H ∈, W ∈ [1,65535];
The RGB three-primary colours numerical matrix in A 1-2) is split into single gray matrix:
Imread (A), R=A (::, 1);G=A (::, 2);B=A (::, 3)
Each gray matrix is still the monochrome image numerical matrix of H × W;Find out the flat of each gray matrix numerical value , the first row of spectrum data matrix B is divided into three sections, the matrix numerical value in each section is transformed into gray level image pair In the rgb matrix answered, carries out corresponding with gray value and be not more than gray value;Again by the secondary series of spectrum matrix according to above-mentioned progress Operation;
Obtain encrypted image;
2) decryption method:
2-1) inputting and reading size is H × (W+2) pixel digital picture, obtains character matrix D, wherein H≤2000;
Character matrix D 2-2) is split into the character matrix F of the character matrix E and 2 × 2000 of H × W;
The character matrix E of H × W 2-3) is generated to the color digital image of H × W pixel by Image Rendering function;
2 × 2000 character matrix F 2-4) is generated into spectral information data S.date by Drawing of Curve function.
A further improvement of the present invention lies in that:
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 input 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 the character matrix C of i × j, 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 the character matrix F's of the character matrix E and 2 × 2000 of H × W The specific method is as follows:
By each element value assignment of H row and the W column of character matrix D to column vector Qi, by column vector QiEach value assignment Into the character matrix E of H × W;By each element value assignment of the W+1 column of character matrix D and W+2 column 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 following advantages:
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 the carry out gray scale layering of image RGB, it is denoted as tri- gray matrixs of R, G and B respectively, by light Each element of spectrum numerical matrix is stored in the RGB gray matrix of layering by numerical transformation sequence, is added in such picture Spectral information can only by this patent decrypt method numerical solution is recalled, and when non-related people obtain picture when, only The information that shooting can be seen from figure, can't see hiding spectral information.In addition, the image information and spectrum that the present invention obtains are bent Line does not have to be retained separately and compress, but layering is merged into new type file, space is saved, so that the background process time It is short.
[Detailed description of the invention]
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.
[specific embodiment]
The invention will be described in further detail with reference to the accompanying drawing:
Referring to Fig. 1 and Fig. 2, the present invention is embedded in the image file encryption and decryption approaches of spectral information, which is characterized in that packet Include following steps:
1) encryption method:
The color digital image that size is H × W pixel 1-1) is inputted and read, RGB three primary colours are colored image into Gray values, be denoted as tri- individual gray matrixs of RGB respectively, while reading the single-point spectral information number of color digital image According to S.data, the image values matrix A of H × W and 2048 × 2 spectra values matrix B are obtained, wherein H ∈ [1,65535] W ∈ [1,65535];
The RGB three-primary colours numerical matrix in A 1-2) is split into single gray matrix:
Imread (A), R=A (::, 1);G=A (::, 2);B=A (::, 3);
Every the monochrome image numerical matrix that a gray matrix is still H × W.Find out the flat of each gray matrix numerical value , the first row of spectrum data matrix B is divided into three sections, the matrix numerical value in each section is transformed into gray level image pair In the rgb matrix answered, carries out corresponding with gray value and be not more than gray value.Again by the secondary series of spectrum matrix according to above-mentioned progress Operation.
Obtain encrypted image.
2) decryption method:
2-1) inputting and reading size is H × (W+2) pixel digital picture, obtains character matrix D, wherein H≤2000;
Character matrix D 2-2) is split into the character matrix F of the character matrix E and 2 × 2000 of H × W, specific method is such as Under:
By each element value assignment of H row and the W column of character matrix D to column vector Qi, by column vector QiEach value assignment Into the character matrix E of H × W;By each element value assignment of the W+1 column of character matrix D and W+2 column 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.
The character matrix E of H × W 2-3) is generated to the color digital image of H × W pixel 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 image information and matched spectral information, extract the file of picture format and being decoded into number According to form, spectral information itself can save as data mode, and both the above information is stored with data mode onto computer, It is rearranged into new file type using data matrix, and is named for the new File of the blended data.
The above content is merely illustrative of the invention's technical idea, and this does not limit the scope of protection of the present invention, all to press According to technical idea proposed by the present invention, any changes made on the basis of the technical scheme each falls within claims of the present invention Protection scope within.

Claims (3)

1. a kind of image file encryption and decryption approaches for being embedded in spectral information, which comprises the following steps:
1) encryption method:
The color digital image that size is H × W pixel 1-1) is inputted and read, color digital image is converted into RGB three primary colours Gray values, be denoted as tri- individual gray matrixs of RGB respectively, while reading the single-point spectral information number of color digital image According to S.data, the image values matrix A of H × W and 2048 × 2 spectra values matrix B are obtained, wherein [1,65535] H ∈, W ∈ [1,65535];
The RGB three-primary colours numerical matrix in A 1-2) is split into single gray matrix:
Imread (A), R=A (::, 1);G=A (::, 2);B=A (::, 3)
Each gray matrix is still the monochrome image numerical matrix of H × W;Being averaged for each gray matrix numerical value is found out, it will The first row of spectrum data matrix B is divided into three sections, and it is corresponding that the matrix numerical value in each section is transformed to gray level image In rgb matrix, carries out corresponding with gray value and be not more than gray value;The secondary series of spectrum matrix is grasped according to above-mentioned again Make;
Obtain encrypted image;
2) decryption method:
2-1) inputting and reading size is H × (W+2) pixel gray-scale image, obtains character matrix D, wherein H≤2000;
Character matrix D 2-2) is split into the character matrix F of the character matrix E and 2 × 2000 of H × W;
The character matrix E of H × W 2-3) is generated to the color digital image of H × W pixel 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 insertion spectral information according to claim 1, which is characterized in that described Step 1-2) in, image values matrix A and spectra values matrix B are superimposed by the following method:
The row element value of image values matrix A is input to column vector Pi, the row element value of spectra values matrix B is input to column Vector Pj, by column vector PiWith column vector PjIt is assigned to the character matrix C of i × j, 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 insertion spectral information according to claim 1, which is characterized in that described Step 2-2) in, character matrix D is split into the specific method of the character matrix F of the character matrix E and 2 × 2000 of H × W such as Under:
By each element value assignment of H row and the W column of character matrix D to column vector Qi, by column vector QiEach value assignment to H In the character matrix E of × W;By each element value assignment of the W+1 column of character matrix D and W+2 column to column vector Qj, will arrange Vector 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 CN107071222A (en) 2017-08-18
CN107071222B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (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
CN106454076B (en) * 2016-09-26 2019-04-12 西安交通大学 A kind of acquisition device using spectral information augmented image information

Also Published As

Publication number Publication date
CN107071222A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
Lukac et al. Color image processing: methods and applications
Kabulov et al. Algorithmic method of security of the Internet of Things based on steganographic coding
Fridrich Steganography in digital media: principles, algorithms, and applications
Al-Frajat et al. Hiding data in video file: An overview
US6697498B2 (en) Method and computer program product for hiding information in an indexed color image
US20080089554A1 (en) Device and method for digitally watermarking an image with data
WO2019092463A1 (en) Video image processing
EP1439716A1 (en) Spectrum and color reproduction system
KR101341482B1 (en) Network photographing apparatus having a partial encryption function
CN107071222B (en) A kind of image file encryption and decryption approaches being embedded in spectral information
Alwan et al. Color image steganography in YCbCr space
JP2014519727A (en) Efficient expression and processing method of color pixel data in digital pathological image
COŞKUN et al. A new digital image steganography algorithm based on visible wavelength
KR20190028046A (en) Historical studies method and system using augmented reality
CN107392833A (en) A kind of adding method and adding set of the picture watermark based on smart machine
US7724901B2 (en) Image processing method
CN111325652A (en) Information embedding method, information extracting method, information embedding device, information extracting device, information embedding equipment and computer readable storage medium
KR101603201B1 (en) Image key certification method and system using color histogram and texture information of image
Durdu A new reversible low-distortion steganography method that hides images into RGB images with low loss
JPH01292965A (en) Data synthesizing method
Pinto et al. Protection of JPEG compressed e-comics by selective encryption
Sallow et al. An Investigation for Steganography using Different Color System
Rajput et al. Cloud based image color transfer and storage in encrypted domain
Prabakaran et al. Dual Wavelet Transform Used in Color Image Steganography Method
KR101717079B1 (en) Image key certification method and system related to redundancy of color histogram information

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