JP4471319B2 - Information processing apparatus and method - Google Patents

Information processing apparatus and method Download PDF

Info

Publication number
JP4471319B2
JP4471319B2 JP16297399A JP16297399A JP4471319B2 JP 4471319 B2 JP4471319 B2 JP 4471319B2 JP 16297399 A JP16297399 A JP 16297399A JP 16297399 A JP16297399 A JP 16297399A JP 4471319 B2 JP4471319 B2 JP 4471319B2
Authority
JP
Japan
Prior art keywords
image
image file
file
layout
display
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.)
Expired - Fee Related
Application number
JP16297399A
Other languages
Japanese (ja)
Other versions
JP2000353167A (en
Inventor
泰昌 虎谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP16297399A priority Critical patent/JP4471319B2/en
Publication of JP2000353167A publication Critical patent/JP2000353167A/en
Application granted granted Critical
Publication of JP4471319B2 publication Critical patent/JP4471319B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、例えばレイアウトテンプレートに関連づけられた複数の画像を表示するのに好適な情報処理装置及び方法に関する。
【0002】
【従来の技術】
従来より、画像処理装置において、デジタルカメラ等の備える外部の画像記憶装置からカラー画像をワープロ等の画像処理装置に読み込み、その画像を表示画面に表示することが行われてきた。また、それらの画像を画面上に複数配置したり、各々の画像を拡大、縮小したり、位置を移動したり、複写したり、画像同士を入れ替えて表示するなどの、画像編集処理がおこなわれてきた。
【0003】
その際、各々の画像データは通常別々の画像ファイルとして扱われ、複数の画像ファイルの表示順、表示位置、表示する幅、高さ、画像ファイル名などを記憶するレイアウトファイルを別に用意し、上記表示順等の変更はレイアウトファイルを編集することにより行われるのが一般的であった。
【0004】
【発明が解決しようとする課題】
しかしながら、近年の情報処理機器の普及によって、上記編集操作によって編集されたレイアウトファイルおよび画像ファイルを記憶するディスク等の2次記憶装置に別の目的でアクセスして、その内容を読み出したり変更するなどの操作を行う機会が増加している。これに伴い、機器に格納されている上記レイアウトファイルおよび画像ファイルが不正に変更されてしまったり、あるいは機器に発生した何らかのエラーによってデータが破壊されるなどによって、レイアウトファイルと画像ファイルの相互の整合性を確保することが困難になってきている。そして、最悪の場合レイアウトファイルに本来関係すべき画像ファイル以外の、不正な画像ファイルが関連付けられてしまう可能性があった。
【0005】
本発明は上記の問題に鑑みてなされたものであり、レイアウトファイルに登録してある画像を表示するに際して、不正な画像ファイルの関連付けを排除することを可能とすることにある。
【0006】
【課題を解決するための手段】
上記の目的を達成するための本発明の情報処理装置は例えば以下の構成を備える。すなわち、
記憶装置に格納された画像ファイルを表示装置に表示する情報処理装置であって、
表示すべき画像ファイルの画像ファイル名とその表示位置が記述されたレイアウトファイルを生成する生成手段と、
前記生成手段による前記レイアウトファイルへの前記画像ファイル名の記述時において、前記画像ファイルの固有値を算出する算出手段と、
前記算出手段により算出された前記固有値を、前記画像ファイル名と関連付けて前記レイアウトファイルに付加するとともに、前記画像ファイル名により指定される、前記記憶装置に格納された画像ファイルの特定の領域に前記固有値を付加する付加手段と、
前記レイアウトファイルの表示が指示されると、前記レイアウトファイルにおいて画像ファイル名に関連付けて付加された固有値と当該画像ファイル名にしたがって記憶装置から読み出された画像ファイルに付加されている固有値とを比較する比較手段と、
前記比較手段により比較された固有値が一致するとき、前記読み出された画像ファイルを前記レイアウトファイルに設定された表示位置に表示する表示手段とを備える。
【0007】
また、本発明によれば、上記情報処理装置の構成によって実現される情報処理方法が提供される。また、本発明によれば、情報処理方法をコンピュータに実現させるためのプログラムを格納するコンピュータ読み取り可能な記憶媒体が提供される。
【0008】
【発明の実施の形態】
以下、添付の図面に基づいて、本発明の好適な実施形態を詳細に、かつ具体的に説明する。
【0009】
図1は、本実施形態の画像処理装置の構成を示すブロック図である。図1において、1は中央演算処理装置(CPU)であり、2は読み出し専用メモリ(ROM)であり、3は読み書き可能なメモリ(RAM)であり、4は外部に増設された読み出し専用メモリ(外部ROM)であり、5はキーボード制御装置(KBC)であり、6はキーボード(KB)であり、7は表示制御装置(CRTC)であり、8は表示装置(CRT)であり、9は周辺装置制御装置(PKC)であり、10は外部記憶装置(FDおよびHD)であり、11はリアルタイムクロック(RTC)であり、12はそれら装置間のデータの送受信を行うためのシステムバスである。
【0010】
本装置において、CPU1によって実行される制御プログラムは、ROM2あるいはRAM3上に存在し、CPU1がシステムバスを通じて逐次プログラムをROM2あるいはRAM3から読み出しつつ目的の処理を行う。
【0011】
図2、図3、図4、図5は、本実施形態の画像処理装置により処理を説明するためのフローチャートである。かかるフローチャートを参照して、本装置の動作を以下順をおって説明する。
【0012】
まず、最初にレイアウトファイルに登録されている画像を表示する処理について説明する。図2のフローチャートは、画像処理装置に対して、画像の表示を指示することから始まる。
【0013】
先ずステップS101では画像を表示するためのレイアウトファイルを指定する。次にステップS102ではどの画像を処理しているかを表す変数Iを1に初期化する。次にステップS103では、レイアウトファイルからI番目の画像レイアウト情報をワーク1に読み込む。ワークはFDまたはHD10またはRAM3上に確保された領域であり、CPU1による処理の際に参照あるいは更新される。
【0014】
レイアウトファイルの構造は図6に示すように、レイアウトファイルに登録されている画像の数Nと、それに続くN個の画像レイアウト情報からなる。各画像レイアウト情報の構造は図7に示すように、画像のファイル名G、画像の固有値P、画像の水平方向表示位置X、画像の垂直方向表示位置Y、画像の水平方向表示画素数W、画像の垂直方向表示画素数Hからなる。画像のファイル名Gを設定する領域には予め固定長の領域を割り当てておき、その先頭からファイル名を表すACSII文字列を格納し未尾に0をセットする。画像の固有値Pは、レイアウトファイルに画像を登録する際に計算した画像毎に固有の値であり、登録時にレイアウトファイルと画像ファイルの双方に同じ値をセットしたものである。
【0015】
画像の水平方向表示位置Xおよび垂直方向表示位置Yは、画面における表示位置を表す。表示画面は、その左上角の画素を原点とし、原点から右水平方向にX軸、原点から下垂直方向にY軸を定義する。画像を表示する際には、上記XおよびYで指定した画素に画像の左上角の画素を合わせ込むように表示する。画像の水平方向表示画素数Wおよび垂直方向表示画素数Hは画面における画像の表示幅、および高さを画素数で表したものである。
【0016】
図8に画像ファイルの構造を示す。各画像ファイルには画像の水平方向画素数T、画像の垂直方向画素数V、画素毎のビット数B、画素データの並びDi、フッタ先頭の固定値C、画像の固有値Q、画像ファイルの先頭からのフッタ先頑へのオフセット値Fが格納してある。画像を表示する際には、上記画像の水平画素数Tおよび垂直画素数Vを水平表示画素数Wおよび垂直表示画素数Hに合わせ込むように画像を拡大・縮小して表示する。
【0017】
次にステップS104において、ワーク1に読み込んだ画像レイアウト情報の画像ファイル名Gによって指定される画像ファイルが存在するか否かを調べる。そして、存在しなかった場合はステップS105からステップS120に処理を進める。ステップS120では、ワーク1のレイアウト情報の表示位置XおよびYから水平方向にW画素、垂直方向にH画素分の領域を黒く塗り潰すことで、画像が存在しなかったことが分かるようにする。
【0018】
一方、画像ファイル名Gによって指定される画像ファイルが存在した場合にはステップS105よりステップS106に処理を進める。ステップS106では、指定された画像ファイルの全体のバイト数を取得し、バイト数Sとしてワーク2に格納する。そして、ステップS107では、当該画像ファイルよりオフセット値Fを取得してワーク3に格納する。
【0019】
ステップS108では、ワーク3に格納されたオフセット値Fとワーク2に格納された画像ファイル全体のバイト数Sとを比較し、Fの値がSの値未満であった場合、即ちオフセット値Fが画像ファイルの内部を指し示す正しい値である場合はステップS109に処理を進める。それ以外の場合、即ちオフセット値が画像ファイルの外を指し示す不正な値である場合(F≧S)には、上記のステップS120に処理を進める。
【0020】
次にステップS109では、画像ファイルの先頭からオフセット値Fの位置にあるフッタ先頭の固定値Cを当該画像ファイルより取得し、これをワーク4に格納する。固定値Cは画像ファイルが図8で示したフォーマットに従って格納されているものか否かを判断する値であり、全ての画像処理装置で共通の特定の値として定義した1ワードまたは複数ワードの値である。
【0021】
次にステップS110では、固定値Cが予め定義してある特定の値か否かを調べ、特定の値と一致した場合はステップS111に処理を進め、特定の値以外の値であった場合は、ステップS120に処理を進める。ステップS111では、画像ファイルより固有値Qを取得してワーク5に格納する。ステップS112では、ワーク1に格納された画像レイアウト情報より画像の固有値Pを取得して、これをワーク6に格納する。そして、ステップS113において、ワーク6に格納された値Pとワーク5に格納された値Qとを比較し、一致した場合にはステップS114に処理を進め、一致しなかった場合はステップS120に処理を進める。
【0022】
ステップS114では、指定された画像ファイルから水平方向画素数T、垂直方向画素数V、画素毎のビット数Bを取得しワーク7に格納する。次にステップS115では、上記T、V、Bから画像の画素データのバイト数Zを次の計算式に基づいて算出する。
【0023】
Z=T×V×B/8 (端数は切り上げ)
図9は画素毎のビット数Bが24の場合の画像データの構造を示す図である。図9に示されるように、画像データはその画素毎に青(B)成分、緑(G)成分、赤(R)成分で構成され、各成分は1バイトで表されることから、1画素あたり3バイト即ち24ビットとなる。また、各成分がすべて0であった場合は最低輝度即ち黒を表し、各成分が全て255であった場令は最大輝度即ち白を表している。このような画素データの並びが画素数分だけ画像ファイルに格納されている。
【0024】
ステップS116では、画素データDiをZバイト読み込んでワーク8に格納する。そして、ステップS117では、ワーク8に格納されたZバイトの画素データを画面の表示位置X、Y、に表示幅W、高さHに拡大、縮小して表示する。ここでX、Y、W、HはI番目の画像レイアウト情報によって指定する値である。
【0025】
そして、ステップS118では、次の画像レイアウト情報について処理を行うべく変数Iに1を加える。ステップS119で、変数Iの値と画像の数Nを比較し、IがNより小さい場合はまだ表示していない画像があるとみなしてステップS103に処理を戻す。また、ステップS119においてIがN以上であった場合は、処理を完了したと判断して本処理を終了する。
【0026】
次にレイアウトファイルに画像を登録する処理について説明する。図4のフローチャートは、画像処理装置に対して、画像の登録を指示することから始まる。
【0027】
先ずステップS201では画像を登録するためのレイアウトファイルを指定する。ステップS202では、指定されたレイアウトファイルが存在するか否かを調べて、存在する場合にはステップS203に処理を進め、存在しなかった場合はステップS204に処理を進める。ステップS203では、存在したレイアウトファイルから画像の数Nを読み込んでワーク10に格納した後、ステップS206に処理を進める。一方、ステップS204では、ステップS201で指定したレイアウトファイルを新しく作成し、ステップS205において当該レイアウトファイルの画像の数Nを0で初期化する。その後、ステップS206に処理を進める。
【0028】
ステップS206では、レイアウトファイルに対して画像を追加するか否かを入力し、追加する画像がない場合は処理を終了する。一方、追加する画像がある場合には、ステップS207に処理を進め、画像の数Nに1を加える。
【0029】
ステップS208では、登録する画像のファイル名を入力し、入力した画像のファイル名をN番目の画像レイアウト情報の画像ファイル名Gに設定する。次にステップS209では、画像を表示する表示画面上の水平位置Xおよび垂直位置Yおよび画像を表示する幅Wおよび高さHを入力し、これらの値をN番目の画像レイアウト情報の画像の水平方向表示位置X、画像の垂直方向表示位置Y、画像の水平方向表示画素数W、画像の垂直方向表示画素数Hに、各々設定する。
【0030】
次にステップS210では、N番目の画像の固有値Pを算出する。固有値の値自体は従来からある乱数発生方法に基づいて算出されるもので十分である。なお、さらに、画像ファイル全体のバイト数や画像ファイルのファイル名を表す文字コード等を積算した数を乱数自体に積算した値を固有値として定義するなど、画像の固有性を確保することが可能な値であればどのような値であっても構わない。こうして算出された画像ファイルの固有値はN番目の画像レイアウト情報の画像の固有値Pに設定される。
【0031】
次にステップS211からステップS213の処理により、図8に示すようなフッタ領域を生成し、当該画像ファイルの末尾に付加する。
【0032】
通常の画像ファイルは図10に示すように、画像の水平方向画素数T、画像の垂直方向画素数V、画素毎のビット数B、および画素データの並びDiによって構成されるのが一般的であり、画像の固有値を格納する領域は存在しない。このような画像をレイアウトファイルに登録するために、本実施形態では図8に示すように画像ファイルの未尾にフッタ領域を定義する。
【0033】
図8に示されるように、フッタ領域の未尾には、画像の先頑からフッタ領域へのオフセット値を格納し、画像ファイルの未尾からオフセット値を取得することで、フッタ領域の先頭からデータを取得することを可能とする。更に、上記オフセット値がフッタ領域の先頑を指し示しているか否かを画像の表示処理の際に検査可能とするために、それがフッタ領域であることを示す、全ての画像処理装置で共通の特定の値Cを格納する。
【0034】
従って、まず、ステップS211では、登録する画像ファイルの末尾にフッタ領域の先頑を表す固定値Cを付加する。次にステップS212では、ステップS210において算出した固有値Pを画像の固有値Qとしてフッタ領域に設定する。最後に、ステップS213では、元々の画像ファイルのバイト数をフッタ先頭のオフセット値Fとして設定し、ステップS206に戻る。
【0035】
以上図4および図5のフローチャートが示す一連の処理によって、レイアウトファイルと各画像ファイルにそれらの相互関係を検査するための固有の値を予め登録しておく。そして、図2および図3のフローチャートが示す一連の処理によって、レイアウトファイルに登録してある画像を表示する際に、各画像毎に固有値を検査することによって、不正な画像ファイルを排除することが可能となる。
【0036】
なお、図8に示される画像ファイルと、それを表示するための図6に示されるレイアウトファイルとを同一の記憶装置に格納する構成とすることもできる。更に、この記憶装置を画像データ表示装置に着脱可能な形態としてもよい。これにより、この着脱可能な記憶装置を他の画像処理装置に装着することにより、他の画像処理装置においてもレイアウトファイルに従って画像を出力することが可能となる。
【0037】
また、本実施形態では、画像データをレイアウトファイルに従って表示装置8に表示することを述べたが、画像データの出力形態はこれに限られるものではない。例えば、画像データをレイアウトファイルに従ってプリンタに印字出力する形態としてもよい。これによって、画像表示機能を有しないシステムにおいても、作成したレイアウトファイルに従って、画像を出力することが可能となる。
【0038】
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
【0039】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0040】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0041】
【発明の効果】
以上記述したように本発明によれば、レイアウトファイルに登録してある画像を表示する際に、各画像毎に登録された固有値を検査するので、不正な画像ファイルの関連を排除することが可能となる。
【図面の簡単な説明】
【図1】本実施形態の画像処理装置の構成を示すブロック図である。
【図2】本実施形態による画像の表示処理を表すフローチャートである。
【図3】本実施形態による画像の表示処理を表すフローチャートである。
【図4】本実施形態による画像ファイルの登録処理を表すフローチャートである。
【図5】本実施形態による画像ファイルの登録処理を表すフローチャートである。
【図6】レイアウトファイルの構造を表す図である。
【図7】各々の画像のレイアウト情報を表す図である。
【図8】登録後の画像ファイルの構造を表す図である。
【図9】画素毎のビット数Bが24の場合の画像データの構造を示す図である。
【図10】登録前の画像ファイルの構造を表す図である。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an information processing apparatus and method suitable for displaying, for example, a plurality of images associated with a layout template.
[0002]
[Prior art]
Conventionally, in an image processing device, a color image is read from an external image storage device such as a digital camera into an image processing device such as a word processor, and the image is displayed on a display screen. In addition, image editing processing is performed such as arranging multiple images on the screen, enlarging or reducing each image, moving the position, copying, and displaying the images interchanged. I came.
[0003]
At that time, each image data is usually handled as a separate image file, and a separate layout file for storing the display order, display position, display width, height, image file name, etc. of the plurality of image files is prepared. In general, the display order is changed by editing the layout file.
[0004]
[Problems to be solved by the invention]
However, with the recent spread of information processing equipment, a secondary storage device such as a disk for storing layout files and image files edited by the above editing operation is accessed for another purpose, and the contents are read or changed. Opportunities to perform operations are increasing. Along with this, the layout file and the image file stored in the device are illegally changed, or the data is destroyed due to some error that occurs in the device. It has become difficult to ensure the sex. In the worst case, there is a possibility that an illegal image file other than the image file that should be related to the layout file is associated.
[0005]
The present invention has been made in view of the above-described problem, and it is possible to eliminate an association of an illegal image file when displaying an image registered in a layout file.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, an information processing apparatus of the present invention has the following configuration, for example. That is,
An information processing device for displaying an image file stored in a storage device on a display device,
Generating means for generating a layout file in which an image file name of an image file to be displayed and a display position thereof are described ;
Calculating means for calculating a unique value of the image file when the image file name is described in the layout file by the generating means;
Wherein said eigenvalue calculated by the calculating means, as well as added to the layout file in association with the image file name, the specified by the image file name, the particular area of the image file stored in the storage device Additional means for adding eigenvalues ;
When the display of the layout file is instructed, the unique value added in association with the image file name in the layout file is compared with the unique value added to the image file read from the storage device according to the image file name. Comparing means to
Display means for displaying the read image file at a display position set in the layout file when the eigenvalues compared by the comparison means match.
[0007]
The present invention also provides an information processing method realized by the configuration of the information processing apparatus. Further, according to the present invention, a computer-readable storage medium storing a program for realizing the information processing method in a computer is provided.
[0008]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described in detail and specifically with reference to the accompanying drawings.
[0009]
FIG. 1 is a block diagram showing the configuration of the image processing apparatus according to this embodiment. In FIG. 1, 1 is a central processing unit (CPU), 2 is a read-only memory (ROM), 3 is a readable / writable memory (RAM), and 4 is a read-only memory (externally expanded). External ROM), 5 is a keyboard control device (KBC), 6 is a keyboard (KB), 7 is a display control device (CRTC), 8 is a display device (CRT), and 9 is peripheral. A device control device (PKC), 10 is an external storage device (FD and HD), 11 is a real time clock (RTC), and 12 is a system bus for transmitting and receiving data between these devices.
[0010]
In this apparatus, the control program executed by the CPU 1 exists on the ROM 2 or the RAM 3, and the CPU 1 reads out the program sequentially from the ROM 2 or the RAM 3 through the system bus and performs a target process.
[0011]
2, 3, 4, and 5 are flowcharts for explaining processing by the image processing apparatus of the present embodiment. With reference to this flowchart, the operation of the present apparatus will be described in the following order.
[0012]
First, processing for displaying an image registered in a layout file will be described first. The flowchart of FIG. 2 starts from instructing the image processing apparatus to display an image.
[0013]
First, in step S101, a layout file for displaying an image is designated. In step S102, a variable I indicating which image is being processed is initialized to 1. In step S103, the I-th image layout information is read into the work 1 from the layout file. The work is an area secured on the FD, the HD 10 or the RAM 3 and is referred to or updated during processing by the CPU 1.
[0014]
As shown in FIG. 6, the structure of the layout file is composed of the number N of images registered in the layout file followed by N pieces of image layout information. As shown in FIG. 7, the structure of each image layout information includes an image file name G, an image eigenvalue P, an image horizontal display position X, an image vertical display position Y, an image horizontal display pixel count W, It consists of the number H of vertical display pixels of the image. A fixed-length area is allocated in advance to the area where the file name G of the image is set, an ACSII character string representing the file name is stored from the beginning, and 0 is set to the end. The unique value P of the image is a unique value for each image calculated when the image is registered in the layout file, and the same value is set in both the layout file and the image file at the time of registration.
[0015]
The horizontal display position X and the vertical display position Y of the image represent display positions on the screen. The display screen defines the X axis in the right horizontal direction from the origin and the Y axis in the lower vertical direction from the origin with the pixel at the upper left corner as the origin. When the image is displayed, the image is displayed so that the pixel in the upper left corner of the image is aligned with the pixel specified by X and Y. The horizontal display pixel number W and the vertical display pixel number H of the image represent the display width and height of the image on the screen by the number of pixels.
[0016]
FIG. 8 shows the structure of the image file. Each image file includes the number of horizontal pixels T of the image, the number of vertical pixels V of the image, the number of bits B per pixel, the pixel data array Di, the fixed value C of the footer head, the unique value Q of the image, the head of the image file The offset value F from the footer first to last is stored. When an image is displayed, the image is enlarged and reduced so that the horizontal pixel number T and the vertical pixel number V are matched with the horizontal display pixel number W and the vertical display pixel number H.
[0017]
In step S104, it is checked whether an image file designated by the image file name G of the image layout information read into the work 1 exists. If not, the process proceeds from step S105 to step S120. In step S120, the area corresponding to W pixels in the horizontal direction and H pixels in the vertical direction are blacked out from the display positions X and Y of the layout information of the work 1 so that it can be seen that no image exists.
[0018]
On the other hand, if there is an image file specified by the image file name G, the process proceeds from step S105 to step S106. In step S106, the total number of bytes of the designated image file is acquired and stored in the work 2 as the number of bytes S. In step S107, the offset value F is acquired from the image file and stored in the work 3.
[0019]
In step S108, the offset value F stored in the work 3 is compared with the number of bytes S of the entire image file stored in the work 2, and if the value of F is less than the value of S, that is, the offset value F is If the value is correct indicating the inside of the image file, the process proceeds to step S109. In other cases, that is, when the offset value is an incorrect value indicating outside the image file (F ≧ S), the process proceeds to step S120 described above.
[0020]
In step S109, a fixed value C at the beginning of the footer at the offset value F from the beginning of the image file is acquired from the image file, and stored in the work 4. The fixed value C is a value for determining whether or not the image file is stored according to the format shown in FIG. 8, and is a value of one word or a plurality of words defined as a specific value common to all image processing apparatuses. It is.
[0021]
Next, in step S110, it is checked whether or not the fixed value C is a specific value defined in advance. If the fixed value C matches the specific value, the process proceeds to step S111, and if it is a value other than the specific value. Then, the process proceeds to step S120. In step S111, the eigenvalue Q is acquired from the image file and stored in the work 5. In step S 112, the image unique value P is acquired from the image layout information stored in the work 1 and stored in the work 6. In step S113, the value P stored in the workpiece 6 is compared with the value Q stored in the workpiece 5. If they match, the process proceeds to step S114. If they do not match, the process proceeds to step S120. To proceed.
[0022]
In step S114, the horizontal pixel number T, vertical pixel number V, and bit number B for each pixel are acquired from the designated image file and stored in the work 7. In step S115, the number of bytes Z of pixel data of the image is calculated from the above T, V, and B based on the following calculation formula.
[0023]
Z = T × V × B / 8 (rounded up)
FIG. 9 is a diagram showing the structure of image data when the number of bits B per pixel is 24. As shown in FIG. 9, the image data is composed of a blue (B) component, a green (G) component, and a red (R) component for each pixel, and each component is represented by 1 byte. There are 3 bytes or 24 bits. In addition, when all the components are 0, the minimum luminance, that is, black is represented, and when the respective components are all 255, the age indicates the maximum luminance, that is, white. Such an array of pixel data is stored in the image file by the number of pixels.
[0024]
In step S116, the pixel data Di is read in Z bytes and stored in the work 8. In step S117, the Z-byte pixel data stored in the work 8 is enlarged and reduced to a display width W and a height H at display positions X and Y on the screen. Here, X, Y, W, and H are values specified by the I-th image layout information.
[0025]
In step S118, 1 is added to the variable I to process the next image layout information. In step S119, the value of the variable I is compared with the number N of images. If I is smaller than N, it is determined that there is an image that has not yet been displayed, and the process returns to step S103. If I is greater than or equal to N in step S119, it is determined that the process has been completed, and the process ends.
[0026]
Next, processing for registering an image in the layout file will be described. The flowchart in FIG. 4 starts from instructing the image processing apparatus to register an image.
[0027]
First, in step S201, a layout file for registering an image is designated. In step S202, it is checked whether or not the designated layout file exists. If it exists, the process proceeds to step S203, and if it does not exist, the process proceeds to step S204. In step S203, the number N of images is read from the existing layout file and stored in the work 10, and then the process proceeds to step S206. On the other hand, in step S204, a new layout file designated in step S201 is created, and in step S205, the number N of images in the layout file is initialized to zero. Thereafter, the process proceeds to step S206.
[0028]
In step S206, whether or not to add an image to the layout file is input. If there is no image to be added, the process ends. On the other hand, if there is an image to be added, the process proceeds to step S207, and 1 is added to the number N of images.
[0029]
In step S208, the file name of the image to be registered is input, and the file name of the input image is set as the image file name G of the Nth image layout information. In step S209, the horizontal position X and vertical position Y on the display screen for displaying the image, and the width W and height H for displaying the image are input, and these values are used as the horizontal position of the image of the Nth image layout information. The direction display position X, the vertical display position Y of the image, the horizontal display pixel number W of the image, and the vertical display pixel number H of the image are set.
[0030]
Next, in step S210, the eigenvalue P of the Nth image is calculated. It is sufficient that the eigenvalue itself is calculated based on a conventional random number generation method. Furthermore, the uniqueness of the image can be ensured, for example, by defining the value obtained by adding the number of bytes of the entire image file or the character code representing the file name of the image file as the eigenvalue. Any value can be used. The eigenvalue of the image file calculated in this way is set to the eigenvalue P of the image of the Nth image layout information.
[0031]
Next, by the processing from step S211 to step S213, a footer area as shown in FIG. 8 is generated and added to the end of the image file.
[0032]
As shown in FIG. 10, a normal image file is generally composed of the horizontal pixel number T of the image, the vertical pixel number V of the image, the bit number B for each pixel, and the pixel data array Di. Yes, there is no area to store the eigenvalues of the image. In order to register such an image in the layout file, in this embodiment, a footer area is defined at the end of the image file as shown in FIG.
[0033]
As shown in FIG. 8, an offset value from the first image of the image to the footer region is stored in the footer region untailed, and the offset value is obtained from the image file untailed so that the footer region is untouched. Data can be acquired. Furthermore, in order to be able to inspect at the time of image display processing whether or not the above-mentioned offset value indicates the pre-stability of the footer region, it is common to all image processing devices indicating that it is a footer region. Stores a specific value C.
[0034]
Therefore, first, in step S211, a fixed value C indicating the first-handedness of the footer area is added to the end of the image file to be registered. In step S212, the eigenvalue P calculated in step S210 is set in the footer area as the eigenvalue Q of the image. Finally, in step S213, the number of bytes of the original image file is set as the offset value F at the beginning of the footer, and the process returns to step S206.
[0035]
Through the series of processes shown in the flowcharts of FIGS. 4 and 5, unique values for inspecting the mutual relationship between the layout file and each image file are registered in advance. Then, when an image registered in the layout file is displayed by a series of processes shown in the flowcharts of FIGS. 2 and 3, an illegal image file can be excluded by inspecting an eigenvalue for each image. It becomes possible.
[0036]
Note that the image file shown in FIG. 8 and the layout file shown in FIG. 6 for displaying the image file may be stored in the same storage device. Further, the storage device may be detachable from the image data display device. Thus, by mounting this removable storage device on another image processing device, it is possible to output an image according to the layout file also on the other image processing device.
[0037]
In the present embodiment, the image data is displayed on the display device 8 according to the layout file. However, the output form of the image data is not limited to this. For example, the image data may be printed out on a printer according to the layout file. As a result, even in a system that does not have an image display function, an image can be output according to the created layout file.
[0038]
Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, and a printer), and a device (for example, a copying machine and a facsimile device) including a single device. You may apply to.
[0039]
Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and the computer (or CPU or CPU) of the system or apparatus Needless to say, this can also be achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0040]
Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion card or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
[0041]
【The invention's effect】
As described above, according to the present invention, when displaying the image registered in the layout file, the eigenvalue registered for each image is inspected, so that it is possible to eliminate the association of an illegal image file. It becomes.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment.
FIG. 2 is a flowchart illustrating image display processing according to the present embodiment.
FIG. 3 is a flowchart showing image display processing according to the present embodiment.
FIG. 4 is a flowchart illustrating image file registration processing according to the present embodiment.
FIG. 5 is a flowchart showing image file registration processing according to the present embodiment;
FIG. 6 is a diagram illustrating a structure of a layout file.
FIG. 7 is a diagram illustrating layout information of each image.
FIG. 8 is a diagram illustrating the structure of an image file after registration.
FIG. 9 is a diagram illustrating the structure of image data when the number of bits B per pixel is 24;
FIG. 10 is a diagram illustrating a structure of an image file before registration.

Claims (4)

表示すべき画像とその表示位置とが記述されたレイアウトファイルにしたがって、記憶装置に格納された画像ファイルを表示装置に表示する情報処理装置であって、
表示すべき画像ファイルの画像ファイル名とその表示位置が記述されたレイアウトファイルを生成する生成手段と、
前記生成手段による前記レイアウトファイルへの前記画像ファイル名の記述時において、前記画像ファイルの固有値を算出する算出手段と、
前記算出手段により算出された前記固有値を、前記画像ファイル名と関連付けて前記レイアウトファイルに付加するとともに、前記画像ファイル名により指定される、前記記憶装置に格納された画像ファイルの特定の領域に前記固有値を付加する付加手段と、
前記レイアウトファイルの表示が指示されると、前記レイアウトファイルにおいて画像ファイル名に関連付けて付加された固有値と当該画像ファイル名にしたがって記憶装置から読み出された画像ファイルに付加されている固有値とを比較する比較手段と、
前記比較手段により比較された固有値が一致するとき、前記読み出された画像ファイルを前記レイアウトファイルに記述された表示位置に表示する表示手段とを備えることを特徴とする情報処理装置。
An information processing apparatus that displays an image file stored in a storage device on a display device according to a layout file in which an image to be displayed and its display position are described ,
Generation means for generating a layout file in which an image file name of an image file to be displayed and a display position thereof are described ;
Calculating means for calculating a unique value of the image file when the image file name is described in the layout file by the generating means;
Wherein said eigenvalue calculated by the calculating means, as well as added to the layout file in association with the image file name, the specified by the image file name, the particular area of the image file stored in the storage device Additional means for adding eigenvalues ;
When the display of the layout file is instructed, the unique value added in association with the image file name in the layout file is compared with the unique value added to the image file read from the storage device according to the image file name. Comparing means to
An information processing apparatus comprising: display means for displaying the read image file at a display position described in the layout file when the eigenvalues compared by the comparison means match.
前記比較手段により比較された固有値が一致しないとき、前記表示手段は、前記レイアウトファイルに記述された前記読み出された画像ファイルの表示位置において、画像ファイルが無いことを識別可能に示す表示をすることを特徴とする請求項1に記載の情報処理装置。When the eigenvalues compared by the comparison means do not match, the display means displays in an identifiable manner that there is no image file at the display position of the read image file described in the layout file. The information processing apparatus according to claim 1. 表示すべき画像とその表示位置とが記述されたレイアウトファイルにしたがって、記憶装置に格納された画像ファイルを表示装置に表示する情報処理装置の制御方法であって、
表示すべき画像ファイルの画像ファイル名とその表示位置が記述されたレイアウトファイルを生成するする生成ステップと、
前記生成ステップにおける前記レイアウトファイルへの前記画像ファイル名の記述時において、前記画像ファイルの固有値を算出する算出ステップと、
前記算出ステップにおいて算出された前記固有値を、前記画像ファイル名と関連付けて前記レイアウトファイルに付加するとともに、前記画像ファイル名により指定される、前記記憶装置に格納された画像ファイルの特定の領域に前記固有値を付加する付加ステップと、
前記レイアウトファイルの表示が指示されると、前記レイアウトファイルにおいて画像ファイル名に関連付けて付加された固有値と当該画像ファイル名にしたがって記憶装置から読み出された画像ファイルに付加されている固有値とを比較する比較ステップと、
前記比較ステップにおいて比較された固有値が一致するとき、前記読み出された画像ファイルを前記レイアウトファイルに記述された表示位置に表示する表示ステップとを有することを特徴とする情報処理装置の制御方法。
An information processing apparatus control method for displaying an image file stored in a storage device on a display device according to a layout file in which an image to be displayed and a display position thereof are described ,
A generation step for generating a layout file in which an image file name of an image file to be displayed and a display position thereof are described ;
A calculation step of calculating a unique value of the image file when the image file name is described in the layout file in the generation step;
The unique value calculated in the calculating step is added to the layout file in association with the image file name, and the specific value of the image file stored in the storage device specified by the image file name is added to the layout file. An additional step of adding eigenvalues ;
When the display of the layout file is instructed, the unique value added in association with the image file name in the layout file is compared with the unique value added to the image file read from the storage device according to the image file name. A comparison step to
And a display step of displaying the read-out image file at a display position described in the layout file when the compared eigenvalues match in the comparison step.
請求項3に記載の情報処理装置の制御方法における各ステップをコンピュータに実行させるプログラムを格納したことを特徴とするコンピュータ読み取り可能な記憶媒体。  A computer-readable storage medium storing a program for causing a computer to execute each step in the method for controlling the information processing apparatus according to claim 3.
JP16297399A 1999-06-09 1999-06-09 Information processing apparatus and method Expired - Fee Related JP4471319B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16297399A JP4471319B2 (en) 1999-06-09 1999-06-09 Information processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16297399A JP4471319B2 (en) 1999-06-09 1999-06-09 Information processing apparatus and method

Publications (2)

Publication Number Publication Date
JP2000353167A JP2000353167A (en) 2000-12-19
JP4471319B2 true JP4471319B2 (en) 2010-06-02

Family

ID=15764810

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16297399A Expired - Fee Related JP4471319B2 (en) 1999-06-09 1999-06-09 Information processing apparatus and method

Country Status (1)

Country Link
JP (1) JP4471319B2 (en)

Also Published As

Publication number Publication date
JP2000353167A (en) 2000-12-19

Similar Documents

Publication Publication Date Title
US20080049113A1 (en) Image sensing apparatus
US20110102633A1 (en) Image sensing apparatus
JP2004334852A (en) Image processing by pixel types
JP4920814B2 (en) Image processing method, apparatus, and recording medium
US5283840A (en) Method and apparatus for extracting image data
JP2001211314A (en) Device and method for image processing
JP4471319B2 (en) Information processing apparatus and method
JP2007067956A (en) Multi-dimensional interpolation apparatus and multi-dimensional interpolation method
JP3389970B2 (en) Print processing device
JP2003051929A (en) Image processing method and apparatus
JP4290080B2 (en) Image processing apparatus, image processing method, and computer program
JP2002133414A (en) Image processing method and its device and recording medium
JP3466813B2 (en) Image verification device
US6985624B2 (en) Image processing apparatus and its method
US7616344B2 (en) Image processing apparatus and method for printing and plate making, and recording medium having image processing program recorded therein for printing and plate making
JPH1139480A (en) Method and device for correcting image and recording medium recording program executing the processing
JP4096650B2 (en) Printer driver, computer readable medium, and image data conversion apparatus
JP3822464B2 (en) Image extraction method, image processing apparatus, and recording medium recording program
JP4280388B2 (en) Image processing apparatus, method, and storage medium
US6681040B2 (en) Apparatus and method for color range designation, and computer readable medium for color range designation
JP2002099921A (en) Device and method for processing image and storage medium
JP2000078378A (en) Image processor and method therefor
JP2011013899A (en) Image processor, method for controlling the same and computer program
JPH11164127A (en) Image processor, and method and storage medium therefor
JP2001143085A (en) Method, device for processing image and image processing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060609

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060609

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080730

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080807

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090629

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090828

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091023

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091210

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: 20100226

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100301

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

Free format text: PAYMENT UNTIL: 20130312

Year of fee payment: 3

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: 20140312

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees