JP2000232586A - Image coder and image decoder - Google Patents

Image coder and image decoder

Info

Publication number
JP2000232586A
JP2000232586A JP3086699A JP3086699A JP2000232586A JP 2000232586 A JP2000232586 A JP 2000232586A JP 3086699 A JP3086699 A JP 3086699A JP 3086699 A JP3086699 A JP 3086699A JP 2000232586 A JP2000232586 A JP 2000232586A
Authority
JP
Japan
Prior art keywords
image data
data
encoding
decoding
encoded
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
JP3086699A
Other languages
Japanese (ja)
Other versions
JP3808229B2 (en
Inventor
Masatake Omori
雅岳 大森
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP03086699A priority Critical patent/JP3808229B2/en
Publication of JP2000232586A publication Critical patent/JP2000232586A/en
Application granted granted Critical
Publication of JP3808229B2 publication Critical patent/JP3808229B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To conduct coding by providing an encryption coding means or the like that encodes data parts together with encryption coding after marker data in coding object image data so as to maintain compatibility between conventional coded image data and encrypted coded image data. SOLUTION: Whether or not a current coding mode is an 'encryption mode' is discriminated on the basis of a flag stored in a RAM 4. When the coding mode is the 'encryption mode', parts of the read image data are replaced with marker data stored in advance in a ROM 3. Thus, the head of the coding object image data is replaced with the marker data. Then the data of the replaced marker data are read and the processing of encoding the coding object image data is repeated till reading of all the coding object image data is finished in an encryption mode adopting encryption on the basis of prescribed key information.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像符号化装置及
び画像復号化装置に関し、特に、符号化対象画像データ
を符号化すると共に、秘匿モードに設定されている場合
は、前記符号化対象画像データの符号化の際に暗号化に
よる秘匿処理をも併せて行う画像符号化装置、及び、符
号化された復号化対象画像データを復号化すると共に、
当該復号化対象画像データが暗号化されている場合には
暗号解読処理をも併せて行う画像復号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding apparatus and an image decoding apparatus, and more particularly, to encoding of image data to be encoded and, when set to a secret mode, the image encoding apparatus. An image encoding device that also performs confidentiality processing by encryption when encoding data, and decodes the encoded image data to be decoded,
The present invention relates to an image decoding apparatus that performs a decryption process when the image data to be decrypted is encrypted.

【0002】[0002]

【従来の技術】通常、画像データの通信を行うときに、
第三者に対して内容を秘匿する必要がある場合は、送信
側から受信側に送信する画像データにパスワードを付帯
させて通知し、受信側は、受信した画像データを無条件
には出力しないで、メモリに蓄積しておき、受信側で入
力されたパスワードと、送信側から通知されたパスワー
ドとが一致した場合に限り、受信した画像データを出力
する、いわゆる親展通信機能を用いる。
2. Description of the Related Art Usually, when communicating image data,
If it is necessary to keep the contents confidential to a third party, a password is attached to the image data to be transmitted from the transmission side to the reception side, and a notification is given. The reception side does not unconditionally output the received image data. Therefore, a so-called confidential communication function of outputting received image data only when the password input on the receiving side matches the password notified from the transmitting side is used.

【0003】また、画像データの通信を行うときに、傍
受を考慮する場合は、画像データに対してスクランブル
をかけることにより出力した画像が判別できないように
する方法が種々提案されている。しかしながら、高い秘
匿性を得ようとするとアルゴリズムが複雑化したり、秘
匿処理用の大規模な回路を設けなければならない等の問
題点がある。
[0003] In addition, various methods have been proposed for scrambling image data so as to prevent the output image from being discriminated when interception is taken into account when communicating image data. However, in order to obtain high secrecy, there are problems that the algorithm becomes complicated and a large-scale circuit for concealment processing must be provided.

【0004】特開平8−107506号公報に記載され
た「通信装置」においては、2値画像符号化方式の国際
標準であるJBIG(Joint Bi-level Image experts Gr
oup)方式 (JIS X 4311: ISO/IEC 11544)のうちプログレ
ッシブモード(復号化時に段階的に低解像度から高解像
度へと画像が復元されていく符号化方式)に関する秘匿
方式について述べている。
[0004] In the "communication apparatus" described in Japanese Patent Application Laid-Open No. Hei 8-107506, JBIG (Joint Bi-level Image experts Gr), which is an international standard for binary image coding, is used.
oup) method (JIS X 4311: ISO / IEC 11544), which describes a concealment method for progressive mode (an encoding method in which an image is restored from a low resolution to a high resolution step by step during decoding).

【0005】当該通信装置においては、JBIG方式に
おける最低解像度レイヤに対し暗号化処理を施すように
している。JBIG方式では、復号化時には最低解像度
レイヤの復元画像を参照しながら処理を進め、1段階解
像度の高い画像を復元するため、最低解像度レイヤが暗
号化されていれば、暗号を平文化しない限り、次段の解
像度レイヤは正しく復号化することができず、さらに後
段の高解像度レイヤに関しても、それぞれの前段解像度
の画像を参照するため、その後の処理において画像を正
しく再生することが不可能となり、画像の秘匿を達成し
ている。
[0005] In the communication device, encryption processing is performed on the lowest resolution layer in the JBIG system. In the JBIG method, processing is performed with reference to the restored image of the lowest resolution layer at the time of decryption, and an image having a higher resolution by one step is restored. Therefore, if the lowest resolution layer is encrypted, unless the encryption is plaintexted, The next-stage resolution layer cannot be decoded correctly, and the subsequent high-resolution layer also refers to the image of the respective first-stage resolution, making it impossible to correctly reproduce the image in the subsequent processing. Achieving image concealment.

【0006】一方、符号化された画像データを復号化し
て元の画像データに復元する際には、符号化された画像
データが単に符号化されたものか、または、符号化され
ると共に暗号化されて秘匿処理をほどこされたものかを
正しく認識して、単に符号化された画像データについて
は、単に復号化し、暗号化を伴い符号化された画像デー
タについては、暗号の解読を伴う復号化を行う必要があ
る。
On the other hand, when decoding the encoded image data and restoring the original image data, the encoded image data is simply encoded, or is encoded and encrypted. Correctly coded image data, simply decode the coded image data, and decrypt the coded image data with decryption. Need to do.

【0007】そのため、符号化側から復号化側に符号化
画像データを渡す際には、当該符号化画像データが暗号
化されているか否かの情報を付帯させなければならな
い。具体的には、符号化側が、復号化側に渡す符号化画
像データに、暗号化されいるか否かを示す情報をヘッダ
情報として付加化するか、もしくは、符号化画像データ
の通信においては、送信側(符号化側)が、受信側(復
号化側)に送信する符号化画像データが暗号化されいる
か否かを示す情報をプロトコル信号により別途通知する
必要がある。
Therefore, when the encoded image data is passed from the encoding side to the decoding side, information as to whether or not the encoded image data has been encrypted must be attached. Specifically, the encoding side adds, to the encoded image data to be passed to the decoding side, information indicating whether or not the image is encrypted as header information, or transmits the encoded image data in the communication of the encoded image data. The side (encoding side) needs to separately notify a protocol signal of information indicating whether or not the encoded image data to be transmitted to the receiving side (decoding side) is encrypted.

【0008】それにより、受信側(復号化側)は、送信
側(符号化側)からの符号化画像データが暗号化されて
いないものであれば単に復号化し、暗号化されているも
のであれば、復号化すると共に所定の鍵情報に基づく暗
号解読処理により元の画像データを復元できる。
[0008] Thereby, the receiving side (decoding side) simply decrypts the encoded image data from the transmitting side (encoding side) if the encoded image data is not encrypted, and if the encoded image data is unencrypted, encrypts the image data. For example, the original image data can be restored by decryption and decryption processing based on predetermined key information.

【0009】[0009]

【発明が解決しようとする課題】しかし、符号化画像デ
ータのヘッダ情報に暗号化の有無を記述したり、符号化
画像データに付帯してプロトコル信号により暗号化の有
無を通知する場合、暗号化の有無の情報が画像データ本
体から分離していて、符号化画像データが暗号化されい
るかが容易に分かってしまう。
However, when the presence or absence of encryption is described in the header information of the encoded image data, or when the presence or absence of encryption is notified by a protocol signal accompanying the encoded image data, the encryption is performed. Since the presence / absence information is separated from the image data body, it is easy to determine whether the encoded image data is encrypted.

【0010】また、符号化画像データのファイルのヘッ
ダ情報に暗号化の有無を記述するための特別なビットを
設けたり、通信の場合には、プロトコル信号に暗号化の
有無を示す特別なデータを乗せる必要があるため、暗号
化していない符号化画像データとの互換性が無くなる
か、あるいは互換性が低下してしまうという問題があ
る。
[0010] Also, special bits for describing the presence or absence of encryption are provided in the header information of the file of the encoded image data, and in the case of communication, special data indicating the presence or absence of encryption is provided in the protocol signal. Since it is necessary to carry the data, there is a problem that compatibility with encoded image data that has not been encrypted is lost or compatibility is reduced.

【0011】一方、仮に、送信側(符号化側)から受信
側(復号化側)へ符号化画像データの暗号化の有無を通
知することなしに、受信側(復号化側)が暗号化された
符号化画像データを復元するためには、受信側(復号化
側)では、送信側(符号化側)からの符号化画像データ
は例外なく暗号化されたものであるとわかっている場合
にしか元の画像データを復元することができない。すな
わち、送信側(符号化側)からの符号化画像データが暗
号化されたものであるか否かを受信側(復号化側)が自
動的に判断して適応的に復号化を行うことができない。
On the other hand, if the transmitting side (encoding side) does not notify the receiving side (decoding side) of the presence / absence of encryption of the encoded image data, the receiving side (decoding side) is encrypted. In order to recover the encoded image data, the receiving side (decoding side) needs to know that the encoded image data from the transmitting side (encoding side) is encrypted without exception. Only the original image data can be restored. That is, the receiving side (decoding side) can automatically determine whether or not the encoded image data from the transmitting side (encoding side) is encrypted, and perform adaptive decoding. Can not.

【0012】本発明は係る事情に鑑みてなされたもので
あり、通常の符号化画像データと暗号化された符号化画
像データとの互換性を維持した符号化を行える画像符号
化装置、及び、その画像符号化装置が符号化した画像デ
ータの暗号化の有無を自動的に識別して元の画像データ
に正しく復元できる画像復号化装置を提供することを目
的とする。
The present invention has been made in view of the above circumstances, and has been made in consideration of the above circumstances, and an image encoding apparatus capable of performing encoding while maintaining compatibility between normal encoded image data and encrypted encoded image data, and It is an object of the present invention to provide an image decoding device which can automatically identify whether or not the image data encoded by the image encoding device is encrypted, and can correctly restore the original image data.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載の画像符号化装置は、符号化対象画
像データを符号化すると共に、秘匿モードに設定されて
いる場合は、前記符号化対象画像データの符号化の際に
暗号化による秘匿処理をも併せて行う画像符号化装置に
おいて、前記秘匿モードに設定されている場合は、前記
符号化対象画像データの一部を、所定のマーカデータに
置換するマーカ置換手段と、前記符号化対象画像データ
のうちの前記マーカデータまで、及び、当該マーカデー
タを通常モードで符号化する通常符号化手段と、前記符
号化対象画像データのうちの前記マーカデータ以後の部
分について暗号化を伴う符号化を行う秘匿符号化手段と
を備えたことを特徴とする。
In order to achieve the above object, an image encoding apparatus according to claim 1 encodes image data to be encoded, and when the image data is set to a secret mode, In an image encoding apparatus that also performs encryption processing when encoding the encoding target image data, when the encryption mode is set, a part of the encoding target image data is Marker replacement means for replacing the marker data with the marker data, up to the marker data in the coding target image data, and normal coding means for coding the marker data in a normal mode, And a secret encoding means for encoding the portion after the marker data with encryption.

【0014】請求項2に記載の画像符号化装置は、符号
化対象画像データを符号化すると共に、秘匿モードに設
定されている場合は、前記符号化対象画像データの符号
化の際に暗号化による秘匿処理をも併せて行う画像符号
化装置において、前記秘匿モードに設定されている場合
は、前記符号化対象画像データ中に、所定のマーカデー
タに挿入するマーカ挿入手段と、前記符号化対象画像デ
ータのうちの前記マーカデータまで、及び、当該マーカ
データを通常モードで符号化する通常符号化手段と、前
記符号化対象画像データのうちの前記マーカデータ以後
の部分について暗号化を伴う符号化を行う秘匿符号化手
段とを備えたことを特徴とする。
According to a second aspect of the present invention, the image encoding apparatus encodes the image data to be encoded, and when the mode is set to the secret mode, encrypts the image data at the time of encoding the image data to be encoded. In the image encoding apparatus that also performs the concealment process according to the above, when the concealment mode is set, marker insertion means for inserting predetermined marker data into the encoding target image data; Normal encoding means for encoding the marker data in the normal mode up to the marker data of the image data, and encoding with encryption for the part of the image data to be encoded subsequent to the marker data And a secret encoding means for performing

【0015】請求項3に記載の画像符号化装置は、請求
項1または2のいずれかに記載の画像符号化装置におい
て、前記マーカデータは、前記符号化対象画像データの
先端に位置することを特徴とする。
According to a third aspect of the present invention, in the image encoding apparatus of the first or second aspect, the marker data is located at a leading end of the encoding target image data. Features.

【0016】請求項4に記載の画像符号化装置は、請求
項1、2または3のいずれかに記載の画像符号化装置に
おいて、前記マーカデータは、複数ビットより成ること
を特徴とする。
According to a fourth aspect of the present invention, in the image encoding apparatus of the first, second or third aspect, the marker data comprises a plurality of bits.

【0017】請求項5に記載の画像復号化装置は、符号
化された復号化対象画像データを復号化すると共に、当
該復号化対象画像データが暗号化されている場合には暗
号解読処理をも併せて行う画像復号化装置において、前
記復号化対象画像データを後記マーカ検出手段が所定の
マーカデータを検出するまで通常モードで復号化する通
常復号化手段と、その通常復号化手段により復号化され
た画像データから前記マーカデータを検出するマーカ検
出手段と、そのマーカ検出手段により前記マーカデータ
が検出されると、それ以後、前記復号化対象画像データ
を暗号解読処理を伴う解読モードで復号化する解読復号
化手段とを備えたことを特徴とする。
According to a fifth aspect of the present invention, the image decoding apparatus decodes the encoded image data to be decoded and, when the image data to be decoded is encrypted, performs a decryption process. In an image decoding apparatus that performs the decoding together, a normal decoding unit that decodes the decoding target image data in a normal mode until a marker detection unit detects predetermined marker data, and a decoding unit that decodes the decoding target image data by the normal decoding unit. Marker detecting means for detecting the marker data from the decoded image data, and when the marker data is detected by the marker detecting means, thereafter, the decryption target image data is decrypted in a decryption mode involving a decryption process. Decoding means.

【0018】請求項6に記載の画像復号化装置は、符号
化された復号化対象画像データを復号化すると共に、当
該復号化対象画像データが暗号化されている場合には暗
号解読処理をも併せて行う画像復号化装置において、前
記復号化対象画像データを後記マーカ検出手段が所定の
マーカデータを検出されるまで通常モードで復号化する
通常復号化手段と、その通常復号化手段により復号化さ
れた画像データから前記マーカデータを検出するマーカ
検出手段と、そのマーカ検出手段により検出された前記
マーカデータを復号化後の画像データから除去するマー
カ除去手段と、前記マーカ検出手段により前記マーカデ
ータが検出されると、それ以後、前記復号化対象画像デ
ータを暗号解読処理を伴う解読モードで復号化する解読
復号化手段とを備えたことを特徴とする。
According to a sixth aspect of the present invention, the image decoding apparatus decodes the encoded image data to be decoded and, when the image data to be decoded is encrypted, also performs a decryption process. In the image decoding apparatus, the decoding device decodes the image data to be decoded in a normal mode until the marker detection unit detects predetermined marker data, and decodes the image data by the normal decoding unit. Marker detection means for detecting the marker data from the decoded image data, marker removal means for removing the marker data detected by the marker detection means from the decoded image data, and marker data by the marker detection means And decryption means for decrypting the decryption target image data in a decryption mode involving decryption processing thereafter. Characterized in that was.

【0019】請求項7に記載の画像符号化装置は、符号
化対象画像データを符号化すると共に、秘匿モードに設
定されている場合は、前記符号化対象画像データの符号
化の際に暗号化による秘匿処理をも併せて行う画像符号
化装置において、前記秘匿モードに設定されている場合
は、前記符号化対象画像データの一部を、特定図形デー
タに置換する特定図形置換手段と、前記符号化対象画像
データのうちの前記特定図形まで、及び、当該特定図形
を通常モードで符号化する通常符号化手段と、前記符号
化対象画像データのうちの前記特定図形以後の部分につ
いて暗号化を伴う符号化を行う秘匿符号化手段とを備え
たことを特徴とする。
According to a seventh aspect of the present invention, the image encoding apparatus encodes the image data to be encoded and, when set to a secret mode, encrypts the image data when encoding the image data to be encoded. In the image encoding device that also performs the concealment process according to the above, when the confidential mode is set, a part of the encoding target image data is replaced with specific figure data, Normal encoding means for encoding up to the specific graphic in the image data to be encoded and the specific graphic in the normal mode, and enciphering a portion of the image data to be encoded after the specific graphic. Secret encoding means for performing encoding.

【0020】請求項8に記載の画像符号化装置は、請求
項7に記載の画像符号化装置において、前記特定図形デ
ータは、前記符号化対象画像データの予め決められた特
定の位置に位置することを特徴とする。
According to an eighth aspect of the present invention, in the image encoding apparatus according to the seventh aspect, the specific graphic data is located at a predetermined specific position of the image data to be encoded. It is characterized by the following.

【0021】請求項9に記載の画像符号化装置は、請求
項7または8のいずれかに記載の画像符号化装置におい
て、前記特定図形置換手段は、複数の前記特定図形デー
タを前記符号化対象画像データ中に置換することを特徴
とする。
According to a ninth aspect of the present invention, in the image encoding apparatus according to any one of the seventh and eighth aspects, the specific graphic replacing means converts a plurality of the specific graphic data into the object to be coded. It is characterized in that it is replaced in the image data.

【0022】請求項10に記載の画像復号化装置は、符
号化された復号化対象画像データを復号化すると共に、
当該復号化対象画像データが暗号化されている場合には
暗号解読処理をも併せて行う画像復号化装置において、
前記復号化対象画像データを後記特定図形抽出手段が特
定図形データを抽出するまで通常モードで復号化する通
常復号化手段と、その通常復号化手段により復号化され
た画像データから前記特定図形データを抽出する特定図
形抽出手段と、その特定図形抽出手段により前記特定図
形データが抽出されると、それ以後、前記復号化対象画
像データを暗号解読処理を伴う解読モードで復号化する
解読復号化手段とを備えたことを特徴とする。
According to a tenth aspect of the present invention, an image decoding apparatus decodes encoded image data to be decoded,
When the image data to be decrypted is encrypted, an image decryption device that also performs decryption processing,
A normal decoding unit that decodes the decoding target image data in a normal mode until the specific figure extracting unit extracts specific figure data, and the specific figure data from the image data decoded by the normal decoding unit. A specific graphic extracting means to be extracted, and a decryption / decoding means for decrypting the decryption target image data in a decryption mode involving a decryption process after the specific graphic data is extracted by the specific graphic extracting means. It is characterized by having.

【0023】請求項11に記載の画像復号化装置は、請
求項10に記載の画像復号化装置において、前記特定図
形抽出手段は、前記復号化対象画像データの特定位置か
ら前記特定図形データを抽出することを特徴とする。
According to an eleventh aspect of the present invention, in the image decoding apparatus of the tenth aspect, the specific graphic extracting means extracts the specific graphic data from a specific position of the image data to be decoded. It is characterized by doing.

【0024】請求項12に記載の画像復号化装置は、符
号化された復号化対象画像データを復号化すると共に、
当該復号化対象画像データが暗号化されている場合には
暗号解読処理をも併せて行う画像復号化装置において、
前記復号化対象画像データを後記特定図形抽出手段が予
め決められた組み合わせの複数の特定図形データを抽出
するまで通常モードで復号化する通常復号化手段と、そ
の通常復号化手段により復号化された画像データから前
記複数の特定図形データを抽出する特定図形抽出手段
と、その特定図形抽出手段により前記複数の特定図形デ
ータが抽出されると、それ以後、前記復号化対象画像デ
ータを暗号解読処理を伴う解読モードで復号化する解読
復号化手段とを備えたことを特徴とする。
According to a twelfth aspect of the present invention, the image decoding apparatus decodes the encoded image data to be decoded,
When the image data to be decrypted is encrypted, an image decryption device that also performs decryption processing,
A normal decoding unit that decodes the decoding target image data in a normal mode until a specific graphic extraction unit extracts a plurality of specific graphic data of a predetermined combination, which is described later; A specific graphic extracting means for extracting the plurality of specific graphic data from the image data; and, when the plurality of specific graphic data is extracted by the specific graphic extracting means, the decryption processing of the decryption target image data is performed thereafter. Decoding means for decoding in the accompanying decoding mode.

【0025】[0025]

【発明の実施の形態】以下、添付図面を参照しながら、
本発明の実施の形態を詳細に説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG.
An embodiment of the present invention will be described in detail.

【0026】先ず、図1は、本発明の実施の形態に係る
通信端末装置としてのファクシミリ装置1のブロック構
成を示している。
First, FIG. 1 shows a block configuration of a facsimile apparatus 1 as a communication terminal apparatus according to an embodiment of the present invention.

【0027】同図において、ファクシミリ装置1は、シ
ステム制御部2、ROM3、RAM4、画像入力手段
5、画像出力手段6、符号化復号化部7、操作表示部
8、通信制御部9、モデム10、網制御部11、及び、
システムバス12により構成されている。
In FIG. 1, a facsimile apparatus 1 includes a system control unit 2, a ROM 3, a RAM 4, an image input unit 5, an image output unit 6, an encoding / decoding unit 7, an operation display unit 8, a communication control unit 9, a modem 10 , A network control unit 11, and
It is constituted by a system bus 12.

【0028】システム制御部2は、ROM3書き込まれ
た制御プログラムに従って、RAM4を作業領域として
使用しながら、装置各部を制御するマイクロコンピュー
タである。
The system control unit 2 is a microcomputer that controls each unit of the apparatus according to the control program written in the ROM 3 while using the RAM 4 as a work area.

【0029】ROM3は、前述したように、システム制
御部2が上記装置各部を制御するための制御プログラム
が記憶されているリードオンリメモリである。
As described above, the ROM 3 is a read-only memory in which a control program for the system control unit 2 to control each unit of the apparatus is stored.

【0030】RAM4は、前述したようにシステム制御
部2の作業領域として使用されるランダムアクセスメモ
リであり、符号化前の画像データや符号化後の画像デー
タの一時的な記憶のためにも使用される。
The RAM 4 is a random access memory used as a work area of the system control unit 2 as described above, and is also used for temporarily storing image data before encoding and image data after encoding. Is done.

【0031】スキャナ5は、3.85本/mm、7.7
本/mm、15.4本/mm等の所定の読み取り線密度
で原稿画像を読み取って画情報を得るためのものであ
る。
The scanner 5 has 3.85 lines / mm, 7.7
This is for obtaining image information by reading a document image at a predetermined reading line density such as book / mm and 15.4 book / mm.

【0032】画像入力手段5は、ファクシミリ装置1に
画像データを取り込むための手段であり、具体的には、
原稿画像を読み取って必要な補正を行い量子化して画像
データを得るためのスキャナ装置、CD−ROM、フロ
ッピーディスク等の記憶媒体に記録された画像データを
読み取るデータ読取装置、パソコン等の他装置から、セ
ントロニクスインターフェースやローカルエリアネット
ワーク等を介して画像データの転送をうけるための、イ
ンターフェース装置等である。
The image input means 5 is a means for taking in image data into the facsimile machine 1.
A scanner device for reading a document image, performing necessary correction and quantizing to obtain image data, a data reading device for reading image data recorded on a storage medium such as a CD-ROM, a floppy disk, and other devices such as a personal computer. , An interface device for receiving image data via a Centronics interface, a local area network, or the like.

【0033】画像出力手段6は、ファクシミリ装置1か
ら画像データを出力するための手段であり、具体的に
は、画像データを記録紙に可視出力するプロッタ装置、
画像データをディスプレイに可視出力するディスプレイ
装置、フロッピー(登録商標)ディスク等の記憶媒体に
画像データを記録するデータ記録装置、パソコン等の他
装置へ、セントロニクスインターフェースやローカルエ
リアネットワーク等を介して画像データの転送するため
のインターフェース装置等である。
The image output means 6 is a means for outputting image data from the facsimile machine 1, and more specifically, a plotter device for visually outputting the image data on recording paper,
A display device that visually outputs image data on a display, a data recording device that records image data on a storage medium such as a floppy (registered trademark) disk, and other devices such as a personal computer, via a Centronics interface or a local area network. Interface device for transferring the data.

【0034】符号化復号化部7は、通常の符号化モード
時においては、送信画像データを、G3、G4ファクシ
ミリに適合する、MH符号化方式、MR符号化方式、M
MR符号化方式、JBIG等等の所定の符号化方式で符
号化圧縮する一方、通常の復号化モードにおいては、受
信画像データをMH符号化方式、MR符号化方式、MM
R符号化方式、JBIG等に対応する所定の復号化方式
で復号伸長するものである。また、符号化復号化部7
は、後述するように、秘匿モード時においては、所定の
鍵情報に基づく暗号化を伴う符号化処理をも行う。
In the normal encoding mode, the encoding / decoding section 7 converts the transmission image data into an MH encoding scheme, an MR encoding scheme, and an M encoding scheme conforming to G3 and G4 facsimile.
On the other hand, in a normal decoding mode, the received image data is MH-encoded, MR-encoded, MM-encoded and compressed in a predetermined encoding system such as MR encoding or JBIG.
The decoding is performed by a predetermined decoding method corresponding to the R encoding method, JBIG, or the like. The encoding / decoding unit 7
, Also performs an encoding process involving encryption based on predetermined key information in the secret mode, as described later.

【0035】操作表示部8は、宛先電話番号を指定する
ためのテンキー、送信スタートキー、ワンタッチダイヤ
ルキー、及び、その他各種キーが配設される一方、液晶
表示装置等の表示器を備え、ユーザに知らせるべき装置
の動作状態や、各種メッセージを表示するものである。
The operation display section 8 is provided with a numeric keypad for designating a destination telephone number, a transmission start key, a one-touch dial key, and various other keys. It displays the operating state of the device to be notified and various messages.

【0036】通信制御部9は、モデム10や網制御部1
1を制御してG3ファクシミリ通信を行うものである。
モデム10は、G3ファクシミリモデムで、網制御部1
1を介して回線に送信するデータを変調する一方、網制
御部11を介してPSTNまたはISDNの回線から受
信した信号を復調してG3ファクシミリ通信を行い、符
号化画像データの送受信を行うためのものである。ま
た、モデム10は、入力されたダイヤル番号に対応した
DTMF信号の送出も行う。網制御部11は、回線に接
続されて、回線の直流ループの閉結・解放や、回線の極
性反転の検出、回線解放の検出、発信音の検出、ビジー
トーン(話し中)等のトーン信号の検出、呼出信号の検
出等の回線との接続制御や、ダイヤルパルスの生成を行
いうものである。通信制御部9、モデム10及び網制御
部11は、いわば、符号化画像データの入力装置及び出
力装置として機能する。本実施の形態では、本発明に係
る画像符号化装置及び画像復号化装置をファクシミリ装
置1に適用した場合を例にとっているため、符号化画像
データを回線(PSTNやISDN)を介して他装置と
の間で入出力するが、符号化画像データの他装置との間
の入出力は、LAN、セントロニクスインターフェー
ス、RS−232Cインターフェース等のその他の形態
であってもよいのはいうまでもない。
The communication control unit 9 includes the modem 10 and the network control unit 1
1 to perform G3 facsimile communication.
The modem 10 is a G3 facsimile modem, and the network control unit 1
1 for modulating data to be transmitted to the line via the network control unit 1, demodulating a signal received from the PSTN or ISDN line via the network control unit 11, performing G3 facsimile communication, and performing transmission and reception of encoded image data. Things. Further, the modem 10 also transmits a DTMF signal corresponding to the input dial number. The network control unit 11 is connected to the line, and closes and releases the DC loop of the line, detects the reversal of the line polarity, detects the line release, detects the dial tone, and outputs a tone signal such as a busy tone (busy). It controls connection with a line such as detection and detection of a call signal, and generates dial pulses. The communication control unit 9, the modem 10, and the network control unit 11 function as an input device and an output device for encoded image data. In the present embodiment, the case where the image encoding apparatus and the image decoding apparatus according to the present invention are applied to the facsimile apparatus 1 is taken as an example, so that encoded image data is transmitted to another apparatus via a line (PSTN or ISDN). It goes without saying that the input and output between the encoded image data and other devices may be in other forms, such as a LAN, a Centronics interface, and an RS-232C interface.

【0037】システムバス12は、上記各部がデータを
やり取りするための信号ラインである。
The system bus 12 is a signal line through which the above components exchange data.

【0038】以上の構成のファクシミリ装置1は、図2
に示すように、本発明に係るキーとして、操作表示部8
に、[秘匿モード]キー8aを備えている。その[秘匿
モード]キー8aが押下されるごとに、符号化モード
が、「通常モード」または「秘匿モード」に切り替わ
り、「秘匿モード」時には、インジケータランプ8bを
点灯させ、「通常モード」時には、インジケータランプ
8bを消灯させて、現在のモード状態をユーザに示す。
また、現在の符号化モードが「通常モード」または「秘
匿モード」のずれであるかは、所定のフラグの値とし
て、RAM4に記憶していて、システム制御部2は、R
AM4に記憶されたフラグの値を読み出すことで、現在
の符号化モードを知ることができる。
The facsimile apparatus 1 having the above configuration is similar to that shown in FIG.
As shown in the figure, the operation display unit 8
Is provided with a [confidential mode] key 8a. Each time the [Confidential Mode] key 8a is pressed, the encoding mode is switched to "Normal Mode" or "Confidential Mode". In "Confidential Mode", the indicator lamp 8b is turned on. The indicator lamp 8b is turned off to indicate the current mode state to the user.
Whether the current encoding mode is a shift between the “normal mode” and the “secret mode” is stored in the RAM 4 as a value of a predetermined flag, and the system control unit 2
The current encoding mode can be known by reading the value of the flag stored in AM4.

【0039】また、ファクシミリ装置1は、後述する、
図4または図6に示す符号化処理、及び、図8または図
9に示す復号化処理のために、図3に示すように、RO
M3の記憶領域3aにマーカデータを記憶している。
Further, the facsimile machine 1 will be described later.
For the encoding process shown in FIG. 4 or FIG. 6 and the decoding process shown in FIG. 8 or FIG.
Marker data is stored in the storage area 3a of M3.

【0040】図4に示す符号化処理手順について説明す
る。なお、図4に示す処理により符号化されるのは、画
像入力手段5から入力された画像データであり、符号化
後の画像データは、通信制御部9、モデム10及び網制
御部11によりファクシミリメッセージとして回線を介
して相手先に送信されるが、図4に示す処理では、ファ
クシミリ装置1が画像符号化装置として、符号化対象画
像データを符号化する手順のみについて説明し、符号化
画像データの送信手順については説明を省略する。
The encoding procedure shown in FIG. 4 will be described. It is to be noted that what is encoded by the processing shown in FIG. 4 is the image data input from the image input means 5, and the encoded image data is transmitted to the facsimile by the communication control unit 9, the modem 10 and the network control unit 11. Although the message is transmitted to the destination via the line, in the processing shown in FIG. 4, only the procedure in which the facsimile apparatus 1 encodes the encoding target image data as the image encoding apparatus will be described. The description of the transmission procedure is omitted.

【0041】図4において、システム制御部2は、画像
入力手段5から入力され、RAM4に一時記憶された符
号化対象画像データを読み込む(処理101)。なお、
処理101の符号化対象画像データの読み込みは、RA
M4を介さずに、画像入力手段5から直接行うようにし
ても良い。
In FIG. 4, the system controller 2 reads the encoding target image data input from the image input means 5 and temporarily stored in the RAM 4 (process 101). In addition,
Reading of the encoding target image data in the process 101 is performed by RA
The processing may be performed directly from the image input unit 5 without going through the M4.

【0042】処理101の後、現在符号化モードが「秘
匿モード」であるかをRAM4に記憶されているフラグ
の値により判断する(判断102)。そして、「秘匿モ
ード」ではなく「通常モード」である場合は(判断10
2のNo)、暗号化による秘匿処理を伴わない、通常モ
ードの符号化を、処理101で読み込んだデータに対し
て行い(処理103)、更に、符号化対象画像データを
読み込んで(処理104)、通常モードで符号化する処
理を(処理105)、符号化対象画像データの全データ
の読み込みが終了するまで繰り返す(判断106のNo
ループ)。符号化対象画像データの全データについての
符号化が完了し読み込みが終了すると(判断106のY
es)、処理を終了する。
After the process 101, it is determined whether or not the current encoding mode is the "secret mode" based on the value of the flag stored in the RAM 4 (decision 102). If it is not the “secret mode” but the “normal mode” (decision 10
No. 2), normal mode encoding without concealment processing by encryption is performed on the data read in process 101 (process 103), and image data to be encoded is read (process 104). The process of encoding in the normal mode (process 105) is repeated until reading of all data of the encoding target image data is completed (No in decision 106).
loop). When the encoding of all the image data to be encoded is completed and the reading is completed (Y in decision 106)
es), the process ends.

【0043】判断102において、符号化モードが「秘
匿モード」である場合には(判断102のYes)、処
理101で読み込んだ画像データの一部を、図3に示し
たようにROM3に予め記憶しているマーカデータに置
換する(処理107)。これにより、符号化対象画像デ
ータの先頭がマーカデータに置換されることになる。
If it is determined in the decision 102 that the encoding mode is the "secret mode" (Yes in the decision 102), a part of the image data read in the process 101 is stored in the ROM 3 in advance as shown in FIG. Replaced with the marker data being processed (process 107). As a result, the head of the encoding target image data is replaced with the marker data.

【0044】そして、処理107で置換したマーカデー
タ分のデータを通常モードで符号化し(処理108)、
更に、符号化対象画像データを読み込んで(処理10
9)、所定の鍵情報に基づく暗号化による秘匿モードで
符号化する処理を(処理110)、符号化対象画像デー
タの全データの読み込みが終了するまで繰り返す(判断
111のNoループ)。符号化対象画像データの全デー
タについての符号化が完了し読み込みが終了すると(判
断111のYes)、処理を終了する。処理110にお
ける秘匿モードの符号化の形態により本発明は限定され
るものではなく、符号化対象画像データをいったん暗号
化したデータを更に符号化したり、符号化処理ものもの
が、暗号化処理を含むものであってもよい。
Then, the data for the marker data replaced in step 107 is encoded in the normal mode (step 108).
Further, the image data to be encoded is read (step 10
9), the process of encoding in the secret mode by encryption based on predetermined key information (process 110) is repeated until reading of all data of the encoding target image data is completed (No loop of judgment 111). When the encoding of all the data of the encoding target image data is completed and the reading is completed (Yes in decision 111), the processing is terminated. The present invention is not limited by the form of encoding in the confidential mode in the process 110, and further encodes the data obtained by encrypting the encoding target image data once, and the encoding process includes the encoding process. It may be something.

【0045】図5(a)に、図4の判断102がNoと
なった場合の、符号化後の画像データ列を示し、図5
(b)に、図4の判断102がYesとなった場合の、
符号化後の画像データ列を示す。図5(b)に示すよう
に、図4の判断102がYesとなった場合には、符号
化後の画像データ列の先頭部がマーカデータに置換され
る。
FIG. 5A shows an image data sequence after encoding when the judgment 102 in FIG. 4 is No.
FIG. 4B shows a case where the determination 102 in FIG.
4 shows an image data sequence after encoding. As shown in FIG. 5B, when the determination 102 in FIG. 4 is Yes, the head of the encoded image data sequence is replaced with marker data.

【0046】次に、図4に示した符号化処理手順の変形
例である図6に示す符号化処理について説明する。
Next, a description will be given of the encoding process shown in FIG. 6, which is a modification of the encoding process procedure shown in FIG.

【0047】図6において、システム制御部2は、現在
符号化モードが「秘匿モード」であるかをRAM4に記
憶されているフラグの値により判断する(判断20
1)。そして、「秘匿モード」ではなく「通常モード」
である場合は(判断201のNo)、画像入力手段5か
ら入力され、RAM4に一時記憶された符号化対象画像
データを読み込み(処理202)、暗号化による秘匿処
理を伴わない、通常モードの符号化を、処理202で読
み込んだデータに対して行う処理を(処理203)、符
号化対象画像データの全データの読み込みが終了するま
で繰り返す(判断204のNoループ)。符号化対象画
像データの全データについての符号化が完了し読み込み
が終了すると(判断204のYes)、処理を終了す
る。
In FIG. 6, the system control unit 2 determines whether the current encoding mode is the “secret mode” based on the value of the flag stored in the RAM 4 (determination 20).
1). And "Normal mode" instead of "Hidden mode"
In the case of (No in decision 201), the encoding target image data input from the image input means 5 and temporarily stored in the RAM 4 is read (process 202), and the code in the normal mode without the concealment process by encryption is read. The process of performing the conversion on the data read in the process 202 (process 203) is repeated until reading of all the data of the encoding target image data is completed (No loop of the determination 204). When the encoding of all the data of the encoding target image data is completed and the reading is completed (Yes in decision 204), the processing is terminated.

【0048】判断201において、符号化モードが「秘
匿モード」である場合には(判断201のYes)、符
号化対象画像データに、図3に示したようにROM3に
予め記憶しているマーカデータを挿入する(処理20
5)。これにより、符号化対象画像データの先頭にマー
カデータが挿入されることになる。
In the judgment 201, when the encoding mode is the "secret mode" (Yes in the judgment 201), the marker data previously stored in the ROM 3 as shown in FIG. (Process 20)
5). As a result, the marker data is inserted at the head of the encoding target image data.

【0049】そして、処理205で挿入したマーカデー
タ分のデータを通常モードで符号化し(処理206)、
更に、符号化対象画像データを読み込んで(処理20
7)、所定の鍵情報にモードつく暗号化による秘匿モー
ドで符号化する処理を(処理208)、符号化対象画像
データの全データの読み込みが終了するまで繰り返す
(判断209のNoループ)。符号化対象画像データの
全データについての符号化が完了し読み込みが終了する
と(判断209のYes)、処理を終了する。
Then, the data for the marker data inserted in step 205 is encoded in the normal mode (step 206).
Further, the encoding target image data is read (step 20).
7), the process of encoding the predetermined key information in the secret mode by encryption with mode (process 208) is repeated until reading of all the data of the encoding target image data is completed (No loop of judgment 209). When the encoding of all the image data to be encoded is completed and the reading is completed (Yes in decision 209), the processing is terminated.

【0050】図7(a)に、図6の判断201がNoと
なった場合の、符号化後の画像データ列を示し、図7
(b)に、図6の判断201がYesとなった場合の、
符号化後の画像データ列を示す。図7(b)に示すよう
に、図6の判断201がYesとなった場合には、符号
化後の画像データ列の先頭部がマーカデータが挿入さ
れ、符号化後の画像データ列がその分長くなるが、図4
に示した符号化処理のように、画像データの一部がマー
カデータに置換されるのではないため、画像データの本
来の内容の欠落がなくなり、復号化側が、後述する図9
に示す復号化処理により、復号化対象画像データに挿入
されたマーカデータを復号化時に破棄すれば、元の画像
データを情報の欠落なしに復元することができる。
FIG. 7A shows an image data sequence after encoding when the judgment 201 in FIG. 6 is No.
FIG. 6B shows a case where the judgment 201 in FIG.
4 shows an image data sequence after encoding. As shown in FIG. 7B, when the determination 201 in FIG. 6 is Yes, marker data is inserted at the beginning of the encoded image data sequence, and the encoded image data sequence is Figure 4
Since the marker data is not partially replaced with the marker data as in the encoding process shown in FIG. 9, the original content of the image data is not lost, and the decoding side performs the processing shown in FIG.
If the marker data inserted into the decoding target image data is discarded at the time of decoding by the decoding process shown in (1), the original image data can be restored without loss of information.

【0051】このように、図4の判断102または図6
の判断201がNoで、符号化対象画像データの全デー
タを通常モードで符号化して得られた画像データ、ある
いは、図4の判断102または図6の判断201がYe
sで、符号化対象画像データの先頭部のマーカデータの
みが通常モードで符号化され、そのマーカデータ以後の
データを秘匿モードで符号化した画像データは、区別な
く相手先に回線を介して送信される。
As described above, the judgment 102 in FIG.
Is No, and the image data obtained by encoding all the data of the encoding target image data in the normal mode, or the judgment 102 in FIG. 4 or the judgment 201 in FIG.
In s, only the marker data at the head of the encoding target image data is encoded in the normal mode, and the image data obtained by encoding the data after the marker data in the secret mode is transmitted to the other party via the line without distinction. Is done.

【0052】一方、受信側では、図4の判断102また
は図6の判断201がYesとなった場合でもNoとな
った場合でも、復号化対象画像データとして受信した、
符号化された画像データが、通常モードで符号化された
符号列から開始されているため、マーカデータを検出す
るまでは通常モードの符号化に対応する通常モードの復
号化により、元の画像データを復元できる。
On the other hand, on the receiving side, regardless of whether the judgment 102 in FIG. 4 or the judgment 201 in FIG.
Since the encoded image data starts from a code sequence encoded in the normal mode, the original image data is decoded by decoding in the normal mode corresponding to the encoding in the normal mode until marker data is detected. Can be restored.

【0053】図4の判断102または図6の判断201
がNoとなった場合は、復号化対象画像データにマーカ
データが含まれないため、復号化対象画像データを最後
まで通常モードで復号化すれば、正しい画像データを復
元できる。
The judgment 102 in FIG. 4 or the judgment 201 in FIG.
Is No, the marker data is not included in the decoding target image data. Therefore, if the decoding target image data is decoded to the end in the normal mode, correct image data can be restored.

【0054】一方、図4の判断102または図6の判断
201がYesとなった場合は、復号化対象画像データ
にマーカデータが含まれるため、復号化対象画像データ
のマーカデータ以後のデータは、暗号化による秘匿処理
を伴って符号化されているため、そのまま通常モードで
復号化するとすると、正しい画像データは復元できず、
図4に示す符号化処理手順に対応して後述する図8に示
す復号化処理を行う必要があり、また、図6に示す符号
化処理手順に対応して後述する図9に示す復号化処理を
行う必要がある。
On the other hand, if the judgment 102 in FIG. 4 or the judgment 201 in FIG. 6 is Yes, the marker data is included in the image data to be decoded. Because it is encoded with encryption concealment processing, if it is decoded in the normal mode as it is, the correct image data cannot be restored,
It is necessary to perform a decoding process shown in FIG. 8 described later corresponding to the encoding process procedure shown in FIG. 4, and a decoding process shown in FIG. 9 described later corresponding to the encoding process procedure shown in FIG. Need to do.

【0055】しかし、符号化側(送信側)から復号化側
(受信側)に送信する符号化画像データが暗号化しない
通常モードで符号化されたものか、または、暗号化を伴
う秘匿モードで符号かされたものかを示す情報が符号化
画像データ内にマーカデータとして含まれているため、
送信する符号化画像データが暗号化しない通常モードで
符号化されたものか、または、暗号化を伴う秘匿モード
で符号化されたものかを示す情報を、送信する符号化画
像データに付帯させて、G3ファクシミリプロトコルの
非標準機能設定信号NSS等のプロトコル信号により別
途通知する必要がなく、通信プロトコル制御手順を、送
信する符号化画像データの暗号化の有無によって変更す
る必要がない。
However, the encoded image data transmitted from the encoding side (transmission side) to the decoding side (reception side) is encoded in the normal mode without encryption, or in the secret mode with encryption. Since information indicating whether or not the image is encoded is included as marker data in the encoded image data,
Information indicating whether the coded image data to be transmitted is coded in the normal mode without encryption or coded in the confidential mode with encryption is appended to the coded image data to be transmitted. There is no need to separately notify by a protocol signal such as the non-standard function setting signal NSS of the G3 facsimile protocol, and it is not necessary to change the communication protocol control procedure depending on whether or not the encoded image data to be transmitted is encrypted.

【0056】また、図4や図6に示した処理手順により
符号化された画像データを、ファイルとして符号側から
復号化側に渡す場合について考えると、一般の画像ファ
イルは、ヘッダと呼ばれるデータを、画像データ列のは
じめに持っている。ヘッダ中には画像サイズや符号化方
式に関する情報等を記録することができる。しかし標準
的ファイルフォーマットを用いる場合、暗号化を行って
いるか否か等の情報に関してもヘッダ情報中に記載する
必要が生じるため、ファイルフォーマットが特別なもの
となってしまう場合がある。
Considering a case where image data encoded according to the processing procedures shown in FIGS. 4 and 6 is passed from the encoding side to the decoding side as a file, a general image file is composed of data called a header. Have at the beginning of the image data sequence. In the header, information relating to the image size and the encoding method can be recorded. However, when a standard file format is used, it is necessary to describe information such as whether or not encryption is performed in the header information, so that the file format may be special.

【0057】しかし、図4や図6に示した符号化処理に
より得られる符号化画像データにおいては、符号化側か
ら復号化側に渡す符号化画像データが暗号化しない通常
モードで符号化されたものか、または、暗号化を伴う秘
匿モードで符号化されたものかを示す情報が符号化画像
データ内にマーカデータとして含まれているため、ヘッ
ダ中に暗号化しているか否かの情報を記載する必要はな
い。
However, in the encoded image data obtained by the encoding processing shown in FIGS. 4 and 6, the encoded image data passed from the encoding side to the decoding side is encoded in the normal mode in which no encryption is performed. Since the information indicating whether the data is encoded in the confidential mode with encryption is included in the encoded image data as marker data, the information as to whether or not the data is encrypted is described in the header. do not have to.

【0058】それにより、たとえばヘッダ中に暗号化し
ているかどうかを記載する部分が無い画像フォーマット
の場合も、暗号化された符号化画像データを格納するこ
とが可能となる。
Thus, for example, even in the case of an image format in which there is no portion in the header indicating whether or not encryption is performed, encrypted encoded image data can be stored.

【0059】また、図4または図6の符号化処理手順で
は、符号化対象画像データの先頭に置換または挿入され
たマーカデータのみが通常モードで符号され、そのマー
カデータ以後のデータが秘匿モードで符号化されるが、
本発明においては、マーカデータは、符号化対象画像デ
ータの任意の位置に置換または挿入でき、符号化対象画
像データの、置換または挿入されたマーカデータまで、
及びマーカデータ自身を通常モードで符号化し、そのマ
ーカデータ以後のデータを秘匿モードで符号化するよう
にしてもよい。
In the encoding procedure of FIG. 4 or FIG. 6, only the marker data replaced or inserted at the head of the image data to be encoded is encoded in the normal mode, and the data after the marker data is encoded in the secret mode. Encoded,
In the present invention, the marker data can be replaced or inserted at any position of the encoding target image data, and the encoding target image data, up to the replaced or inserted marker data,
Alternatively, the marker data itself may be encoded in the normal mode, and data subsequent to the marker data may be encoded in the secret mode.

【0060】しかし、図4または図6に示したように、
マーカデータを符号化対象画像データの先頭に置換また
は挿入することで、符号化対象画像データの全体を秘匿
することができ、また、画像データの先頭という、予め
決まった所定の位置にマーカデータが配置されること
で、復号化側における復号化時に、復号化対象画像デー
タが秘匿モードで符号化されていて、解読モードで復号
化する必要があることを直ちに判断できるようになる。
また、マーカデータを画像データの先頭に置換すること
で、任意の位置に置換した場合と比較して、復号化側で
復号化され復元されたときに画像上に残るマーカデータ
が目立ちにくくなる利点がある。
However, as shown in FIG. 4 or FIG.
By replacing or inserting the marker data at the beginning of the encoding target image data, the entire encoding target image data can be concealed, and the marker data is located at a predetermined position, which is the beginning of the image data. This arrangement makes it possible to immediately determine at the time of decoding on the decoding side that the decoding target image data has been encoded in the secret mode and needs to be decoded in the decoding mode.
Also, by replacing the marker data with the beginning of the image data, marker data remaining on the image when decoded and restored on the decoding side is less noticeable than when replaced at an arbitrary position. There is.

【0061】ただし、特別に画像データの途中までを暗
号化せずに通常モードで符号化して、誰にでも見られる
ようにする必要がある場合などでは、該当する位置より
後にマーカデータを置換または挿入して、以後のデータ
のみを秘匿モードで符号化する方がよい場合もある。
However, when it is necessary to encode the image data in the normal mode without encrypting a part of the image data and to make it visible to anyone, the marker data is replaced or replaced after the corresponding position. In some cases, it is better to insert and encode only the subsequent data in the secret mode.

【0062】また、図4や図6に示した符号化処理手順
で置換するマーカデータは、複数ビットより成るものと
して、ある程度の長さを持つビット列とすることが望ま
しい。それは、マーカコードより前の暗号化されていな
い画像データ中に偶然マーカコードと同じビット配列を
持つデータが復号化側で復号化される場合に、当該ビッ
ト配列を通常モードの符号化と秘匿モードの符号化との
境界を示すマーカコードであると誤判定して復号化を正
しく行えなくなるおそれがあるためである。
The marker data to be replaced in the encoding processing procedure shown in FIGS. 4 and 6 is preferably composed of a plurality of bits, and is preferably a bit string having a certain length. That is, when data having the same bit array as the marker code is accidentally decoded on the decoding side in the unencrypted image data before the marker code, the bit array is encoded in the normal mode and the secret mode. This is because there is a possibility that decoding may not be performed correctly due to an erroneous determination that the marker code indicates a boundary with the encoding.

【0063】現実的には、マーカコードのサイズは、3
2ビット程度で十分であると考えられる。32あれば偶
然にビット列が一致する確率が2^32(約40億)分
の1以下となり、実用上十分である。また、図4に示し
た符号化処理手順のように、復号化後の画像データ上に
マーカコードが残る場合でも、32ビットのマーカデー
タは200dpiの解像度では約4mm程度の長さの画像
となりほとんど目立たず、解像度が200dpi以上で
あれば、いっそうより目立たなくなる。
In practice, the size of the marker code is 3
It is considered that about two bits are sufficient. If it is 32, the probability of coincidence of the bit strings is less than 2/32 (approximately 4 billion) or less, which is practically sufficient. Even when the marker code remains on the decoded image data as in the encoding procedure shown in FIG. 4, the 32-bit marker data becomes an image having a length of about 4 mm at a resolution of 200 dpi. Inconspicuous, if the resolution is 200 dpi or more, it becomes even less noticeable.

【0064】次に、図4に示した符号化処理手順に対応
する復号化処理手順について、図8を参照して説明す
る。なお、図8に示す処理により復号化されるのは、相
手先装置における図4に示す符号化処理手順により符号
化され、通信制御部9、モデム10及び網制御部11に
よりファクシミリメッセージとして回線を介して受信し
た符号化画像データ(復号化対象画像データ)であり、
復号化後の画像データは、画像出力手段6により出力さ
れるが、図8に示す処理では、ファクシミリ装置1が画
像復号化装置として、復号化対象画像データを復号化す
る手順のみについて説明し、符号化対象画像データの受
信・出力手順については説明を省略する。
Next, a decoding procedure corresponding to the encoding procedure shown in FIG. 4 will be described with reference to FIG. It is to be noted that what is decoded by the processing shown in FIG. 8 is encoded by the encoding processing procedure shown in FIG. 4 in the destination apparatus, and the communication control unit 9, the modem 10 and the network control unit 11 change the line as a facsimile message. Image data (image data to be decoded) received through
The image data after decoding is output by the image output means 6. In the processing shown in FIG. 8, only the procedure in which the facsimile apparatus 1 decodes the image data to be decoded as the image decoding apparatus will be described. A description of the reception / output procedure of the encoding target image data is omitted.

【0065】図8において、システム制御部2は、相手
先からファクシミリメッセージとして受信し、RAM4
に一時記憶された復号化対象画像データから符号データ
を符号化復号化部7に入力し(処理301)、通常モー
ドの符号化に対応する通常モードで復号化する(処理3
02)。
In FIG. 8, the system control unit 2 receives a facsimile message from the
Code data is input from the decoding target image data temporarily stored in the encoding / decoding unit 7 (process 301), and is decoded in the normal mode corresponding to the normal mode encoding (process 3).
02).

【0066】そして、復号化後のデータ中に、図3に示
したようにROM3に予め記憶したマーカデータがある
否かを判断しつつ、復号化対象画像データの復号化が完
了して復号化すべき符号データが終了するまで、処理3
01及び処理302を繰り返す(判断303のNo,判
断304のNoループ)。
Then, as shown in FIG. 3, it is determined whether or not there is marker data stored in the ROM 3 in advance in the decoded data, and the decoding of the image data to be decoded is completed. Processing 3 until power code data ends
01 and the process 302 are repeated (No in decision 303, No loop in decision 304).

【0067】そして、マーカデータが検出できないまま
符号データが終了した場合(判断304のYes)、復
号化処理を終了する。判断304がYesとなるのは、
復号化対象画像データ中にマーカデータが含まれない場
合、すなわち、復号化対象画像データが符号化側で通常
モードで符号化されたものである場合である。これによ
り、通常モードで符号化された復号化対象画像データを
正しく復号化して元の画像データに復元することができ
る。
If the code data ends without detecting the marker data (Yes in decision 304), the decoding process ends. The judgment 304 is Yes because
This is the case where the marker data is not included in the decoding target image data, that is, the decoding target image data has been encoded in the normal mode on the encoding side. As a result, the decoding target image data encoded in the normal mode can be correctly decoded and restored to the original image data.

【0068】判断303でマーカデータがあった場合は
(判断303のYes)、復号化対象画像データから符
号データを更に符号化復号化部7に入力し(処理30
5)、秘匿モードの符号化において用いたものと同一の
鍵情報に基づいた解読モードで復号化する処理を(処理
306)、復号化対象画像データの復号化が完了して復
号化すべき符号データが終了するまで繰り返す(判断3
07のNoループ)。復号化対象画像データの全データ
についての復号化が完了し符号データが終了すると(判
断307のYes)、処理を終了する。
If there is marker data in decision 303 (Yes in decision 303), code data from the decoding target image data is further input to the encoding / decoding section 7 (step 30).
5) The process of decoding in the decryption mode based on the same key information as used in the encryption in the secret mode (process 306), the code data to be decoded after the decoding of the decoding target image data is completed Is repeated until the process ends (decision 3
07 No loop). When the decoding of all the image data to be decoded is completed and the code data ends (Yes in decision 307), the processing ends.

【0069】これにより、図4に示した符号化処理によ
り、通常モードで符号化された画像データも、秘匿モー
ドで符号化された画像データも、復号化対象画像データ
に付帯した追加情報なしに正しく復号化して元の画像デ
ータを復元できる。
As a result, both the image data encoded in the normal mode and the image data encoded in the confidential mode by the encoding process shown in FIG. 4 can be performed without additional information attached to the image data to be decoded. Correct decoding can restore the original image data.

【0070】次に、図8に示した復号化処理手順の変形
例であり、図6に示した符号化処理手順に対応する復号
化処理手順である図9に示す手順について説明する。
Next, a description will be given of a procedure shown in FIG. 9, which is a modification of the decoding procedure shown in FIG. 8, and corresponds to the encoding procedure shown in FIG.

【0071】図9において、システム制御部2は、相手
先からファクシミリメッセージとして受信し、RAM4
に一時記憶された復号化対象画像データから符号データ
を符号化復号化部7に入力し(処理401)、通常モー
ドの符号化に対応する通常モードで復号化する(処理4
02)。
In FIG. 9, the system control unit 2 receives a facsimile message from the
Is input to the encoding / decoding unit 7 from the image data to be decoded temporarily stored in the encoding / decoding unit 7 (processing 401), and is decoded in the normal mode corresponding to the encoding in the normal mode (processing 4).
02).

【0072】そして、復号化後のデータ中に、図3に示
したようにROM3に予め記憶したマーカデータがある
否かを判断しつつ、復号化対象画像データの復号化が完
了して復号化すべき符号データが終了するまで、処理4
01及び処理402を繰り返す(判断403のNo,判
断404のNoループ)。
Then, as shown in FIG. 3, it is determined whether or not there is marker data stored in the ROM 3 in advance in the decoded data, and the decoding of the image data to be decoded is completed. Processing 4 until power code data is completed
01 and the process 402 are repeated (No in the judgment 403, No loop in the judgment 404).

【0073】そして、マーカデータが検出できないまま
符号データが終了した場合(判断404のYes)、復
号化処理を終了する。判断404がYesとなるのは、
復号化対象画像データ中にマーカデータが含まれない場
合、すなわち、復号化対象画像データが符号化側で通常
モードで符号化されたものである場合である。これによ
り、通常モードで符号化された復号化対象画像データを
正しく復号化して元の画像データに復元することができ
る。
If the code data ends without detecting the marker data (Yes in decision 404), the decoding process ends. The decision 404 is Yes because
This is the case where the marker data is not included in the decoding target image data, that is, the decoding target image data has been encoded in the normal mode on the encoding side. As a result, the decoding target image data encoded in the normal mode can be correctly decoded and restored to the original image data.

【0074】判断403でマーカデータがあった場合は
(判断403のYes)、復号化後の当該マーカデータ
を破棄して、復号化後の画像データ列から除去した上で
(処理405)、復号化対象画像データから符号データ
を更に符号化復号化部7に入力し(処理406)、秘匿
モードの符号化において用いたものと同一の鍵情報に基
づいた解読モードで復号化する処理を(処理407)、
復号化対象画像データの復号化が完了して復号化すべき
符号データが終了するまで繰り返す(判断408のNo
ループ)。復号化対象画像データの全データについての
復号化が完了し符号データが終了すると(判断408の
Yes)、処理を終了する。
If there is marker data in decision 403 (Yes in decision 403), the marker data after decoding is discarded, removed from the decoded image data sequence (process 405), and then decoded. The encoded data is further input from the encoding target image data to the encoding / decoding unit 7 (process 406), and the process of decoding in the decryption mode based on the same key information used in the encryption in the secret mode (process 406) 407),
Repeat until decoding of the image data to be decoded is completed and code data to be decoded ends (No in decision 408).
loop). When the decoding of all the image data to be decoded is completed and the code data ends (Yes in decision 408), the process ends.

【0075】これにより、図6に示した符号化処理によ
り、通常モードで符号化された画像データも、秘匿モー
ドで符号化された画像データも、復号化対象画像データ
に付帯した追加情報なしに正しく復号化して元の画像デ
ータを復元できる。
As a result, both the image data encoded in the normal mode and the image data encoded in the secret mode by the encoding process shown in FIG. 6 can be performed without additional information attached to the image data to be decoded. Correct decoding can restore the original image data.

【0076】次に、これまで説明した、図4または図6
に示した画像符号化処理、及び、図8または図9に示し
た画像復号化処理とは形態の異なる画像符号化処理及び
画像復号化処理について以下説明する。
Next, FIG. 4 or FIG.
And the image encoding process and the image decoding process different from those of the image decoding process shown in FIG. 8 or FIG. 9 will be described below.

【0077】なお、以下説明する画像符号化処理におい
ては、図2に示したように、操作表示部8に、[秘匿モ
ード]キー8aを備えていて、その[秘匿モード]キー
8aが押下されるごとに、符号化モードが、「通常モー
ド」または「秘匿モード」に切り替わり、「秘匿モー
ド」時には、インジケータランプ8bを点灯させ、「通
常モード」時には、インジケータランプ8bを消灯させ
て、現在のモード状態をユーザに示すと共に、現在の符
号化モードが「通常モード」または「秘匿モード」のず
れであるかを、所定のフラグの値として、RAM4に記
憶していて、システム制御部2は、RAM4に記憶され
たフラグの値を読み出すことで、現在の符号化モードを
知ることができる点については、これまでに説明した画
像符号化処理の場合と同様である。
In the image encoding process described below, as shown in FIG. 2, the operation display section 8 is provided with a [secret mode] key 8a, and the [secret mode] key 8a is depressed. Every time the encoding mode is switched to the “normal mode” or the “secret mode”, the indicator lamp 8b is turned on in the “secret mode”, and the indicator lamp 8b is turned off in the “normal mode” to set the current mode. In addition to indicating the mode state to the user, whether the current encoding mode is a shift between the “normal mode” and the “secret mode” is stored in the RAM 4 as a value of a predetermined flag, and the system control unit 2 The fact that the current encoding mode can be known by reading the value of the flag stored in the RAM 4 is described in the case of the image encoding process described above. It is the same.

【0078】また、ファクシミリ装置1は、後述する、
図11または図13に示す符号化処理、及び、図14ま
たは図16に示す復号化処理のために、図10に示すよ
うに、ROM3の記憶領域3bに特定図形データを記憶
している。
Further, the facsimile machine 1 will be described later.
For the encoding process shown in FIG. 11 or FIG. 13 and the decoding process shown in FIG. 14 or FIG. 16, specific graphic data is stored in the storage area 3b of the ROM 3 as shown in FIG.

【0079】図11に示す符号化処理手順について説明
する。なお、図11に示す処理により符号化されるの
は、画像入力手段5から入力された画像データであり、
符号化後の画像データは、通信制御部9、モデム10及
び網制御部11によりファクシミリメッセージとして回
線を介して相手先に送信されるが、図11に示す処理で
は、ファクシミリ装置1が画像符号化装置として、符号
化対象画像データを符号化する手順のみについて説明
し、符号化画像データの送信手順については説明を省略
する。
The encoding procedure shown in FIG. 11 will be described. It is to be noted that what is encoded by the processing shown in FIG. 11 is the image data input from the image input unit 5,
The encoded image data is transmitted as a facsimile message to the other party via a line by the communication control unit 9, the modem 10, and the network control unit 11. In the processing shown in FIG. 11, the facsimile apparatus 1 As the apparatus, only the procedure for encoding the encoding target image data will be described, and the description of the procedure for transmitting the encoded image data will be omitted.

【0080】図11において、システム制御部2は、現
在符号化モードが「秘匿モード」であるかをRAM4に
記憶されているフラグの値により判断する(判断50
1)。そして、「秘匿モード」ではなく「通常モード」
である場合は(判断501のNo)、符号化対象画像デ
ータを読み込んで(処理502)、通常モードで符号化
する処理を(処理503)、符号化対象画像データの全
データの読み込みが終了するまで繰り返す(判断504
のNoループ)。符号化対象画像データの全データにつ
いての符号化が完了し読み込みが終了すると(判断50
4のYes)、処理を終了する。
In FIG. 11, the system control unit 2 determines whether the current encoding mode is the “secret mode” based on the value of the flag stored in the RAM 4 (determination 50).
1). And "Normal mode" instead of "Hidden mode"
If (No in decision 501), the image data to be encoded is read (process 502), the process of encoding in the normal mode is performed (process 503), and the reading of all data of the image data to be encoded ends. Repeat until (decision 504)
No loop). When the encoding of all the image data to be encoded is completed and the reading is completed (decision 50)
4 (Yes), the process ends.

【0081】判断501において、符号化モードが「秘
匿モード」である場合には(判断501のYes)、符
号化対象画像データを読み込んで(処理505)、所定
の特定図形挿入位置になったかを判断しつつ(判断50
6のNo)、通常モードで符号化する処理を、繰り返す
(処理507)。
When the encoding mode is the "secret mode" in the decision 501 (Yes in the decision 501), the image data to be encoded is read (process 505), and it is determined whether or not a predetermined specific figure insertion position has been reached. While judging (judgment 50
No. 6), the process of encoding in the normal mode is repeated (process 507).

【0082】そして、判断506で特定図形挿入位置に
なった場合は(判断506のYes)、処理505で読
み込んだ画像データの一部を、図10に示したようにR
OM3に予め記憶している特定図形データに置換する
(処理508)。これにより、符号化対象画像データの
所定の特定図形挿入位置に特定図形データが置換される
ことになる。
If it is determined in step 506 that the specific figure is to be inserted (Yes in step 506), a part of the image data read in step 505 is converted to the R data as shown in FIG.
The specific graphic data stored in advance in OM3 is replaced (process 508). As a result, the specific graphic data is replaced at the predetermined specific graphic insertion position of the encoding target image data.

【0083】そして、処理508で置換した特定図形デ
ータを通常モードで符号化し(処理509)、更に、符
号化対象画像データを読み込んで(処理510)、所定
の鍵情報に基づく暗号化による秘匿モードで符号化する
処理を(処理511)、符号化対象画像データの全デー
タの読み込みが終了するまで繰り返す(判断512のN
oループ)。符号化対象画像データの全データについて
の符号化が完了し読み込みが終了すると(判断512の
Yes)、処理を終了する。処理511における秘匿モ
ードの符号化の形態により本発明は限定されるものでは
なく、符号化対象画像データをいったん暗号化したデー
タを更に符号化したり、符号化処理ものものが、暗号化
処理を含むものであってもよい。
Then, the specific graphic data replaced in the process 508 is encoded in the normal mode (process 509), the image data to be encoded is read (process 510), and the secret mode by encryption based on predetermined key information is obtained. (Processing 511), and is repeated until reading of all data of the encoding target image data is completed (N in decision 512).
o loop). When the encoding of all the data of the encoding target image data is completed and the reading is completed (Yes in decision 512), the processing is terminated. The present invention is not limited by the encryption mode of the secret mode in the process 511, and the data obtained by once encrypting the image data to be encoded is further encoded. It may be something.

【0084】図12に、図11の判断501がYesの
場合に符号化された画像データを、復号後のイメージと
して示す。図12において、図11の処理508で書き
込まれる特定図形データは、星形のものであり、判断5
06における所定の特定図形挿入位置は、画像データの
先頭であり、画像データのうちの特定図形データが置換
された領域が通常モードで符号化され、特定図形データ
が置換された領域以後が秘匿モードで符号化される。も
っとも、判断506における所定の特定図形挿入位置が
画像データの先頭でない場合には、画像データのうちの
特定図形データが置換された領域以前も、通じようモー
ドで符号化される。なお、図12に示した特定図形デー
タは分かりやすくするために、画像データの対して相対
的に大きく記載している。
FIG. 12 shows, as a decoded image, the image data encoded when the judgment 501 in FIG. 11 is Yes. In FIG. 12, the specific graphic data written in the process 508 of FIG.
The predetermined specific graphic insertion position at 06 is the beginning of the image data, the area of the image data where the specific graphic data is replaced is encoded in the normal mode, and the area after the specific graphic data is replaced is in the secret mode. . However, if the predetermined specific graphic insertion position in the determination 506 is not the head of the image data, the encoding is performed in the communication mode even before the area where the specific graphic data is replaced in the image data. It should be noted that the specific graphic data shown in FIG. 12 is relatively large with respect to the image data for easy understanding.

【0085】次に、図11に示した符号化処理手順の変
形例である図13に示す符号化処理について説明する。
Next, the encoding process shown in FIG. 13 which is a modification of the encoding process procedure shown in FIG. 11 will be described.

【0086】図13において、システム制御部2は、現
在符号化モードが「秘匿モード」であるかをRAM4に
記憶されているフラグの値により判断する(判断60
1)。そして、「秘匿モード」ではなく「通常モード」
である場合は(判断601のNo)、符号化対象画像デ
ータを読み込んで(処理602)、通常モードで符号化
する処理を(処理603)、符号化対象画像データの全
データの読み込みが終了するまで繰り返す(判断604
のNoループ)。符号化対象画像データの全データにつ
いての符号化が完了し読み込みが終了すると(判断60
4のYes)、処理を終了する。
In FIG. 13, the system control unit 2 determines whether the current encoding mode is the “secret mode” based on the value of the flag stored in the RAM 4 (determination 60).
1). And "Normal mode" instead of "Hidden mode"
When (No in decision 601), the encoding target image data is read (process 602), the process of encoding in the normal mode is performed (process 603), and reading of all data of the encoding target image data ends. Repeat until (decision 604)
No loop). When the encoding of all the image data to be encoded is completed and the reading is completed (decision 60)
4 (Yes), the process ends.

【0087】判断601において、符号化モードが「秘
匿モード」である場合には(判断601のYes)、符
号化対象画像データを読み込んで(処理605)、所定
の特定図形挿入第1位置になったかを判断しつつ(判断
606のNo)、通常モードで符号化する処理を、繰り
返す(処理607)。
If the encoding mode is the “secret mode” in decision 601 (decision 601: Yes), the image data to be encoded is read (process 605), and the specified specific figure insertion first position is set. While performing the determination (No in determination 606), the process of encoding in the normal mode is repeated (process 607).

【0088】そして、判断606で特定図形挿入第1位
置になった場合は(判断606のYes)、処理605
で読み込んだ画像データの一部を、図10に示したよう
にROM3に予め記憶している特定図形データに置換す
る(処理608)。これにより、符号化対象画像データ
の所定の特定図形挿入第1位置に特定図形データが置換
されることになる。
If it is determined at the judgment 606 that the specific figure insertion first position has been reached (Yes at the judgment 606), the process 605 is executed.
A part of the image data read in is replaced with specific graphic data stored in the ROM 3 in advance as shown in FIG. 10 (process 608). As a result, the specific graphic data is replaced at the first specific graphic insertion first position of the encoding target image data.

【0089】そして、処理608で置換した特定図形デ
ータを通常モードで符号化し(処理609)、更に、符
号化対象画像データを読み込んで(処理610)、所定
の特定図形挿入第2位置になったかを判断しつつ(判断
611のNo)、通常モードで符号化する処理を、繰り
返す(処理612)。
Then, the specific graphic data replaced in the processing 608 is coded in the normal mode (processing 609), and the image data to be coded is read (processing 610). (No in decision 611), the process of encoding in the normal mode is repeated (process 612).

【0090】そして、判断611で特定図形挿入第2位
置になった場合は(判断611のYes)、処理610
で読み込んだ画像データの一部を、図10に示したよう
にROM3に予め記憶している特定図形データに置換す
る(処理613)。これにより、符号化対象画像データ
の所定の特定図形挿入第2位置に特定図形データが置換
されることになる。
If it is determined that the specific figure insertion second position has been reached in the judgment 611 (Yes in the judgment 611), the process 610 is executed.
A part of the image data read in is replaced with specific graphic data stored in the ROM 3 in advance as shown in FIG. 10 (process 613). As a result, the specific graphic data is replaced at the predetermined specific graphic insertion second position of the encoding target image data.

【0091】そして、処理613で置換した特定図形デ
ータを通常モードで符号化し(処理614)、更に、符
号化対象画像データを読み込んで(処理615)、所定
の鍵情報に基づく暗号化による秘匿モードで符号化する
処理を(処理616)、符号化対象画像データの全デー
タの読み込みが終了するまで繰り返す(判断617のN
oループ)。符号化対象画像データの全データについて
の符号化が完了し読み込みが終了すると(判断617の
Yes)、処理を終了する。
Then, the specific graphic data replaced in the process 613 is encoded in the normal mode (process 614), the image data to be encoded is read in (process 615), and the secret mode by encryption based on predetermined key information is obtained. (Process 616), and is repeated until reading of all data of the encoding target image data is completed (N in decision 617).
o loop). When the encoding of all the image data to be encoded is completed and the reading is completed (Yes in decision 617), the processing is terminated.

【0092】このように、図13に示した符号化処理手
順においては、特定図形データを、符号化対象画像デー
タ中の特定図形挿入第1位置及び第2位置のそれぞれ書
き込むことにより、全くの偶然により、置換した特定図
形データと同一パターンが符号化対象画像データ中に含
まれてしまうような場合に、復号化側で間違って解読モ
ードで復号化されてしまう事態を少なくすることができ
る。もちろん、符号化対象画像データ中に置換する特定
図形データの数が多いほど、復号化側における誤判定は
少なくなる。しかし、実際の画像データにとって、これ
らの特定画像データはノイズとなるため、極力少ない方
がよく、置換する特定図形データの個数は、復号化側に
おける誤判定の防止と、画像データの品質とのバランス
を考慮して決める必要がある。また、視覚上、あるいは
画像のレイアウト上、置換した特定図形データが目立た
ないような特定図形データの配置の方法もあると思われ
る。
As described above, in the encoding processing procedure shown in FIG. 13, the specific graphic data is written at each of the specific graphic insertion first position and the second position in the encoding target image data, thereby Accordingly, when the same pattern as the replaced specific graphic data is included in the encoding target image data, it is possible to reduce a situation in which the decoding side erroneously decodes the image data in the decoding mode. Of course, as the number of specific graphic data to be replaced in the encoding target image data increases, the number of erroneous determinations on the decoding side decreases. However, since the specific image data becomes noise for the actual image data, it is better to reduce the specific image data as much as possible.The number of specific graphic data to be replaced depends on the prevention of erroneous determination on the decoding side and the quality of the image data. It is necessary to consider the balance. In addition, it is considered that there is a method of arranging specific graphic data in which the replaced specific graphic data is inconspicuous visually or on an image layout.

【0093】また、このように、図11の判断501ま
たは図13の判断601がNoで、符号化対象画像デー
タの全データを通常モードで符号化して得られた画像デ
ータ、あるいは、図11の判断501または図13の判
断601がYesで、符号化対象画像データの所定の特
定図形挿入位置、または、所定の特定図形挿入第2位置
に置換された特定図形データまでが通常モードで符号化
され、その特定図形データ以後のデータを秘匿モードで
符号化した画像データは、区別なく相手先に回線を介し
て送信される。
As described above, the judgment 501 in FIG. 11 or the judgment 601 in FIG. 13 is No, and the image data obtained by encoding all the data of the image data to be encoded in the normal mode, or the image data in FIG. If the determination 501 or the determination 601 in FIG. 13 is Yes, the predetermined graphic insertion position of the encoding target image data or the specific graphic data replaced with the predetermined specific graphic insertion second position is encoded in the normal mode. The image data obtained by encoding the data after the specific graphic data in the secret mode is transmitted to the other party via the line without distinction.

【0094】一方、受信側では、図11の判断501ま
たは図13の判断601がYesとなった場合でもNo
となった場合でも、復号化対象画像データとして受信し
た、符号化された画像データが、通常モードで符号化さ
れた符号列から開始されているため、所定の特定図形挿
入位置、または、所定の特定図形挿入第2位置の特定図
形データを検出するまでは通常モードの符号化に対応す
る通常モードの復号化により、元の画像データを復元で
きる。
On the other hand, even if the judgment 501 in FIG. 11 or the judgment 601 in FIG.
Even when becomes, since the encoded image data received as the decoding target image data is started from the code sequence encoded in the normal mode, a predetermined specific graphic insertion position, or a predetermined Until the specific graphic data at the specific graphic insertion second position is detected, the original image data can be restored by decoding in the normal mode corresponding to the encoding in the normal mode.

【0095】図11の判断501または図13の判断6
01がNoとなった場合は、復号化対象画像データに特
定図形データが含まれないため、復号化対象画像データ
を最後まで通常モードで復号化すれば、正しい画像デー
タを復元できる。
Judgment 501 in FIG. 11 or Judgment 6 in FIG.
When 01 is No, the specific graphic data is not included in the decoding target image data. Therefore, if the decoding target image data is decoded to the end in the normal mode, correct image data can be restored.

【0096】一方、図11の判断501または図6の判
断601がYesとなった場合は、復号化対象画像デー
タに特定図形データが含まれるため、復号化対象画像デ
ータの所定の特定図形挿入位置、または、所定の特定図
形挿入第2位置に置換された特定図形データ以後のデー
タは、暗号化による秘匿処理を伴って符号化されている
ため、そのまま通常モードで復号化するとすると、正し
い画像データは復元できず、図11に示す符号化処理手
順に対応して後述する図14に示す復号化処理を行う必
要があり、また、図13に示す符号化処理手順に対応し
て後述する図16に示す復号化処理を行う必要がある。
On the other hand, if the judgment 501 in FIG. 11 or the judgment 601 in FIG. 6 is Yes, the specific graphic data is included in the image data to be decoded. Alternatively, since the data after the specific graphic data replaced at the predetermined specific graphic insertion second position is encoded with concealment processing by encryption, if it is decoded in the normal mode as it is, correct image data Cannot be restored, it is necessary to perform a decoding process shown in FIG. 14, which will be described later, corresponding to the encoding process shown in FIG. 11, and FIG. 16, which will be described later, corresponding to the encoding process shown in FIG. Must be performed.

【0097】しかし、符号化側(送信側)から復号化側
(受信側)に送信する符号化画像データが暗号化しない
通常モードで符号化されたものか、または、暗号化を伴
う秘匿モードで符号かされたものかを示す情報が符号化
画像データ内に特定図形データとして含まれているた
め、送信する符号化画像データが暗号化しない通常モー
ドで符号化されたものか、または、暗号化を伴う秘匿モ
ードで符号化されたものかを示す情報を、送信する符号
化画像データに付帯させて、G3ファクシミリプロトコ
ルの非標準機能設定信号NSS等のプロトコル信号によ
り別途通知する必要がなく、通信プロトコル制御手順
を、送信する符号化画像データの暗号化の有無によって
変更する必要がない。
However, the encoded image data transmitted from the encoding side (transmission side) to the decoding side (reception side) is encoded in the normal mode without encryption, or in the secret mode with encryption. Since the information indicating whether or not the image data is encoded is included in the encoded image data as specific graphic data, the encoded image data to be transmitted is encoded in the normal mode in which encryption is not performed, or the encoded image data is encrypted. There is no need to attach information indicating whether or not the image is encoded in the confidential mode to the transmitted encoded image data, and to separately notify by a protocol signal such as a non-standard function setting signal NSS of the G3 facsimile protocol. There is no need to change the protocol control procedure depending on whether or not the encoded image data to be transmitted is encrypted.

【0098】また、図11や図13に示した処理手順に
より符号化された画像データを、ファイルとして符号側
から復号化側に渡す場合について考えると、一般の画像
ファイルは、ヘッダと呼ばれるデータを、画像データ列
のはじめに持っている。ヘッダ中には画像サイズや符号
化方式に関する情報等を記録することができる。しかし
標準的ファイルフォーマットを用いる場合、暗号化を行
っているか否か等の情報に関してもヘッダ情報中に記載
する必要が生じるため、ファイルフォーマットが特別な
ものとなってしまう場合がある。
Also, considering a case where image data encoded according to the processing procedures shown in FIGS. 11 and 13 is transferred as a file from the encoding side to the decoding side, a general image file includes data called a header. Have at the beginning of the image data sequence. In the header, information relating to the image size and the encoding method can be recorded. However, when a standard file format is used, it is necessary to describe information such as whether or not encryption is performed in the header information, so that the file format may be special.

【0099】しかし、図11や図13に示した符号化処
理により得られる符号化画像データにおいては、符号化
側から復号化側に渡す符号化画像データが暗号化しない
通常モードで符号化されたものか、または、暗号化を伴
う秘匿モードで符号化されたものかを示す情報が符号化
画像データ内に特定図形データとして含まれているた
め、ヘッダ中に暗号化しているか否かの情報を記載する
必要はない。
However, in the coded image data obtained by the coding processing shown in FIGS. 11 and 13, the coded image data passed from the coding side to the decoding side is coded in the normal mode in which no encryption is performed. Since the information indicating whether the data is encoded in the confidential mode with encryption is included in the encoded image data as specific graphic data, information as to whether or not the header is encrypted is included in the header. No need to describe.

【0100】それにより、たとえばヘッダ中に暗号化し
ているかどうかを記載する部分が無い画像フォーマット
の場合も、暗号化された符号化画像データを格納するこ
とが可能となる。
Thus, for example, even in the case of an image format in which there is no portion in the header indicating whether or not encryption is performed, it is possible to store the encoded image data that has been encrypted.

【0101】また、図11または図13の符号化処理手
順では、符号化対象画像データ中の任意の位置ではな
く、所定の特定図形挿入位置、または、所定の特定図形
挿入対置位置及び第2位置に、特定図形データを置換す
るようにすることで、復号化側における特定図形データ
の探索処理を容易化することができ、探索処理に必要な
メモリ量も減らすことができ、探索処理速度を高速化で
きる。また、所定の特定図形挿入位置、または、所定の
特定図形挿入対置位置及び第2位置を符号化対象画像デ
ータの先頭とすれば、符号化対象画像データの全体を秘
匿することができ、また、復号化側における復号化時
に、復号化対象画像データが秘匿モードで符号化されて
いて、解読モードで復号化する必要があることを直ちに
判断できるようになる。もっとも、符号化対象画像デー
タ中の任意の位置に特定図形データを置換してもよい
が、その場合、復号化側における特定図形データの探索
処理は複雑化する。ただし、特別に画像データの途中ま
でを暗号化せずに通常モードで符号化して、誰にでも見
られるようにする必要がある場合などでは、該当する位
置より後に特定図形データ置換して、以後のデータのみ
を秘匿モードで符号化する方がよい場合もある。
Also, in the encoding processing procedure of FIG. 11 or FIG. 13, a predetermined specific figure insertion position or a predetermined specific figure insertion opposite position and a second position are not set at an arbitrary position in the encoding target image data. In addition, by replacing the specific graphic data, the search processing of the specific graphic data on the decoding side can be facilitated, the amount of memory required for the search processing can be reduced, and the search processing speed can be increased. Can be Further, if the predetermined specific graphic insertion position, or the predetermined specific graphic insertion opposite position and the second position are the beginning of the encoding target image data, the entire encoding target image data can be concealed. At the time of decoding on the decoding side, it is possible to immediately determine that the image data to be decoded has been encoded in the secret mode and needs to be decoded in the decoding mode. Of course, the specific graphic data may be replaced at an arbitrary position in the encoding target image data, but in that case, the process of searching for the specific graphic data on the decoding side becomes complicated. However, if it is necessary to encode the image data in the normal mode without encrypting the middle part of the image data, so that anyone can see it, replace the specific figure data after the corresponding position, It may be better to encode only the data in the secret mode.

【0102】次に、図11に示した符号化処理手順に対
応する復号化処理手順について、図14を参照して説明
する。なお、図14に示す処理により復号化されるの
は、相手先装置における図11に示す符号化処理手順に
より符号化され、通信制御部9、モデム10及び網制御
部11によりファクシミリメッセージとして回線を介し
て受信した符号化画像データ(復号化対象画像データ)
であり、復号化後の画像データは、画像出力手段6によ
り出力されるが、図11に示す処理では、ファクシミリ
装置1が画像復号化装置として、復号化対象画像データ
を復号化する手順のみについて説明し、符号化対象画像
データの受信・出力手順については説明を省略する。
Next, a decoding procedure corresponding to the encoding procedure shown in FIG. 11 will be described with reference to FIG. It is to be noted that what is decoded by the processing shown in FIG. 14 is encoded by the encoding processing procedure shown in FIG. 11 in the destination apparatus, and the communication control unit 9, the modem 10 and the network control unit 11 switch the line as a facsimile message. Image data (image data to be decoded) received via
The decoded image data is output by the image output means 6. In the processing shown in FIG. 11, only the procedure in which the facsimile apparatus 1 operates as an image decoding apparatus to decode the image data to be decoded. This will be described, and the description of the receiving / outputting procedure of the encoding target image data will be omitted.

【0103】図14において、システム制御部2は、相
手先からファクシミリメッセージとして受信し、RAM
4に一時記憶された復号化対象画像データから符号デー
タを符号化復号化部7に入力し(処理701)、通常モ
ードの符号化に対応する通常モードで復号化し(処理7
02)、復号化後のデータ中に、図10に示したように
ROM3に予め記憶した特定図形データがあるかを探索
する処理を(処理703)、復号化対象画像データの復
号化が完了して復号化すべき符号データが終了するか、
または、処理703により特定図形データが見つかるま
で繰り返す(判断704のNo,判断705のNoルー
プ)。
In FIG. 14, the system control unit 2 receives a facsimile message from the
4 is input to the encoding / decoding unit 7 from the decoding target image data temporarily stored in the decoding unit 4 (processing 701), and is decoded in the normal mode corresponding to the encoding in the normal mode (processing 7).
02), a process of searching for the specific graphic data stored in the ROM 3 in advance as shown in FIG. 10 in the data after decoding (process 703), and the decoding of the decoding target image data is completed. The code data to be decoded ends or
Alternatively, the process is repeated until specific graphic data is found by the process 703 (No in the judgment 704, No loop in the judgment 705).

【0104】そして、特定図形データみつからないまま
符号データが終了した場合は(判断705のYes)、
復号化処理を終了する。判断705がYesとなるの
は、復号化対象画像データ中に特定図形データが含まれ
ない場合、すなわち、復号化対象画像データが符号化側
で通常モードで符号化されたものである場合である。こ
れにより、通常モードで符号化された復号化対象画像デ
ータを正しく復号化して元の画像データに復元すること
ができる。
If the code data ends without finding the specific graphic data (Yes in decision 705),
The decoding process ends. The judgment 705 is Yes when the specific graphic data is not included in the image data to be decoded, that is, when the image data to be decoded has been encoded in the normal mode on the encoding side. . As a result, the decoding target image data encoded in the normal mode can be correctly decoded and restored to the original image data.

【0105】判断704で特定図形データがあった場合
は(判断704のYes)、復号化対象画像データから
符号データを更に符号化復号化部7に入力し(処理70
6)、秘匿モードの符号化において用いたものと同一の
鍵情報に基づいた解読モードで復号化する処理を(処理
707)、復号化対象画像データの復号化が完了して復
号化すべき符号データが終了するまで繰り返す(判断7
08のNoループ)。復号化対象画像データの全データ
についての復号化が完了し符号データが終了すると(判
断708のYes)、処理を終了する。
If there is specific graphic data in the judgment 704 (Yes in the judgment 704), code data from the image data to be decoded is further input to the coding / decoding section 7 (processing 70).
6) The process of decoding in the decryption mode based on the same key information as used in the encryption in the secret mode (process 707), and the code data to be decoded after the decoding of the decoding target image data is completed Is repeated until the process is completed (judgment 7
08 No loop). When decoding of all the image data to be decoded is completed and the code data ends (Yes in decision 708), the process ends.

【0106】これにより、図11に示した符号化処理に
より、通常モードで符号化された画像データも、秘匿モ
ードで符号化された画像データも、復号化対象画像デー
タに付帯した追加情報なしに正しく復号化して元の画像
データを復元できる。
As a result, both the image data encoded in the normal mode and the image data encoded in the secret mode by the encoding process shown in FIG. 11 can be performed without additional information attached to the image data to be decoded. Correct decoding can restore the original image data.

【0107】ここで、図14の処理703における特定
図形データの探索方法について、図15を参照して説明
する。
Here, a method of searching for specific graphic data in the process 703 in FIG. 14 will be described with reference to FIG.

【0108】同図(a)に示す黒画素群は、探索しよう
とする特定図形データである。そのようなビットマップ
の図形データを探索しようとすると、様々な方法がある
が、例えば、同図(b)にに示すような5×4マトリク
スのウインドウで復号化後の画像データを同図(c)に
示すようにラスタスキャンし、ビットマップの状態が、
見つけようとする同図(a)に示すパターンと同じにな
る部分を探す。このようにして、画像データ中の任意の
位置に置換された特定図形データを図形を見つけだそう
とすると、結局少なくとも4ライン程度のラインメモリ
が必要となり、必要なハードウェア資源が比較的大きく
なってしまう。しかし、符号化側と復号化側とで、予め
特定図形データの置換位置を定めておくことで、探索が
容易になり、必要なハードウェア資源を減らすことがで
きる。
The black pixel group shown in FIG. 9A is specific graphic data to be searched. There are various methods for searching for such bitmap graphic data. For example, image data after decoding is displayed in a 5 × 4 matrix window as shown in FIG. The raster scan is performed as shown in c), and the state of the bitmap is
The part which becomes the same as the pattern shown in FIG. In this way, when trying to find a graphic from specific graphic data replaced at an arbitrary position in the image data, a line memory of at least about 4 lines is required, and the required hardware resources are relatively large. Would. However, by determining the replacement position of the specific graphic data between the encoding side and the decoding side in advance, the search becomes easy and the necessary hardware resources can be reduced.

【0109】次に、図14に示した復号化処理手順の変
形例であり、図13に示した符号化処理手順に対応する
復号化処理手順である図16に示す手順について説明す
る。
Next, a procedure shown in FIG. 16, which is a modification of the decoding procedure shown in FIG. 14, and which corresponds to the encoding procedure shown in FIG. 13, will be described.

【0110】図16において、システム制御部2は、相
手先からファクシミリメッセージとして受信し、RAM
4に一時記憶された復号化対象画像データから符号デー
タを符号化復号化部7に入力し(処理801)、通常モ
ードの符号化に対応する通常モードで復号化し(処理8
02)、復号化後のデータ中に、図10に示したように
ROM3に予め記憶した特定図形データがあるかを探索
する処理を(処理803)、復号化対象画像データの復
号化が完了して復号化すべき符号データが終了するか、
または、処理803により特定図形データが見つかるま
で繰り返す(判断804のNo,判断805のNoルー
プ)。
In FIG. 16, the system control unit 2 receives a facsimile message from the
4 is input to the encoding / decoding unit 7 from the decoding target image data temporarily stored in the decoding unit 4 (process 801), and is decoded in the normal mode corresponding to the normal mode encoding (process 8).
02), a process for searching for specific graphic data stored in the ROM 3 in advance as shown in FIG. 10 in the decoded data (process 803), and the decoding of the decoding target image data is completed. The code data to be decoded ends or
Alternatively, the process is repeated until specific graphic data is found by the process 803 (No in the judgment 804, No loop in the judgment 805).

【0111】そして、特定図形データみつからないまま
符号データが終了した場合は(判断805のYes)、
復号化処理を終了する。判断805がYesとなるの
は、復号化対象画像データ中に特定図形データが含まれ
ない場合、すなわち、復号化対象画像データが符号化側
で通常モードで符号化されたものである場合である。こ
れにより、通常モードで符号化された復号化対象画像デ
ータを正しく復号化して元の画像データに復元すること
ができる。
If the code data ends without finding the specific graphic data (Yes in decision 805),
The decoding process ends. The determination 805 is Yes when the specific graphic data is not included in the image data to be decoded, that is, when the image data to be decoded has been encoded in the normal mode on the encoding side. . As a result, the decoding target image data encoded in the normal mode can be correctly decoded and restored to the original image data.

【0112】判断804で特定図形データがあった場合
は(判断804のYes)、復号化対象画像データから
符号データを符号化復号化部7に入力し(処理80
1)、通常モードの符号化に対応する通常モードで復号
化し(処理802)、復号化後のデータ中に、図10に
示したようにROM3に予め記憶した特定図形データが
あるかを探索する処理を(処理803)、復号化対象画
像データの復号化が完了して復号化すべき符号データが
終了するか、または、処理803により特定図形データ
が見つかるまで繰り返す(判断804のNo,判断80
5のNoループ)。
If there is specific graphic data in the judgment 804 (Yes in the judgment 804), code data from the image data to be decoded is inputted to the coding / decoding section 7 (step 80).
1) The decoding is performed in the normal mode corresponding to the encoding in the normal mode (process 802), and it is searched whether or not the decoded data includes the specific graphic data stored in the ROM 3 in advance as shown in FIG. The process is repeated (process 803) until the decoding of the image data to be decoded is completed and the code data to be decoded ends, or until the specific graphic data is found by the process 803 (No in decision 804, decision 80)
No. 5 loop).

【0113】そして、特定図形データみつからないまま
符号データが終了した場合は(判断805のYes)、
復号化処理を終了する。判断805がYesとなるの
は、復号化対象画像データ中に特定図形データが含まれ
ない場合、すなわち、復号化対象画像データが符号化側
で通常モードで符号化されたものである場合である。こ
れにより、通常モードで符号化された復号化対象画像デ
ータを正しく復号化して元の画像データに復元すること
ができる。
If the code data ends without finding the specific graphic data (Yes in decision 805),
The decoding process ends. The determination 805 is Yes when the specific graphic data is not included in the image data to be decoded, that is, when the image data to be decoded has been encoded in the normal mode on the encoding side. . As a result, the decoding target image data encoded in the normal mode can be correctly decoded and restored to the original image data.

【0114】判断804で特定図形データがあった場合
は(判断804のYes)、復号化対象画像データから
符号データを更に符号化復号化部7に入力し(処理80
6)、通常モードの符号化に対応する通常モードで復号
化し(処理807)、復号化後のデータ中に、図10に
示したようにROM3に予め記憶した特定図形データが
あるかを探索する処理を(処理808)、復号化対象画
像データの復号化が完了して復号化すべき符号データが
終了するか、または、処理808により特定図形データ
が見つかるまで繰り返す(判断809のNo,判断81
0のNoループ)。
If there is specific graphic data in the judgment 804 (Yes in the judgment 804), code data from the image data to be decoded is further input to the coding / decoding section 7 (step 80).
6), decoding is performed in the normal mode corresponding to the encoding in the normal mode (process 807), and it is searched whether there is specific graphic data stored in the ROM 3 in advance in the decoded data as shown in FIG. The process is repeated (process 808) until the decoding of the image data to be decoded is completed and the code data to be decoded ends, or until the specific graphic data is found by the process 808 (No in decision 809, decision 81)
No loop of 0).

【0115】そして、特定図形データみつからないまま
符号データが終了した場合は(判断810のYes)、
復号化処理を終了する。判断805がYesとなるの
は、2つ目の特定図形データが含まれない場合、すなわ
ち、復号化対象画像データが符号化側で通常モードで符
号化されたものである場合である。これにより、通常モ
ードで符号化された復号化対象画像データを正しく復号
化して元の画像データに復元することができる。
If the code data ends without finding the specific graphic data (Yes in decision 810),
The decoding process ends. The determination 805 is Yes when the second specific graphic data is not included, that is, when the decoding target image data is the one encoded in the normal mode on the encoding side. As a result, the decoding target image data encoded in the normal mode can be correctly decoded and restored to the original image data.

【0116】判断809で特定図形データがあった場合
は(判断804のYes)、復号化対象画像データから
符号データを更に符号化復号化部7に入力し(処理81
1)、秘匿モードの符号化において用いたものと同一の
鍵情報に基づいた解読モードで復号化する処理を(処理
812)、復号化対象画像データの復号化が完了して復
号化すべき符号データが終了するまで繰り返す(判断8
13のNoループ)。復号化対象画像データの全データ
についての復号化が完了し符号データが終了すると(判
断813のYes)、処理を終了する。
If there is specific graphic data in the judgment 809 (Yes in the judgment 804), code data from the image data to be decoded is further inputted to the coding / decoding section 7 (step 81).
1) The process of decoding in the decryption mode based on the same key information as used in the encryption of the secret mode (process 812), the code data to be decoded after the decoding of the decoding target image data is completed Is repeated until the process is completed (decision 8
13 No loop). When the decoding of all the image data to be decoded is completed and the code data ends (Yes in decision 813), the process ends.

【0117】これにより、図13に示した符号化処理に
より、通常モードで符号化された画像データも、秘匿モ
ードで符号化された画像データも、復号化対象画像デー
タに付帯した追加情報なしに正しく復号化して元の画像
データを復元できる。また、特定図形データと同一パタ
ーンが復号化対象画像データ中に含まれる場合に、誤っ
て解読モードの復号化が行われてしまうことを防止でき
る。
As a result, both the image data encoded in the normal mode and the image data encoded in the confidential mode by the encoding process shown in FIG. 13 can be performed without additional information attached to the image data to be decoded. Correct decoding can restore the original image data. Further, when the same pattern as the specific graphic data is included in the decoding target image data, it is possible to prevent the decoding mode from being erroneously decoded.

【0118】[0118]

【発明の効果】請求項1に係る発明によれば、前記秘匿
モードでない通常モードである場合は、前記符号化対象
画像データは、暗号化による秘匿処理を伴わない、通常
モードで符号化される一方、前記秘匿モードである場合
は、前記符号化対象画像データの一部が前記所定のマー
カデータに置換され、当該符号化対象画像データのうち
の当該マーカデータまでの部分、及び、当該マーカデー
タが、暗号化による秘匿処理を伴わない、通常モードで
符号化され、当該符号化対象画像データのうちの当該マ
ーカデータ以後の部分が、暗号化を伴う秘匿モードで符
号化されるため、符号化後の当該符号化対象画像データ
を画像復号化装置側が復号化対象画像データとして復号
する場合に、当該復号化対象画像データを前記通常モー
ドの符号化に対応する通常モードの復号化により最後ま
で順次復号化する間に前記マーカデータを検出しなけれ
ば、通常モードで符号化された復号化対象画像データを
正しく復号化でき、当該復号化対象画像データを前記通
常モードの符号化に対応する通常モードの復号化により
最後まで順次復号化する間に前記マーカデータを検出す
れば、以後前記秘匿モードの符号化に対応する解読モー
ドの復号化により、暗号化による秘匿処理を伴い符号化
された復号化対象画像データを正しく復号化できる。し
たがって、前記復号化対象画像データが暗号化されたも
のであるか否かについての情報を、別途通知する必要が
なく、通常の符号化画像データと暗号化された符号化画
像データとの互換性を維持した符号化を行うことが可能
となる効果が得られる。
According to the first aspect of the present invention, in the case of the normal mode other than the secret mode, the image data to be encoded is encoded in the normal mode without the secret process by encryption. On the other hand, in the case of the secret mode, a part of the encoding target image data is replaced with the predetermined marker data, a part of the encoding target image data up to the marker data, and the marker data. Is encoded in the normal mode without concealment processing by encryption, and the portion of the target image data after the marker data is encoded in the concealment mode with encryption. When the image decoding apparatus decodes the encoding target image data later as the decoding target image data, the decoding target image data corresponds to the encoding in the normal mode. If the marker data is not detected during the sequential decoding to the end by the decoding in the normal mode, the decoding target image data encoded in the normal mode can be correctly decoded. If the marker data is detected during the sequential decoding to the end by the decoding of the normal mode corresponding to the coding of the normal mode, if the marker data is detected in the decoding mode corresponding to the coding of the secret mode thereafter, the encryption It is possible to correctly decode image data to be decoded which has been encoded with concealment processing. Therefore, there is no need to separately notify the information as to whether or not the image data to be decrypted is encrypted, and the compatibility between normal encoded image data and encrypted encoded image data is not required. Thus, the effect that the encoding can be performed while maintaining the above is obtained.

【0119】請求項2に係る発明によれば、前記秘匿モ
ードでない通常モードである場合は、前記符号化対象画
像データは、暗号化による秘匿処理を伴わない、通常モ
ードで符号化される一方、前記秘匿モードである場合
は、前記符号化対象画像データ中に前記所定のマーカデ
ータが挿入され、当該符号化対象画像データのうちの当
該マーカデータまでの部分、及び、当該マーカデータ
が、暗号化による秘匿処理を伴わない、通常モードで符
号化され、当該符号化対象画像データのうちの当該マー
カデータ以後の部分が、暗号化を伴う秘匿モードで符号
化されるため、符号化後の当該符号化対象画像データを
画像復号化装置側が復号化対象画像データとして復号す
る場合に、当該復号化対象画像データを前記通常モード
の符号化に対応する通常モードの復号化により最後まで
順次復号化する間に前記マーカデータを検出しなけれ
ば、通常モードで符号化された復号化対象画像データを
正しく復号化でき、当該復号化対象画像データを前記通
常モードの符号化に対応する通常モードの復号化により
最後まで順次復号化する間に前記マーカデータを検出す
れば、以後前記秘匿モードの符号化に対応する解読モー
ドの復号化により、暗号化による秘匿処理を伴い符号化
された復号化対象画像データを正しく復号化できる。し
たがって、前記復号化対象画像データが暗号化されたも
のであるか否かについての情報を、別途通知する必要が
なく、通常の符号化画像データと暗号化された符号化画
像データとの互換性を維持した符号化を行うことが可能
となる効果が得られる。加えて、前記マーカデータは、
前記符号化対象画像データの一部と置換されるのではな
く、前記符号化対象画像データ中に挿入されるため、前
記符号化対象画像データの内容が欠落することなく画像
復号化装置に渡され、当該画像復号化装置において、前
記マーカデータを破棄すれば、前記マーカデータを含ま
ず内容の欠落もない元の画像データを復元することがで
きる効果が得られる。
According to the second aspect of the present invention, in the case of the normal mode other than the secret mode, the image data to be encoded is encoded in the normal mode without the secret process by encryption. In the confidential mode, the predetermined marker data is inserted into the encoding target image data, and a portion of the encoding target image data up to the marker data and the marker data are encrypted. Is encoded in the normal mode without the concealment process, and the portion of the image data to be encoded after the marker data is encoded in the concealment mode with the encryption. When the image decoding apparatus decodes the image data to be decoded as image data to be decoded, the image data to be decoded is passed to the normal mode encoding. If the marker data is not detected during the sequential decoding to the end by the decoding in the mode, the decoding target image data encoded in the normal mode can be correctly decoded, and the decoding target image data is converted to the normal mode. If the marker data is detected during the sequential decoding to the end by the decoding in the normal mode corresponding to the encoding of the above, the decryption in the decryption mode corresponding to the encoding in the above-described confidential mode, and the concealment process by the encryption Can correctly decode the decoding target image data. Therefore, there is no need to separately notify the information as to whether or not the image data to be decrypted is encrypted, and the compatibility between normal encoded image data and encrypted encoded image data is not required. Thus, the effect that the encoding can be performed while maintaining the above is obtained. In addition, the marker data is
Instead of being replaced with a part of the encoding target image data, since it is inserted into the encoding target image data, the content of the encoding target image data is passed to the image decoding device without loss. In the image decoding apparatus, if the marker data is discarded, an effect is obtained that original image data that does not include the marker data and has no loss of content can be restored.

【0120】請求項3に係る発明によれば、符号化後の
前記符号化対象画像データを画像復号化装置側が復号化
対象画像データとして復号する場合に、当該復号化対象
画像データが暗号化されたものであるか否かを直ちに判
断することが可能となる効果が有られる。
According to the third aspect of the present invention, when the image decoding apparatus decodes the encoded image data after encoding as the image data to be decoded, the image data to be decoded is encrypted. There is an effect that it is possible to immediately judge whether or not the data is correct.

【0121】請求項4に係る発明によれば、前記マーカ
データが複数ビットより成るため、前記マーカデータを
復号化装置側で検出する際の誤判定を、より少なくする
ことが可能となる効果が得られる。
According to the fourth aspect of the present invention, since the marker data is composed of a plurality of bits, it is possible to reduce erroneous determination when detecting the marker data on the decoding device side. can get.

【0122】請求項5に係る発明によれば、前記復号化
対象画像データを、請求項1に記載された画像符号化装
置等における通常モードの符号化に対応する通常モード
の復号化により最後まで順次復号化する間に前記マーカ
データが検出されなければ、通常モードで符号化された
符号化対象画像データを正しく復号化でき、当該復号化
対象画像データを前記通常モードの符号化に対応する通
常モードの復号化により最後まで順次復号化する間に前
記マーカデータが検出されれば、以後請求項1に記載さ
れた画像符号化装置等における秘匿モードの符号化に対
応する解読モードの復号化により、暗号化による秘匿処
理を伴い符号化された符号化対象画像データを正しく復
号化できる。したがって、前記復号化対象画像データが
暗号化されたものであるか否かについての情報の、画像
符号化装置からの通知が不要で、通常の符号化画像デー
タと暗号化された符号化画像データとの互換性を維持し
た符号化を画像符号化装置側に行わせることができ、ま
た、その画像符号化装置が符号化した画像データの暗号
化の有無を自動的に識別して元の画像データに復元する
ことが可能となる効果が得られる。
According to the fifth aspect of the present invention, the image data to be decoded is completely processed by decoding in the normal mode corresponding to the normal mode encoding in the image coding apparatus and the like according to the first aspect. If the marker data is not detected during the sequential decoding, the encoding target image data encoded in the normal mode can be correctly decoded, and the decoding target image data is converted to the normal mode corresponding to the encoding in the normal mode. If the marker data is detected during the sequential decoding to the end by the decoding of the mode, the decoding of the decoding mode corresponding to the encoding of the secret mode in the image encoding apparatus or the like according to claim 1 will be described. In addition, it is possible to correctly decode the encoding target image data that has been encoded with the concealment process by encryption. Therefore, there is no need to notify the image encoding apparatus of information as to whether or not the image data to be decrypted is encrypted, and normal encoded image data and encrypted encoded image data are not required. The image encoding device can perform encoding while maintaining compatibility with the image encoding device, and automatically identifies whether or not the image data encoded by the image encoding device is encrypted. The effect that data can be restored is obtained.

【0123】請求項6に係る発明によれば、前記復号化
対象画像データを、請求項2に記載された画像符号化装
置等における通常モードの符号化に対応する通常モード
の復号化により最後まで順次復号化する間に前記マーカ
データが検出されなければ、通常モードで符号化された
符号化対象画像データを正しく復号化でき、当該復号化
対象画像データを前記通常モードの符号化に対応する通
常モードの復号化により最後まで順次復号化する間に前
記マーカデータが検出されれば、以後請求項1に記載の
された画像符号化装置等における秘匿モードの符号化に
対応する解読モードの復号化により、暗号化による秘匿
処理を伴い符号化された符号化対象画像データを正しく
復号化でき、また、当該マーカデータが復号化後の画像
データから除去される。したがって、前記復号化対象画
像データが暗号化されたものであるか否かについての情
報の、画像符号化装置からの通知が不要で、通常の符号
化画像データと暗号化された符号化画像データとの互換
性を維持した符号化を画像符号化装置側に行わせること
ができ、また、その画像符号化装置が符号化した画像デ
ータの暗号化の有無を自動的に識別して元の画像データ
に、前記マーカデータを含まず内容の欠落もなく復元す
ることが可能となる効果が得られる。
According to the invention of claim 6, the image data to be decoded is completely processed by decoding in the normal mode corresponding to the coding in the normal mode in the image coding apparatus or the like according to claim 2. If the marker data is not detected during the sequential decoding, the encoding target image data encoded in the normal mode can be correctly decoded, and the decoding target image data is converted to the normal mode corresponding to the encoding in the normal mode. If the marker data is detected during sequential decoding to the end by mode decoding, decoding in a decoding mode corresponding to encoding in a secret mode in the image encoding apparatus or the like according to claim 1 thereafter. Thus, the encoding target image data encoded with the concealment process by encryption can be correctly decoded, and the marker data is removed from the decoded image data. That. Therefore, there is no need to notify the image encoding apparatus of information as to whether or not the image data to be decrypted is encrypted, and normal encoded image data and encrypted encoded image data are not required. The image encoding device can perform encoding while maintaining compatibility with the image encoding device, and automatically identifies whether or not the image data encoded by the image encoding device is encrypted. An effect is obtained that data can be restored without including the marker data and without loss of contents.

【0124】請求項7に係る発明によれば、前記秘匿モ
ードでない通常モードである場合は、前記符号化対象画
像データは、暗号化による秘匿処理を伴わない、通常モ
ードで符号化される一方、前記秘匿モードである場合
は、前記符号化対象画像データの一部が前記特定図形デ
ータに置換され、当該符号化対象画像データのうちの当
該特定図形データまでの部分、及び、当該特定図形デー
タが、暗号化による秘匿処理を伴わない、通常モードで
符号化され、当該符号化対象画像データのうちの当該特
定図形データ以後の部分が、暗号化を伴う秘匿モードで
符号化されるため、符号化後の当該符号化対象画像デー
タを画像復号化装置側が復号化対象画像データとして復
号する場合に、当該復号化対象画像データを前記通常モ
ードの符号化に対応する通常モードの復号化により最後
まで順次復号化する間に前記特定図形データが抽出され
なければ通常モードで符号化された復号化対象画像デー
タを正しく復号化でき、当該復号化対象画像データを前
記通常モードの符号化に対応する通常モードの復号化に
より最後まで順次復号化する間に前記特定図形データが
抽出されれば、以後前記秘匿モードの符号化に対応する
解読モードの復号化により、暗号化による秘匿処理を伴
い符号化された復号化対象画像データを正しく復号化で
きる。したがって、前記復号化対象画像データが暗号化
されたものであるか否かについての情報を、別途通知す
る必要がなく、通常の符号化画像データと暗号化された
符号化画像データとの互換性を維持した符号化を行うこ
とが可能となる効果が得られる。
According to the invention of claim 7, when the normal mode is not the secret mode, the image data to be encoded is encoded in the normal mode without the secret process by encryption. In the case of the secret mode, a part of the encoding target image data is replaced with the specific graphic data, a part of the encoding target image data up to the specific graphic data, and the specific graphic data are In this case, the image data is encoded in the normal mode without concealment processing by encryption, and the portion of the image data to be encoded subsequent to the specific graphic data is encoded in the concealment mode with encryption. When the image decoding apparatus decodes the encoding target image data later as the decoding target image data, the decoding target image data corresponds to the encoding in the normal mode. If the specific graphic data is not extracted during the sequential decoding to the end by the decoding in the normal mode, the decoding target image data encoded in the normal mode can be correctly decoded. If the specific graphic data is extracted during sequential decoding to the end by decoding in the normal mode corresponding to the encoding in the normal mode, the decryption in the decryption mode corresponding to the encoding in the secret mode is performed. It is possible to correctly decode the image data to be decoded which has been encoded with the concealment process by the encryption. Therefore, there is no need to separately notify the information as to whether or not the image data to be decrypted is encrypted, and the compatibility between normal encoded image data and encrypted encoded image data is not required. Thus, the effect that the encoding can be performed while maintaining the above is obtained.

【0125】請求項8に係る発明によれば、前記特定図
形データは、前記符号化対象画像データの予め決められ
た特定の位置に位置するため、画像復号化装置側におけ
る前記特定図形データの抽出が容易になり、復号化の処
理速度が向上するという効果が得られる。
According to the eighth aspect of the present invention, since the specific graphic data is located at a predetermined specific position of the encoding target image data, the specific graphic data is extracted on the image decoding apparatus side. And the decoding speed is improved.

【0126】請求項9に係る発明によれば、前記特定図
形データが前記符号化対象画像データに複数存在するこ
とになるため、前記特定画像データを1つのみ前記符号
化対象画像データ内に置換した場合に、全くの偶然で、
前記特定図形データと同一の内容が前記符号化対象画像
データ中に含まれていて、画像復号化装置側が御判定し
て解読モードの復号化の開始位置が本来の位置からずれ
たりして正常な復号化が行えなくなるような事態の発生
を起きにくくすることが可能となる効果が得られる。
According to the ninth aspect of the present invention, a plurality of the specific graphic data are present in the image data to be encoded. Therefore, only one specific image data is replaced in the image data to be encoded. If you do, by pure chance,
The same content as the specific graphic data is included in the image data to be encoded, and the image decoding apparatus determines that the decoding start position in the decoding mode is shifted from the original position and is normal. An effect is obtained that it is possible to make it difficult to cause a situation where decoding cannot be performed.

【0127】請求項10に係る発明によれば、前記復号
化対象画像データを、請求項7に記載された画像符号化
装置等における通常モードの符号化に対応する通常モー
ドの復号化により最後まで順次復号化する間に前記特定
図形データが抽出されなければ、通常モードで符号化さ
れた符号化対象画像データを正しく復号化でき、当該復
号化対象画像データを前記通常モードの符号化に対応す
る通常モードの復号化により最後まで順次復号化する間
に前記特定図形データが検出されれば、以後請求項7に
記載された画像符号化装置等における秘匿モードの符号
化に対応する解読モードの復号化により、暗号化による
秘匿処理を伴い符号化された符号化対象画像データを正
しく復号化できる。したがって、前記復号化対象画像デ
ータが暗号化されたものであるか否かについての情報
の、画像符号化装置からの通知が不要で、通常の符号化
画像データと暗号化された符号化画像データとの互換性
を維持した符号化を画像符号化装置側に行わせることが
でき、また、その画像符号化装置が符号化した画像デー
タの暗号化の有無を自動的に識別して元の画像データに
復元することが可能となる効果が得られる。
According to the tenth aspect of the present invention, the image data to be decoded is completely processed by decoding in the normal mode corresponding to the coding in the normal mode in the image coding apparatus according to the seventh aspect. If the specific graphic data is not extracted during the sequential decoding, the encoding target image data encoded in the normal mode can be correctly decoded, and the decoding target image data corresponds to the encoding in the normal mode. If the specific graphic data is detected during the sequential decoding to the end by the decoding in the normal mode, the decoding in the decoding mode corresponding to the coding in the secret mode in the image coding apparatus or the like according to claim 7 thereafter. Thus, the encoding target image data encoded with the concealment process by encryption can be correctly decoded. Therefore, there is no need to notify the image encoding apparatus of information as to whether or not the image data to be decrypted is encrypted, and normal encoded image data and encrypted encoded image data are not required. The image encoding device can perform encoding while maintaining compatibility with the image encoding device, and automatically identifies whether or not the image data encoded by the image encoding device is encrypted. The effect that data can be restored is obtained.

【0128】請求項11に係る発明によれば、請求項8
に記載の画像符号化装置等により前記復号化対象画像デ
ータの特定位置に置換されている前記特定図形データを
抽出することができるため、当該復号化対象画像データ
が暗号化されたものであるか否かを迅速に判断でき、復
号化の処理速度が向上するという効果が得られる。
According to the eleventh aspect, according to the eighth aspect,
It is possible to extract the specific graphic data substituted at a specific position of the decoding target image data by the image encoding device or the like according to the above, so that the decoding target image data is encrypted. It is possible to quickly determine whether or not the decoding process is to be performed, and the decoding speed is improved.

【0129】請求項12に係る発明によれば、請求項1
0と同様の効果に加えて、請求項9に記載の画像符号化
装置等において、前記復号化対象画像データ内に複数置
換された前記特定図形データを検出しないと、解読モー
ドの復号化に移行しないため、画像符号化装置側におい
て前記特定画像データを1つのみ前記復号化対象画像デ
ータ内に置換した場合に、全くの偶然で、前記特定図形
データと同一の内容が前記復号化対象画像データ中に含
まれていて、解読モードの復号化の開始位置が本来の位
置からずれたりして正常な復号化が行えなくなるような
事態の発生を起きにくくすることが可能となる効果が得
られる。
According to the twelfth aspect, in the first aspect,
10. In addition to the same effect as that of 0, in the image encoding device or the like according to claim 9, if the specific graphic data replaced with a plurality in the decoding target image data is not detected, the process shifts to decoding in decoding mode. Therefore, if only one specific image data is replaced in the image data to be decoded on the image encoding device side, the same content as the specific graphic data is completely accidentally replaced by the image data to be decoded. This has the effect that it is possible to prevent the occurrence of a situation in which the decoding start position in the decoding mode is shifted from the original position and normal decoding cannot be performed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態に係る画像符号化装置及び
画像復号化装置としてのファクシミリ装置のブロック構
成を示す図である。
FIG. 1 is a diagram showing a block configuration of a facsimile apparatus as an image encoding device and an image decoding device according to an embodiment of the present invention.

【図2】本発明の実施の形態に係るファクシミリ装置の
操作表示部の部分構成について示す図である。
FIG. 2 is a diagram showing a partial configuration of an operation display unit of the facsimile apparatus according to the embodiment of the present invention.

【図3】本発明の実施の形態に係るファクシミリ装置の
ROMの記憶内容について示す図である。
FIG. 3 is a diagram showing storage contents of a ROM of the facsimile apparatus according to the embodiment of the present invention.

【図4】本発明の実施の形態に係るファクシミリ装置に
おける符号化処理手順について示すフローチャートであ
る。
FIG. 4 is a flowchart showing an encoding processing procedure in the facsimile apparatus according to the embodiment of the present invention.

【図5】画像データ列と、その画像データ列の一部と図
4に示す処理により置換されるマーカデータとについて
示す図である。
5 is a diagram showing an image data sequence, a part of the image data sequence, and marker data replaced by the processing shown in FIG. 4;

【図6】本発明の実施の形態に係るファクシミリ装置に
おける、図4に示すものとは別の符号化処理手順につい
て示すフローチャートである。
FIG. 6 is a flowchart showing an encoding processing procedure different from that shown in FIG. 4 in the facsimile apparatus according to the embodiment of the present invention.

【図7】画像データ列と、その画像データ列中に図6に
示す処理により挿入されるマーカデータとについて示す
図である。
7 is a diagram showing an image data sequence and marker data inserted into the image data sequence by the processing shown in FIG. 6;

【図8】本発明の実施の形態に係るファクシミリ装置に
おける復号化処理手順を示すフローチャートである。
FIG. 8 is a flowchart showing a decoding processing procedure in the facsimile apparatus according to the embodiment of the present invention.

【図9】本発明の実施の形態に係るファクシミリ装置に
おける図8に示すものとは別の復号化処理手順について
示すフローチャートである。
FIG. 9 is a flowchart showing another decoding processing procedure different from that shown in FIG. 8 in the facsimile apparatus according to the embodiment of the present invention.

【図10】本発明の実施の形態に係るファクシミリ装置
のROMの記憶内容について示す、図3とは別の図であ
る。
FIG. 10 is a diagram different from FIG. 3, showing the contents stored in the ROM of the facsimile apparatus according to the embodiment of the present invention.

【図11】本発明の実施の形態に係るファクシミリ装置
における、図4または図6に示すものとは別の符号化処
理手順について示すフローチャートである。
FIG. 11 is a flowchart showing another encoding processing procedure different from that shown in FIG. 4 or FIG. 6 in the facsimile apparatus according to the embodiment of the present invention.

【図12】画像データ列と、その画像データ列の一部と
図11に示す処理により置換される特定図形データとに
ついて示す図である。
12 is a diagram showing an image data sequence, a part of the image data sequence, and specific graphic data to be replaced by the processing shown in FIG. 11;

【図13】本発明の実施の形態に係るファクシミリ装置
における、図4、図6または図11に示すものとは別の
符号化処理手順について示すフローチャートである。
FIG. 13 is a flowchart showing an encoding processing procedure different from that shown in FIG. 4, FIG. 6, or FIG. 11 in the facsimile apparatus according to the embodiment of the present invention.

【図14】本発明の実施の形態に係るファクシミリ装置
における図8または図9に示すものとは別の復号化処理
手順について示すフローチャートである。
FIG. 14 is a flowchart showing another decoding processing procedure different from that shown in FIG. 8 or 9 in the facsimile apparatus according to the embodiment of the present invention.

【図15】特定図形データの探索方法について示す模式
図である。
FIG. 15 is a schematic diagram illustrating a method for searching for specific graphic data.

【図16】本発明の実施の形態に係るファクシミリ装置
における図8、図9または図14に示すものとは別の復
号化処理手順について示すフローチャートである。
FIG. 16 is a flowchart showing a decoding processing procedure different from that shown in FIG. 8, FIG. 9, or FIG. 14 in the facsimile apparatus according to the embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 ファクシミリ装置 2 システム制御部 3 ROM 3a マーカデータのための記憶領域 3b 特定図形データのための記憶領域 4 RAM 5 画像入力手段 6 画像出力手段 7 符号化復号化部 8 操作表示部 8a [秘匿モード]キー 8b インジケータランプ 9 通信制御部 10 モデム 11 網制御部 12 システムバス DESCRIPTION OF SYMBOLS 1 Facsimile apparatus 2 System control part 3 ROM 3a Storage area for marker data 3b Storage area for specific figure data 4 RAM 5 Image input means 6 Image output means 7 Encoding / decoding part 8 Operation display part 8a [Confidential mode ] Key 8b indicator lamp 9 communication control unit 10 modem 11 network control unit 12 system bus

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 7/167 H04N 7/167 Z 5J104 Fターム(参考) 5C059 KK43 MA00 MC26 PP01 RC24 RC35 SS06 UA02 UA05 UA39 5C064 CA14 CB01 CC01 CC04 5C075 AA02 AA03 AA05 CD27 EE03 EE06 5C078 BA21 CA47 DA01 DA02 DB00 5J064 AA00 BA08 BB08 BB13 BC01 BD02 5J104 AA33 NA10 PA00 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI theme coat ゛ (Reference) H04N 7/167 H04N 7/167 Z 5J104 F-term (Reference) 5C059 KK43 MA00 MC26 PP01 RC24 RC35 SS06 UA02 UA05 UA39 5C064 CA14 CB01 CC01 CC04 5C075 AA02 AA03 AA05 CD27 EE03 EE06 5C078 BA21 CA47 DA01 DA02 DB00 5J064 AA00 BA08 BB08 BB13 BC01 BD02 5J104 AA33 NA10 PA00

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 符号化対象画像データを符号化すると共
に、秘匿モードに設定されている場合は、前記符号化対
象画像データの符号化の際に暗号化による秘匿処理をも
併せて行う画像符号化装置において、 前記秘匿モードに設定されている場合は、前記符号化対
象画像データの一部を、所定のマーカデータに置換する
マーカ置換手段と、前記符号化対象画像データのうちの
前記マーカデータまで、及び、当該マーカデータを通常
モードで符号化する通常符号化手段と、前記符号化対象
画像データのうちの前記マーカデータ以後の部分につい
て暗号化を伴う符号化を行う秘匿符号化手段とを備えた
ことを特徴とする画像符号化装置。
An image code which encodes image data to be encoded and, when the image data to be encoded is set to a confidential mode, performs a concealment process by encryption at the time of encoding the image data to be encoded. In the encoding device, when the secret mode is set, a part of the encoding target image data is replaced with a predetermined marker data, a marker replacing unit, and the marker data of the encoding target image data And a normal encoding unit that encodes the marker data in the normal mode, and a concealment encoding unit that performs encoding with encryption for a portion of the image data to be encoded subsequent to the marker data. An image encoding device, comprising:
【請求項2】 符号化対象画像データを符号化すると共
に、秘匿モードに設定されている場合は、前記符号化対
象画像データの符号化の際に暗号化による秘匿処理をも
併せて行う画像符号化装置において、 前記秘匿モードに設定されている場合は、前記符号化対
象画像データ中に、所定のマーカデータに挿入するマー
カ挿入手段と、前記符号化対象画像データのうちの前記
マーカデータまで、及び、当該マーカデータを通常モー
ドで符号化する通常符号化手段と、前記符号化対象画像
データのうちの前記マーカデータ以後の部分について暗
号化を伴う符号化を行う秘匿符号化手段とを備えたこと
を特徴とする画像符号化装置。
2. An image code which encodes image data to be encoded and, when the image data to be encoded is set to a confidential mode, performs concealment processing by encryption when encoding the image data to be encoded. In the encoding device, when the secret mode is set, in the encoding target image data, a marker insertion unit that inserts into predetermined marker data, up to the marker data of the encoding target image data, And a normal encoding unit that encodes the marker data in the normal mode, and a secret encoding unit that performs encoding with encryption for a portion of the image data to be encoded subsequent to the marker data. An image encoding device, characterized in that:
【請求項3】 前記マーカデータは、前記符号化対象画
像データの先端に位置することを特徴とする請求項1ま
たは2のいずれかに記載の画像符号化装置。
3. The image encoding apparatus according to claim 1, wherein the marker data is located at a leading end of the encoding target image data.
【請求項4】 前記マーカデータは、複数ビットより成
ることを特徴とする請求項1、2または3のいずれかに
記載の画像符号化装置。
4. The image encoding apparatus according to claim 1, wherein said marker data is composed of a plurality of bits.
【請求項5】 符号化された復号化対象画像データを復
号化すると共に、当該復号化対象画像データが暗号化さ
れている場合には暗号解読処理をも併せて行う画像復号
化装置において、 前記復号化対象画像データを後記マーカ検出手段が所定
のマーカデータを検出するまで通常モードで復号化する
通常復号化手段と、その通常復号化手段により復号化さ
れた画像データから前記マーカデータを検出するマーカ
検出手段と、そのマーカ検出手段により前記マーカデー
タが検出されると、それ以後、前記復号化対象画像デー
タを暗号解読処理を伴う解読モードで復号化する解読復
号化手段とを備えたことを特徴とする画像復号化装置。
5. An image decoding apparatus that decodes encoded image data to be decoded and, when the image data to be decoded is encrypted, also performs a decryption process. A normal decoding unit for decoding the decoding target image data in a normal mode until the marker detection unit detects predetermined marker data, and detecting the marker data from the image data decoded by the normal decoding unit Marker detection means, and decryption decryption means for decrypting the decryption target image data in a decryption mode involving decryption processing after the marker data is detected by the marker detection means. An image decoding device characterized by the following.
【請求項6】 符号化された復号化対象画像データを復
号化すると共に、当該復号化対象画像データが暗号化さ
れている場合には暗号解読処理をも併せて行う画像復号
化装置において、 前記復号化対象画像データを後記マーカ検出手段が所定
のマーカデータを検出されるまで通常モードで復号化す
る通常復号化手段と、その通常復号化手段により復号化
された画像データから前記マーカデータを検出するマー
カ検出手段と、そのマーカ検出手段により検出された前
記マーカデータを復号化後の画像データから除去するマ
ーカ除去手段と、前記マーカ検出手段により前記マーカ
データが検出されると、それ以後、前記復号化対象画像
データを暗号解読処理を伴う解読モードで復号化する解
読復号化手段とを備えたことを特徴とする画像復号化装
置。
6. An image decoding apparatus for decoding encoded image data to be decoded and, when the image data to be decoded is encrypted, also performing a decryption process. A normal decoding means for decoding the image data to be decoded in a normal mode until the marker detecting means detects predetermined marker data, and detecting the marker data from the image data decoded by the normal decoding means Marker detecting means, marker removing means for removing the marker data detected by the marker detecting means from the decoded image data, and when the marker data is detected by the marker detecting means, Decryption means for decrypting image data to be decrypted in a decryption mode involving decryption processing. .
【請求項7】 符号化対象画像データを符号化すると共
に、秘匿モードに設定されている場合は、前記符号化対
象画像データの符号化の際に暗号化による秘匿処理をも
併せて行う画像符号化装置において、 前記秘匿モードに設定されている場合は、前記符号化対
象画像データの一部を、特定図形データに置換する特定
図形置換手段と、前記符号化対象画像データのうちの前
記特定図形まで、及び、当該特定図形を通常モードで符
号化する通常符号化手段と、前記符号化対象画像データ
のうちの前記特定図形以後の部分について暗号化を伴う
符号化を行う秘匿符号化手段とを備えたことを特徴とす
る画像符号化装置。
7. An image code for encoding image data to be encoded and, when the encryption mode is set, performing a concealment process by encryption when encoding the image data to be encoded. In the encoding apparatus, when the secret mode is set, a specific graphic replacement unit that replaces a part of the encoding target image data with specific graphic data, and the specific graphic of the encoding target image data. And a normal encoding unit that encodes the specific graphic in the normal mode, and a confidential encoding unit that performs encoding with encryption for a portion of the image data to be encoded after the specific graphic. An image encoding device, comprising:
【請求項8】 前記特定図形データは、前記符号化対象
画像データの予め決められた特定の位置に位置すること
を特徴とする請求項7に記載の画像符号化装置。
8. The image encoding apparatus according to claim 7, wherein the specific graphic data is located at a predetermined specific position of the image data to be encoded.
【請求項9】 前記特定図形置換手段は、複数の前記特
定図形データを前記符号化対象画像データ中に置換する
ことを特徴とする請求項7または8のいずれかに記載の
画像符号化装置。
9. The image encoding apparatus according to claim 7, wherein the specific graphic replacing unit replaces the plurality of specific graphic data in the encoding target image data.
【請求項10】 符号化された復号化対象画像データを
復号化すると共に、当該復号化対象画像データが暗号化
されている場合には暗号解読処理をも併せて行う画像復
号化装置において、 前記復号化対象画像データを後記特定図形抽出手段が特
定図形データを抽出するまで通常モードで復号化する通
常復号化手段と、その通常復号化手段により復号化され
た画像データから前記特定図形データを抽出する特定図
形抽出手段と、その特定図形抽出手段により前記特定図
形データが抽出されると、それ以後、前記復号化対象画
像データを暗号解読処理を伴う解読モードで復号化する
解読復号化手段とを備えたことを特徴とする画像復号化
装置。
10. An image decoding apparatus which decodes encoded image data to be decoded and, when the image data to be decoded is encrypted, also performs a decryption process. A normal decoding unit for decoding the image data to be decoded in a normal mode until the specific figure extracting unit extracts the specific figure data, and extracting the specific figure data from the image data decoded by the normal decoding unit A specific graphic extracting means for performing the decoding and the decryption decoding means for decrypting the image data to be decrypted in a decryption mode involving a decryption process after the specific graphic data is extracted by the specific graphic extracting means. An image decoding device, comprising:
【請求項11】 前記特定図形抽出手段は、前記復号化
対象画像データの特定位置から前記特定図形データを抽
出することを特徴とする請求項10に記載の画像復号化
装置。
11. The image decoding apparatus according to claim 10, wherein the specific graphic extracting means extracts the specific graphic data from a specific position of the image data to be decoded.
【請求項12】 符号化された復号化対象画像データを
復号化すると共に、当該復号化対象画像データが暗号化
されている場合には暗号解読処理をも併せて行う画像復
号化装置において、 前記復号化対象画像データを後記特定図形抽出手段が予
め決められた組み合わせの複数の特定図形データを抽出
するまで通常モードで復号化する通常復号化手段と、そ
の通常復号化手段により復号化された画像データから前
記複数の特定図形データを抽出する特定図形抽出手段
と、その特定図形抽出手段により前記複数の特定図形デ
ータが抽出されると、それ以後、前記復号化対象画像デ
ータを暗号解読処理を伴う解読モードで復号化する解読
復号化手段とを備えたことを特徴とする画像復号化装
置。
12. An image decoding apparatus for decoding encoded image data to be decoded and, when the image data to be decoded is encrypted, also performing a decryption process. A normal decoding unit for decoding the image data to be decoded in a normal mode until the specific figure extracting unit extracts a plurality of specific figure data of a predetermined combination, and an image decoded by the normal decoding unit; A specific figure extracting means for extracting the plurality of specific figure data from the data; and when the plurality of specific figure data is extracted by the specific figure extracting means, thereafter, the decryption target image data is accompanied by a decryption process. An image decoding apparatus, comprising: decoding decoding means for decoding in a decoding mode.
JP03086699A 1999-02-09 1999-02-09 Image encoding apparatus and image decoding apparatus Expired - Fee Related JP3808229B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03086699A JP3808229B2 (en) 1999-02-09 1999-02-09 Image encoding apparatus and image decoding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03086699A JP3808229B2 (en) 1999-02-09 1999-02-09 Image encoding apparatus and image decoding apparatus

Publications (2)

Publication Number Publication Date
JP2000232586A true JP2000232586A (en) 2000-08-22
JP3808229B2 JP3808229B2 (en) 2006-08-09

Family

ID=12315662

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03086699A Expired - Fee Related JP3808229B2 (en) 1999-02-09 1999-02-09 Image encoding apparatus and image decoding apparatus

Country Status (1)

Country Link
JP (1) JP3808229B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008053545A1 (en) * 2006-10-31 2008-05-08 Fujitsu Limited Image encryption/decryption device, method and program
JP2008131494A (en) * 2006-11-22 2008-06-05 Canon Inc Image communication apparatus and method, and program and storage medium
WO2008146390A1 (en) * 2007-05-31 2008-12-04 Pfu Limited Paper media information encryption system, decryption system, program and method for the same
WO2008146391A1 (en) * 2007-05-31 2008-12-04 Pfu Limited Electronic data encryption system, decryption system, program and method for the same
JP2009206990A (en) * 2008-02-28 2009-09-10 Fujitsu Ltd Image decrypting apparatus, image encrypting apparatus, image decrypting method, and image decrypting program
JP4796150B2 (en) * 2006-10-31 2011-10-19 富士通株式会社 Image encryption / decryption device, method and program
US8515062B2 (en) * 2007-05-30 2013-08-20 Fujitsu Limited Image encryption/decryption apparatus, method and program

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008053545A1 (en) * 2006-10-31 2008-05-08 Fujitsu Limited Image encryption/decryption device, method and program
WO2008053576A1 (en) * 2006-10-31 2008-05-08 Fujitsu Limited Image encryption/decryption device, method, and program
KR101005377B1 (en) 2006-10-31 2010-12-30 후지쯔 가부시끼가이샤 Image encryption/decryption device, method, and recording medium
JP4796150B2 (en) * 2006-10-31 2011-10-19 富士通株式会社 Image encryption / decryption device, method and program
US8433067B2 (en) * 2006-10-31 2013-04-30 Fujitsu Limited Device, method, and program for image encryption/decryption
JP2008131494A (en) * 2006-11-22 2008-06-05 Canon Inc Image communication apparatus and method, and program and storage medium
US8515062B2 (en) * 2007-05-30 2013-08-20 Fujitsu Limited Image encryption/decryption apparatus, method and program
WO2008146390A1 (en) * 2007-05-31 2008-12-04 Pfu Limited Paper media information encryption system, decryption system, program and method for the same
WO2008146391A1 (en) * 2007-05-31 2008-12-04 Pfu Limited Electronic data encryption system, decryption system, program and method for the same
JP4800420B2 (en) * 2007-05-31 2011-10-26 株式会社Pfu Paper medium information encryption system, decryption system, program and method
US8810862B2 (en) 2007-05-31 2014-08-19 Pfu Limited Paper medium information encrypting system, decrypting system, program and method
JP2009206990A (en) * 2008-02-28 2009-09-10 Fujitsu Ltd Image decrypting apparatus, image encrypting apparatus, image decrypting method, and image decrypting program

Also Published As

Publication number Publication date
JP3808229B2 (en) 2006-08-09

Similar Documents

Publication Publication Date Title
US5574789A (en) Encryption communication method and terminal device for encryption communication
JPH07288514A (en) Communication equipment
JP3808229B2 (en) Image encoding apparatus and image decoding apparatus
AU2007361621B2 (en) Method and apparatus for secured facsimile transmission
EP0706284A1 (en) Image communicating apparatus
JP3848002B2 (en) Image data transmission device
JPH0869250A (en) Input device for coding key or decoding key and communication device
JP3300375B2 (en) Transmission device having encryption function
JPH10303879A (en) Enciphering method
JPH10301490A (en) Method of encipherment
JP2807293B2 (en) Image data encoding / decoding method and facsimile apparatus
JP2653490B2 (en) Image data encoding / decoding method and facsimile apparatus
JP2653497B2 (en) Image data encoding / decoding method and facsimile apparatus
JP3121981B2 (en) Terminal device for encrypted communication
JPH06326881A (en) Ciphering device for facsimile equipment and ciphering method
JP2965307B2 (en) Facsimile machine
JPH08149315A (en) Image processor image information transmitter and image information receiver
JPH0884261A (en) Communication equipment
JP2002305643A (en) Facsimile machine
JPH11331619A (en) Communication equipment
JPH03205964A (en) Transmission system for enciphered image signal
JPH08321955A (en) Facsimile communication method
Athira Mohan AN EFFICIENT JOINT DATA HIDING AND COMPRESSION
JPH07115550A (en) Device and method for ciphering for facsimile equipment
JPH08107411A (en) Communication equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041228

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060516

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060517

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100526

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110526

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120526

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120526

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130526

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130526

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees