This application is based on application No. 2002-129993 filed in Japan, the contents of which are hereby incorporated by reference.
1. Field of the Invention
The present invention relates to a technique of encrypting image data.
2. Description of the Background Art
In recent years, as data communication technologies using a network develop, transmission of information with image data is more frequently performed. On the other hand, assurance of security of information in data communication using a network is regarded as important.
Consequently, a technique of protecting image data is demanded so that the image data is not leaked to an indefinite number of people.
The present invention is directed to an image encrypting method of encrypting image data.
According to the present invention, the image encrypting method comprises the steps of: deriving a plurality of weighted coefficients from image data to express the image data by a predetermined basis function and the plurality of weighted coefficients; setting a part of the basis function and the plurality of weighted coefficients as key data and generating a first file including the key data; and generating a second file including data of the basis function and the plurality of weighted coefficients except the key data.
With the method, the image data can be protected.
According to an aspect of the present invention, the key data is a key coefficient as one of the plurality of weighted coefficients, and the second file includes alternate data of the key coefficient, which is different from a value of the key coefficient.
Since the alternate data is included in the second file and accurate image data cannot be reproduced only by the second file, the image data can be properly protected.
According to another aspect of the present invention, the image encrypting method further comprises the step of accepting information to be provided as a digital watermark in an image, wherein the alternate data is generated on the basis of the key coefficient and the information.
Thus, the information can be protected.
The present invention is also directed to an image decrypting method of decrypting image data.
According to the present invention, an image decrypting method comprises the steps of: obtaining key data from a first file including the key data as a part of a predetermined basis function and a plurality of weighted coefficients for expressing image data; obtaining data from a second file including data of the basis function and the plurality of weighted coefficients except the key data; and reproducing the image data on the basis of the key data obtained from the first file and the data obtained from the second file.
Consequently, the protected image data can be viewed.
The present invention is also directed to a computer program product.
The present invention is also directed to an image encrypting apparatus.
The present invention is also directed to an image decrypting apparatus.
Therefore, an object of the present invention is to provide a technique capable of protecting image data.
These and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings.
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.
1-1. System Configuration
The MFP 2 has a function of data communication performed via the network 3 and can transmit/receive image data and the like to/from the other MFP 2. Further, the MFP 2 has the function of encrypting image data used for data communication and decrypting the encrypted image data.
At the time of transmitting image data via the network 3, the MFP 2 as a transmitter encrypts image data and transmits an encrypted file as a result of the encryption. The MFP 2 as a receiver decrypts the received encrypted file to reproduce the original image data. In the following, a case in which an MFP 2a functions as an image encrypting apparatus and an MFP 2b functions as an image decrypting apparatus will be described. However, the present invention is not limited to that case. There may be a case in which the MFP 2b functions as an image encrypting apparatus and the MFP 2a functions as an image decrypting apparatus.
Although only two MFPs 2 are drawn in
1-2. Configuration of MFP
In the lower part of the body of the MFP 2, a paper tray 28 from which a recording sheet is supplied to the printer part 24 is disposed. In the center part of the body, an ejection tray 29 to which a recording sheet printed by the printer part 24 is ejected is disposed. In the upper part of the body, a top face cover 27 which can be opened and has the function of an original feeder for feeding an original to the scanner part 23 is provided.
Further, in the MFP 2, a data communication part 25 for transmitting/receiving various data via the network 3 and a card I/F 26 into which a memory card 9 as an external recording medium can be inserted are provided. The card I/F 26 writes various data into the memory card 9 and reads data recorded on the memory card 9.
The data communication part 25 has a network I/F and is connected to the network 3 via the network I/F so as to be able to transmit/receive various data to/from external devices. With the configuration, the MFP 2 can transmit image data obtained by the scanner part 23 or the like to external devices via the network 3 and receive image data transmitted from the external devices.
The operation panel 21 has a plurality of operation buttons 21a and a color liquid crystal display 21b. The display 21b has the function of a touch panel so that the user can directly operate on the screen. The user can enter settings of reading of an original, a transmission mode of image data, and the like to the MFP 2 via the operation buttons 21a and the display 21b as a touch panel while checking data displayed on the display 21b.
The MFP 2 has, as image data transmission modes, a normal transmission mode of transmitting image data as it is which is obtained by the scanner part 23 and an encryption transmission mode of transmitting an encrypted file obtained by encrypting image data. One of the transmission modes can be selected via the operation panel 21.
The printer part 24 prints a color image on a recording sheet supplied from the paper tray 28 on the basis of image data obtained by the scanner part 23, image data received via the data communication part 25, and the like.
The scanner part 23 photoelectrically reads image information from an original such as a photograph, characters or a picture and generates image data.
In the scanner part 23, two carriages (a first carriage 201 and a second carriage 202 ) moving along guide rails (not shown) provided in the horizontal direction are disposed. The first carriage 201 has a built-in light source 211 for illuminating an original 8 placed on a contact glass 206 and a first mirror 212 for reflecting light reflected from the original 8 illuminated with light from the built-in light source 211 in the horizontal direction. On the other hand, the second carriage 202 has a second mirror 213 for reflecting light reflected from the first mirror 212 downward, and a third mirror 214 for further reflecting the reflected light from the second mirror 213 to the horizontal direction.
A lens 203 and a CCD 204 are disposed in proper positions in the lower part of the scanner part 23. The CCD 204 has three line sensors of different read wavelengths. The three line sensors correspond to the colors R, G, and B in a one-to-one corresponding manner. Therefore, the CCD 204 can obtain values of the colors R, G, and B as values of pixels.
At the time of reading the original 8, the first carriage 201 is driven by a stepping motor (not shown) to scan the original face while repeating movement in the horizontal direction of one line and stop. On the other hand, the second carriage 202 is driven so that the optical path length of reflected light from the original face to the CCD 204 becomes constant. In a stop state during the scan, reflection light of one line is received by each of the three line sensors of the CCD 204 and the values of the R, G, an B colors are obtained.
In a closed state, the top face cover 27 is disposed so as to cover the top face of the contact glass 206 of the scanner part 23. It prevents light (fixed light) from outside of the apparatus from entering the scanner part 23 at the time of reading the original 8. Whether the top face cover 27 is in a closed state or opened state is detected by top face cover sensors 207 provided the top face of the top face cover 27 and the top face of the scanner part 23. The top face cover sensors 207 detect the state of the top face cover 27 by detecting whether the sensors contact each other or not.
In the configuration shown in
The built-in light source 211 in the scanner part 23 and a driving system (not shown in
The CPU 31, ROM 32, and RAM 33 realize various functions of software. Concretely, the CPU 31 executes computing processes while using the RAM 33 as a work area in accordance with the program 321 stored in the ROM 32, thereby realizing the various functions. The program 321 can be read from the memory card 9 or downloaded from a predetermined server memory device connected to the network 3 via the data communication part 25 and stored into the ROM 32. The MFP 2 functions as the image encrypting apparatus or image decrypting apparatus by the computing processes of the CPU 31 according to the program 321.
1-3. Image Encrypting Apparatus
First, while emitting light from the built-in light source 211, an original is scanned to obtain image data of an original (hereinafter, referred to as “original image data”). Specifically, the face of an original is irradiated with the built-in light source light line by line and light reflected from the irradiated face of the original is received by the CCD 204 via the plurality of minors 212 to 214 and the lens 203. An image signal from the CCD 204 is converted to digital data by the A/D converter 205 and the digital data is transmitted to the RAM 33. The reading operation is performed on the whole face of the original, thereby finally storing original image data 51 into the RAM 33 (step Si). The light emitted from the built-in light source 211 at the time of obtaining the original image is controlled so that its spectral distribution is maintained uniform.
If the top face cover 27 is in an open state at the time of obtaining the original image data 51, fixed light on the outside of the apparatus enters the scanner part 23 and the original image data 51 is influenced by the fixed light. When the original image data 51 is influenced by fixed light, precise computation cannot be performed in the following computation. Consequently, when the top face cover 27 is in an open state before reading of the original, a screen showing an instruction to close the top face cover 27 is displayed on the display 21b. After the top face cover 27 is closed by the user, the original image data 51 is obtained. Therefore, the original image data 51 is obtained as image data derived with illumination light which is only the built-in light source light.
After the original image data 51 is stored in the RAM 33, by the object color component deriving unit 311 of the image encrypting unit 310, pixel values expressed in RGB values of the original image data 51 are converted to tristimulus values (XYZ values) in the XYZ color system by a predetermined matrix computation in which the characteristics of the CCD 204 are considered. Further, by using basis function data 53 including a predetermined basis function, spectral reflectance of the original is obtained from the original image data 51 converted to the XYZ values. The principle of obtaining the spectral reflectance of the original will be described hereinafter.
First, the wavelength of a visible range is set as λ and the spectral distribution of illumination light with which the original is illuminated is set as E(λ), the spectral distribution E(λ) is expressed as follows by using three basis functions E1(λ), E2(λ), and E3(λ) and weighted coefficients ε1, ε2, and ε3.
Similarly, when spectral reflectance in a position on an original corresponding to a pixel (hereinafter, referred to as “target pixel”) is set as S(λ), the spectral reflectance S(λ) is expressed as follows by using three basis functions S1(λ), S2(λ), and S3(λ) and weighted coefficients σ1, σ2, and σ3.
Therefore, light I(λ) entering the target pixel in the CCD 204 is expressed as follows.
When three stimulus values of X, Y, and Z of the target pixel are set as ρX, ρY, and ρZ and color matching functions of the XYZ color system are set as RX(λ), RY(λ), and RZ(λ), ρX, ρY, and ρZ are expressed as follows.
ρX=∫RX(λ)I(λ)dλ
ρY=∫RY(λ)I(λ)dλ Equation 4
ρZ=∫RZ(λ)I(λ)dλ
That is, when a stimulus value regarding any of X, Y, and Z of the target pixel (hereinafter, referred to as “target stimulus value”) is set as ρC and the color matching function corresponding to the target stimulation value is set as RC(λ), the value ρC can be expressed as follows.
In Equation 5, the basis functions Ei(λ) and Sj(λ) and the color matching function Rc(λ) are predetermined functions. Since the original is irradiated with only the built-in light source light of uniform intensity irrespectively of the position on the original, the three weighted coefficients εi of the spectral distribution E(λ) of the illumination light are values preliminarily obtained by measurement. The information is stored in advance in the ROM 32 and RAM 33. Among the information, the basis function Ei(λ) for expressing the spectral distribution E(λ) of the illumination light and the weighted coefficient εi are stored as built-in light source data 52. The basis function Sj(λ) for expressing the spectral reflectance S(λ) of the original is stored as the basis function data 53.
Therefore, the unknown values in Equation 5 are only the three weighted coefficients σ1, σ2, and σ3. Equation 5 can be obtained with respect to each of the three stimulus values ρX, ρY, and ρZ in the target pixel. By solving the three equations, the three weighted coefficients σ1, σ2, and σ3 can be obtained.
By substituting the three weighted coefficients σ1, σ2, and σ3 and basis function Sj(λ) obtained for Equation 2, the spectral reflectance S(λ) in the position on the original corresponding to the target pixel can be expressed. Therefore, to obtain the weighted coefficients σ1, σ2, and σ3 substantially corresponds to obtain the spectral reflectance S(λ) in the position on the original corresponding to the target pixel.
On the basis of the principle of obtaining the spectral reflectance of an original, the weighted coefficients σ1, σ2, and σ3 in each pixel in the original image data 51 are obtained by the object color component deriving unit 311. The obtained weighted coefficients σ1, σ2, and σ3 of each pixel are stored as object color component data 54 in the RAM 33 (step S2).
After the object color component data 54 is obtained, serial numbers are obtained from the serial number generating unit 320 by the image encrypting unit 310 (step S3). The serial numbers are generated each scan of the original by monitoring the operation of the scanner part 23 by the serial number generating unit 320, so that a serial number is a peculiar number of each scan. That is, a serial number is a number peculiar to the original image data 51.
Subsequently, a key file 61 is generated by the key file generating unit 312 in the image encrypting unit 310. Concretely, a file including a serial number 71 obtained by the serial number generating unit 320 and the basis function data 53 used to derive the object color component data 54 is generated as the key file 61. The generated key file 61 is stored in the fixed disk 35 (step S4).
Subsequently, an encrypted file is generated by the encrypted file generating unit 313 in the image encrypting unit 310. Concretely, a file including a serial number 72 obtained by the serial number generating unit 320 and the obtained object color component data 54 is generated as an encrypted file 62. The generated encrypted file 62 is stored in the fixed disk 35 in a manner similar to the key file 61 (step S5).
In the case of reproducing the original image data 51 from the weighted coefficients σ1, σ2, and σ3 in a manner reverse to the method of obtaining the weighted coefficients σ1, σ2, and σ3 from the original image data 51, first, it is necessary to derive the spectral reflectance S(λ) of each pixel. To derive the spectral reflectance S(λ) of each pixel, the basis function Sj(λ) used at the time of obtaining the weighted coefficients σ1, σ2, and σ3 becomes necessary. That is, to reproduce the original image data 51, the basis function Sj(λ) and the three weighted coefficients σ1, σ2, and σ3 of each pixel are necessary. If any of them is missing, it is impossible to reproduce the original image data 51.
Any of the basis function Sj(λ) and the three weighted coefficients σ1, σ2, and σ3 is used as key data and a file including the key data is generated. Meanwhile, a file including data except the key data is generated. By managing the files separately, it becomes impossible to reproduce the original image data 51 and, substantially, the original image data 51 can be encrypted.
Consequently, as described above, in the image encrypting apparatus 2a of the preferred embodiment, the basis function Sj(λ) is used as key data, the key data is stored as the key file 61 and, on the other hand, the three weighted coefficients σ1, σ2, and σ3 are stored in the encrypted file 62. Thus, the original image data 51 can be encrypted by a relatively easy computation and the original image data 51 can be protected.
At the time of decrypting the encrypted file 62 (which will be described later), to enable only the simultaneously-generated key file 61 to be used, the same number as the serial numbers 71 and 72 peculiar to the original image data 51 is inserted in each of the encrypted file 62 and the key file 61. By referring to the inserted serial numbers, it can be identified that the encrypted file 62 and the key file 61 are simultaneously generated. Therefore, the serial number can be used as identification information so that association between the encrypted file 62 and the key file 61 can be clarified.
The encrypted file 62 generated as described above is transmitted to the image decrypting apparatus 2b designated by the user via the network 3 by the data communication part 25. On the other hand, the key file 61 is stored in the memory card 9 by the card I/F 26 and is separately sent to the manager or the like of the image decrypting apparatus 2b by mail or the like. Each of the encrypted file 62 and the key file 61 cannot reproduce the original image data 51 by itself. By transmitting the files to the image decrypting apparatus 2b by separate methods, even if there is an injustice during transmission of the encrypted file 62, the original image data 51 can be protected and leakage of information can be prevented.
1-4. Image Decrypting Apparatus
The operation of the image decrypting apparatus 2b for reproducing original image data by using the encrypted file 62 and key file 61 generated by the image encrypting apparatus 2a will be described.
As shown in
First, the encrypted file 62 to be decrypted is designated by the user through the operation panel 21. The instruction of designation is accepted by the file designation accepting unit 331, and the designated encrypted file 62 is read to the RAM 33 (step S11).
By the control of the file designation accepting unit 331, a screen for designating the key file 61 used for decryption is displayed on the display 21b of the operation panel 21 (step S12). While referring to the screen, the user designates the key file 61 corresponding to the designated encrypted file 62. If the key file 61 is not designated at this time, the original image data cannot be reproduced in following processes, so that an error message is displayed on the display 21b (step S15), and the process is finished.
On the other hand, when the key file 61 is designated, the instruction of the designation is accepted by the file designation accepting unit 331, and the designated key file 61 is read to the RAM 33. Whether the serial number 72 included in the designated encrypted file 62 and the serial number 71 included in the designated key file 61 coincide with each other or not is determined by the key file determining unit 332 (step S13).
As described above, in the image encrypting apparatus 2a, the same serial number as identification information is inserted in the encrypted file 62 and key file 61 which are simultaneously generated. That is, when the encrypted file 62 and the key file 61 are simultaneously generated, the serial numbers 72 and 71 are supposed to match with each other.
However, in the case where the serial numbers 72 and 71 do not match with each other, the encrypted file 62 and key file 61 are not simultaneously generated, which indicates that the key file 61 may be illegally obtained. In such a case, therefore, an error message is displayed on the display 21b (step S15) and the process is finished as it is.
In the case where the serial numbers as identification information do not match each other, by not performing the process of reproducing the original image data, propriety of the key file 61 can be checked and an illegal key file 61 can be prevented from being used.
On the other hand, if the serial numbers 72 and 71 match with each other, the original image data is reproduced by the reproduced image generating unit 333. Concretely, the basis function data 53 (basis function Sj(λ)) in the key file 61 is obtained and, further, the object color component data 54 (the weighted coefficients σ1, σ2, and σ3 of each pixel) in the encrypted file 62 is obtained. Computation of Equation 2 is executed on each pixel and the spectral reflectance S(λ) in a position on the original corresponding to each pixel is obtained. Further, computation of Equations 3 and 4 is performed and, finally, the tristimulus values ρX, ρY, and ρZ (XYZ values) of each pixel are obtained. In such a manner, reproduction image data 82 for reproducing the original image data is generated (step S14).
The color matching functions RX(λ), RY(λ), and RZ(λ) of the XYZ color system used for computation of Equations 3 and 4, the basis function Ei(λ) for expressing the spectral distribution E(λ) of illumination light, and the weighted coefficient εi are preliminarily stored in the ROM 32 and RAM 33. The basis function Ei(λ) and the weighted coefficient εi are stored as illumination component data 81 into the RAM 33 and the like. As the illumination component data 81, it is sufficient to use data indicative of a spectral distribution of the built-in light source light of the image decrypting apparatus 2b or a spectral distribution of a standard light source such as “CIE D 65 light source” and “CIE D 50 light source”. To precisely reproduce the original image data, it is preferable to use, as illumination component data 81, a spectral distribution of the built-in light source light of the image encrypting apparatus 2a. Consequently, the built-in light source data 52 of the image encrypting apparatus 2a may be separately sent to the image decrypting apparatus 2b so as to be used as the illumination component data 81 in the image decrypting apparatus 2b. Alternately, the built-in light source data 52 may be included in the key file 61 or encrypted file 62. The illumination component data 81 to be used can be designated by the user.
The reproduction image data 82 generated as described above is stored into the RAM 33 and, after that, displayed on the display 21b and, as necessary, printed on a recording sheet by the printer part 24. The user of the image decrypting apparatus 2b can view the original image data.
In the case where the serial number 71 of the key file 61 is fraudulently rewritten, there is the possibility that use of the fraudulent key file 61 cannot be prevented by a check of propriety of the key file 61 in step S13. However, even in such a case, when the basis function Sj(λ) in the key file 61 is not the one used when the encrypted file 62 is generated, it is impossible to generate the normal reproduction image data 82. Therefore, even in the case where the serial number 71 in the key file 61 is fraudulently rewritten, the original image data can be protected.
A second preferred embodiment of the present invention will now be described. In the first preferred embodiment, the basis function Sj(λ) out of the basis function Sj(λ) and the three weighted coefficients σ1, σ2, and σ3 in each pixel necessary to reproduce the original image data is used as key data. In the second preferred embodiment, the weighted coefficient σ1 as one of the weighted coefficients σ1, σ2, and σ3 is used as key data.
The network system 1 applied to the second preferred embodiment is similar to that shown in
2-1. Image Encrypting Apparatus
First, in a manner similar to the first preferred embodiment, the original image data 51 is obtained and stored in the RAM 33 (step S21). After that, the object color component data 54 (the weighted coefficients σ1, σ2, and σ3 of each pixel) is obtained on the basis of the basis function data (basis function Sj(λ)) or the like by the object color component deriving unit 311 (step S22). Serial numbers as identification information are obtained from the serial number generating unit 320 by the image encrypting unit 310 (step S23).
The weighted coefficient σ1 as one of the obtained weighted coefficients σ1, σ2, σ3 in each pixel is set as key data (hereinafter, referred to as “key coefficient data”). A file including the key coefficient data 55 and a serial number 71 as obtained is generated as the key file 63 by the key file generating unit 312. The generated key file 63 is stored in the fixed disk 35 (step S24).
Next, a screen for inquiring of whether an area to be encrypted in the original image data 51 is designated or not is displayed on the display 21b by the control of the encryption area accepting unit 340 (step S25). Although the whole area of the original image data 51 is set as an area to be encrypted in the first preferred embodiment, in the second preferred embodiment, an area to be encrypted can be designated by the user.
When it is selected to designate an area to be encrypted, by the control of the encryption area accepting unit 340, a screen for designating an area to be encrypted in the original image data 51 is displayed on the display 21b.
On the other hand, when it is selected not to designate an area to be encrypted, the screen shown in
After an area to be encrypted is determined, the value of the weighted coefficient σ1 as the key coefficient data 55 in the object color component data 54 (weighted coefficients σ1, σ2, and σ3 in each pixel) is changed by the alternate data generating unit 314 to thereby generate a new weighted coefficient σ1d. Concretely, by setting the value of the weighted coefficient σ1 to a predetermined value or a random value, the weighted coefficient σ1d having a value different from the value of the weighted coefficient σ1 is generated (step S28).
The weighted coefficient σ1d is therefore included in the object color component data in place of the original weighted coefficient σ1. In the following, the weighted coefficient σ1d will be referred to as a “dummy coefficient” and object color component data including a dummy coefficient will be referred to as “dummy object color component data” 56.
The value of the weighted coefficient σ1 is changed only with respect to a pixel corresponding to an area to be encrypted. Therefore, when an area to be encrypted is designated by the user, the original weighted coefficient σ1 and the dummy coefficient σ1d are different from each other only with respect to a pixel corresponding to the area to be encrypted but coincide with each other with respect to the other pixels.
Subsequently, a file including the serial number 72, dummy object color component data 56, and basis function data 53 is generated as an encryption file 64 by the encrypted file generating unit 313. Therefore, the encryption file 64 is a file including data of the basis function Sj(λ) and the three weighted coefficients σ1, σ2, and σ3 necessary for deriving a spectral reflectance S(λ) at each pixel, from which data the weighted coefficient σ1 as the key coefficient data 55 is excluded, and the dummy coefficient σ1d. The generated encryption file 64 is stored in the fixed disk 35 in a manner similar to the key file 63 (step S29).
The encryption file 64 and the key file 63 generated are transmitted to the image decrypting apparatus 2b by different methods in a manner similar to the first preferred embodiment.
It is now assumed that the original image data is reproduced from the encryption file 64 generated as described above. Since the encryption file 64 includes the basis function Sj(λ) and the three weighted coefficients σ1d, σ2, and σ3, by performing computation similar to that performed by the image decrypting apparatus 2b of the first preferred embodiment, some image data can be generated. However, since the dummy coefficient σ1d is included as one of the weighted coefficients, it is impossible to normally reproduce the original image data. Therefore, the original image data 51 is substantially encrypted, so that the original image data 51 can be protected.
In the case where the encryption area is designated, since the value of the dummy coefficient σ1d is different from the original weighted coefficient σ1 with respect to only the pixels corresponding to the area to be encrypted, only the area to be encrypted is substantially encrypted.
2-2. Image Decrypting Apparatus
The operation of the image decrypting apparatus 2b for reproducing the original image data by using the encryption file 64 and key file 63 in the image encrypting apparatus 2a will now be described.
First, designation of the encryption file 64 is accepted (step S31), designation of the key file 63 is accepted (step S32), and whether serial numbers match with each other or not is determined (step S33). In the processes, when the key file 63 is not designated (No in step S32) or serial numbers do not match (No in step S33), an error message is displayed (step S35), and the process is finished.
When serial numbers match with each other, original image data is reproduced by the reproduced image generating unit 333. Concretely, dummy object color component data 56 (the dummy coefficient σ1d and weighted coefficients σ2, and σ3 of each pixel) and the basis function data 53 (basis function Sj(λ)) in the encryption file 64 is obtained and further, the key coefficient data 55 (weighted coefficient σ1 of each pixel) in the key file 63 is obtained. The dummy coefficient σ1d is replaced with the weighted coefficient σ1, thereby obtaining the basis function Sj(λ) and weighted coefficients σ1, σ2, and σ3 of each pixel necessary to reproduce the original image data. By computation similar to that in the first preferred embodiment, the reproduction image data 82 reproducing the original image data is generated (step S34). Consequently, the user of the image decrypting apparatus 2b can view the original image data.
Even in the case where the encryption area is designated, the reproduction image data 82 is generated by a method similar to the above.
A third preferred embodiment of the present invention will now be described. Although original image data is protected in the foregoing preferred embodiments, in the third preferred embodiment, watermark information to form a digital watermark is hidden in an encrypted file and is protected.
The network system 1 applied to the third preferred embodiment is similar to that of
3-1. Image Encrypting Apparatus
First, in a manner similar to the foregoing preferred embodiments, the original image data 51 is obtained and stored in the RAM 33 (step S41). After that, on the basis of the basis function data 53 (basis function Sj(λ)) and the like, the object color component data 54 (weighted coefficients σ1, σ2, and σ3 of each pixel) is obtained by the object color component deriving unit 311 (step S42). By the image encrypting unit 310, serial numbers as identification information are obtained from the serial number generating unit 320 (step S43).
The weighted coefficient σ1 out of the obtained weighted coefficients σ1, σ2, and σ3 of each pixel is set as the key coefficient data 58. A file including the key coefficient data 58 and the obtained serial numbers 71 is generated as a key file 65 by the key file generating unit 312. The generated key file 65 is stored in the fixed disk 35 (step S44).
Subsequently, by the control of the watermark image accepting unit 350, a screen for accepting watermark information to form a digital watermark is displayed on the display 21b. On the basis of the watermark information input by the user, watermark image data 57 is generated by the watermark image accepting unit 350. For example, a character train desired to be hidden as a digital watermark is input by the operation buttons 21a or the like, and the watermark image data 57 is generated on the basis of the input character train and stored in the RAM 33. The watermark image data 57 is image data in which each pixel is expressed in binary form (1 bit). A bit of a pixel corresponding to the watermark information is set to “1” (step S45).
Such watermark information is not limited to a character train but may be any information as long as it can be expressed as binary image data such as illustration or symbol. It is also possible to prestore a plurality of pieces of the watermark image data 57 indicative of various watermark information in the fixed disk 35 or the like and select watermark information from the stored data.
After obtaining the watermark image data 57, the value of the weighted coefficient σ1 which became the key coefficient data 58 in the object color component data 54 is changed by an alternate data generating unit 314, thereby generating a new weighted coefficient σ1w serving as alternate data of the weighted coefficient σ1. The weighted coefficient σ1w is generated on the basis of the key coefficient data 58 and the watermark image data 57.
Concretely, attention is paid to one pixel in the watermark image data 57 as a target pixel. When “1” is set for the bit of the target pixel, the value of the weighted coefficient σ1 of a pixel in the object color component data 54 corresponding to the target pixel is multiplied by a predetermined change rate (for example, a value in a range from 0.9 to 1.1 except 1). By performing such computation on all of pixels, a weighted coefficients σ1w slightly different from the value of the weighted coefficient σ1 is generated. The value which is actually changed is only of a pixel corresponding to an area of which bit is set to “1” in the watermark image data 57 (step S46).
The new weighted coefficient σ1w corresponds to a coefficient obtained by synthesizing and hiding the watermark image data 57 into the weighted coefficient σ1. Consequently, in the following, the weighted coefficient σ1w will be referred to as a “watermark-synthesized coefficient” and object color component data including the watermark-added coefficient will be referred to as “synthesized object color component data” 59.
Subsequently, a file including the serial number 72, synthesized object color component data 59, and basis function data 53 is generated as an encrypted file 66 by the encrypted file generating unit 313. The encrypted file 66 is a file including the basis function Sj(λ), the watermark synthesized coefficient σ1w and the weighted coefficients σs and σ3. Watermark information is substantially hidden in the encrypted file 66. The generated encrypted file 66 is stored in the fixed disk 35 in a manner similar to the key file 65 (step S47).
The generated encrypted file 66 and key file 65 are transmitted to the image decrypting apparatus 2b by different methods in a manner similar to the foregoing preferred embodiments.
Assuming now that the original image data is reproduced only from the encrypted file 66 in which the watermark information is hidden by computation similar to that of the image decrypting apparatus 2b of the foregoing preferred embodiment. Since the encryption file 66 includes the basis function Sj(λ), the watermark synthesized coefficient σ1w, and the weighted coefficients σ2 and σ3, image data can be generated. Since the watermark synthesized coefficient σ1w is obtained by slightly changing the original weighted coefficient σ1, the change amount is a small change amount which cannot be identified by visual observation of the image data. Consequently, the generated image data is a reproduction of almost the same data as the original image data. On the other hand, it is impossible to visually observe the hidden watermark information, so that the watermark information (watermark image data) is substantially encrypted. Thus, the watermark information can be protected.
3-2. Image Decrypting Apparatus
The operation of the image decrypting apparatus 2b for extracting watermark information from the encrypted file 66 in which the watermark information generated as described above is hidden will now be described.
First, designation of the encryption file 64 is accepted (step S51), designation of the key file 63 is accepted (step S52), and whether serial numbers match with each other or not is determined (step S53). In the processes, when the key file 63 is not designated (No in step S52) or serial numbers do not match (No in step S53), an error message is displayed (step S56), and the process is finished.
When serial numbers match with each other, original image data is reproduced by the reproduced image generating unit 333. Prior to the reproduction, a process of extracting the watermark information hidden in the encrypted file 66 is performed. Concretely, the synthesized object color component data 59 (watermark synthesized coefficient σ1w and weighted coefficients σ2, and σ3 of each pixel) and the basis function data 53 (basis function Sj(λ)) in the encrypted file 66 is obtained. Further, the key coefficient data 58 (weighted coefficient σ1 of each pixel) in the key file 65 is obtained, and the difference between the watermark synthesized coefficient σ1w and the weighted coefficient σ1 is computed. Only pixels in which the difference occurs in the computation are extracted, and binary image data obtained by setting “1” in the bits of only the extracted pixels is generated.
Since the pixel having the difference between the watermark synthesized coefficient σ1w and the weighted coefficient σ1 is a pixel in which watermark information is hidden, image data to be generated (hereinafter, referred to as “reproduced watermark image”) corresponds to the original watermark image data. That is, the watermark information is extracted by such computation (step S54).
After the watermark information is extracted, by computation similar to the preferred embodiment, reproduction, image data which reproduces the original image data is generated from the basis function Sj(λ) and the three weighted coefficients σ1, σ2, and σ3 of each pixel. With respect to a pixel corresponding to a pixel in which “1” is set to the bit in the reproduced watermark image, predetermined XYZ values (predetermined color) are given. In such a manner, watermark synthesized reproduced image data 83 in which the watermark information is superimposed is generated (step S55).
A fourth preferred embodiment of the present invention will now be described. In the foregoing preferred embodiments, the image encrypting or decrypting process is performed in the MFP 2. Obviously, the process can be performed by a computer.
An MFP 2c for obtaining original image data is connected to a computer 4a. The configuration of the MFP 2c is similar to that described in the foregoing preferred embodiments except that the image encrypting or decrypting function is not provided.
In the preferred embodiment, original image data obtained by the MFP 2c is transmitted to the computer 4a via a transmission cable 5 or the like, and an encrypted file is generated in the computer 4a. The generated encrypted file is transmitted to a computer 4b via the network 3, and the encrypted file is decrypted by the computer 4b. That is, the computer 4a functions as an image encrypting apparatus and the computer 4b functions as an image decrypting apparatus. The computers 4a and 4b can be used for any of the processes in the first to third preferred embodiments.
For example, in the case of using the computers 4a and 4b shown in
At the time of performing the image encrypting process, the original image data 51, built-in light source data 52, serial numbers, and the like obtained from the MFP 2c are transferred to the computer 4a, and the computer 4a generates the key file 61 and the encrypted file 62 by using the data. At this time, the basis function data 53 is prestored in the fixed disk or the like of the computer 4a. The generated key file 61 and encrypted file 62 are transmitted to the computer 4b by different methods. On the other hand, at the time of performing the image decrypting process, the computer 4b generates the reproduction image data 82 of the original image data from the data.
In the case of using the computers 4a and 4b shown in
As described above, the image encrypting process or image decrypting process of the MFP 2 according to the first to third preferred embodiments can be performed by the computer 4. In this case, the general computer 4 can be used as an image encrypting apparatus or image decrypting apparatus.
5. Modifications
In the preferred embodiments, it has been described that the image encrypting apparatus is the MFP 2 or computer 4. For example, a digital camera can be used as the image encrypting apparatus. As a method of obtaining spectral reflectance of a subject from image data, for example, the method disclosed in Japanese Patent Application Laid-Open No. 2001-78202 filed by the applicant herein can be also used.
Although the weighted coefficient σ1 is used as key coefficient data in the second preferred embodiment, any of the weighted coefficients σ1, σ2, and σ3 may be used as key coefficient data. Two weighted coefficients out of the weighted coefficients σ1, σ2, and σ3 may be used as key coefficient data. Obviously, in such a case, two dummy coefficients are included in the dummy object color component data.
Although it has been described in the foregoing preferred embodiments that the CPU performs the computing processes in accordance with a program, thereby realizing various functions. Alternately, all or a part of the functions may be realized by a dedicated electric circuit. Particularly, by constructing a part which repeats computation by a logic circuit, high-speed computation is realized.
While the invention has been shown and described in detail, the foregoing description is in all aspects illustrative and not restrictive. It is therefore understood that numerous modifications and variations can be devised without departing from the scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
P2002-129993 | May 2002 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5809160 | Powell et al. | Sep 1998 | A |
6549653 | Osawa et al. | Apr 2003 | B1 |
6901514 | Iu et al. | May 2005 | B1 |
20050185820 | Yoshida et al. | Aug 2005 | A1 |
Number | Date | Country |
---|---|---|
7-222015 | Aug 1995 | JP |
8-023442 | Jan 1996 | JP |
9-130620 | May 1997 | JP |
9-181929 | Jul 1997 | JP |
10-191017 | Jul 1998 | JP |
2001-103291 | Apr 2001 | JP |
Number | Date | Country | |
---|---|---|---|
20030206633 A1 | Nov 2003 | US |