JPS61290886A - Image information converting method - Google Patents

Image information converting method

Info

Publication number
JPS61290886A
JPS61290886A JP60133327A JP13332785A JPS61290886A JP S61290886 A JPS61290886 A JP S61290886A JP 60133327 A JP60133327 A JP 60133327A JP 13332785 A JP13332785 A JP 13332785A JP S61290886 A JPS61290886 A JP S61290886A
Authority
JP
Japan
Prior art keywords
image information
information
color
naplps
image
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.)
Pending
Application number
JP60133327A
Other languages
Japanese (ja)
Inventor
Yoichi Yoshida
陽一 吉田
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP60133327A priority Critical patent/JPS61290886A/en
Publication of JPS61290886A publication Critical patent/JPS61290886A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Color Television Systems (AREA)
  • Television Systems (AREA)

Abstract

PURPOSE:To utilize easily optional image information of a raster type by converting it to image information conforming to an NAPLPS system, by representing each picture element of an image of a raster type which is inputted with an intermediate data consisting of color information and position information, and converting it to image information consisting of a prescribed command train. CONSTITUTION:A position segmented by trimming, namely, a coordinate is read, and subsequently, whether a trimming size is non-magnification or not is decided, and in case it is not non-magnification, the number of operands of an NAPLPS code is changed, based on the trimming size. A color of one picture element is read as color information of R, G and B data, but in this case, position information of its picture element is also read. As for this position information, it will suffice that it is, for instance, an absolute coordinate of a picture element on a display. In this way, its picture elements are represented by an intermediate data consisting of color information and position information, respectively. Subsequently, this intermediate data is converted to a prescribed command train confirming to an NAPLPS system.

Description

【発明の詳細な説明】 C発明の技術分野〕 本発明は画像情報変換方法、特にラスター型の任意の画
像情報をNAPLPS方式に適合した画像情報に変換す
る画像情報変換方法に関する。
DETAILED DESCRIPTION OF THE INVENTION C. Technical Field of the Invention The present invention relates to an image information conversion method, and particularly to an image information conversion method for converting arbitrary raster type image information into image information compatible with the NAPLPS system.

(従来技術とその問題点) 近年、ビデオテックスシステムの普及が急速に広まって
いる。我が国では、CAPTAIN方式がNTTを中心
に発展してきており、北米等では、NAPLPS方式が
発展してきている。このビデオテックスシステムは、文
字情報だけでなく画像情報をもやりとりできるという点
が特徴であるが、画像情報は文字情報のように単純なコ
ード化によって伝達を行なうことができないため、各方
式はこの画像情報の取扱いについて独自の方法を取入れ
ており、また、独自の制約を課している。従って現在の
ところ、例えばCAPTAIN方式の画像とNAPLP
S方式の画像との聞には全く互換性がない。そこでCA
PTAIN方式のラスター型の画像情報があったとして
も、これをそのままNAPLPS方式のビデオテックス
システムに利用することはできない。また、現在急速に
普及しているパーソナルコンピュータ等で作成されたコ
ンピュータグラフィックス画像をそのままNAPLPS
システムに利用することもできない。従って従来は、こ
れらのラスター型の画像情報をNAPLPSシステムで
利用しようとする場合、カメラやタブレット等から同じ
絵柄を入力し、着色し、NAPLPSプロトコルに準じ
たコマンド列に変換しなくてはならず、非常に労力を要
した。
(Prior Art and its Problems) In recent years, Videotex systems have rapidly become popular. In Japan, the CAPTAIN system has been developed mainly by NTT, and in North America and other countries, the NAPLPS system has been developed. This Videotex system is characterized by the ability to exchange not only text information but also image information, but since image information cannot be transmitted by simple encoding like text information, each method is different from this system. It has its own unique method for handling image information and imposes its own restrictions. Therefore, at present, for example, images of the CAPTAIN method and NAPLP
There is no compatibility with S format images. So CA
Even if there is raster type image information of the PTAIN method, it cannot be used as is in the NAPLPS method Videotex system. In addition, computer graphics images created using personal computers, etc., which are currently rapidly becoming popular, can be directly converted into NAPLPS.
It cannot be used in the system. Therefore, in the past, when trying to use such raster image information in a NAPLPS system, it was necessary to input the same image from a camera or tablet, color it, and convert it into a command string that complies with the NAPLPS protocol. , which required a lot of effort.

(発明の目的) そこで本発明はラスター型の任意の画像情報を容易にN
APLPS方式に適合した画像情報に変換して利用する
ことができる画像情報変換方法を提供するこを目的とす
る。
(Objective of the Invention) Therefore, the present invention makes it possible to easily convert any raster type image information into N
It is an object of the present invention to provide an image information conversion method that can be used by converting image information into image information compatible with the APLPS system.

〔発明の概要〕[Summary of the invention]

本発明の特徴は、画像情報変換方法において、ラスター
型の画像情報を入力し、この入力した画像の全部または
所定部分の画素を取出し、この各 ・画素をそれぞれ色
情報と位置情報とから成る中間データで表わし、この中
間データを所定のコマンド列から成る画像情報に変換し
、ラスター型の任意の画像情報を容易にNAPLPS方
式に適合した画像情報に変換して利用することができる
ようにした点にある。
A feature of the present invention is that, in an image information conversion method, raster type image information is input, pixels of all or a predetermined part of the input image are extracted, and each pixel is converted into an intermediate layer consisting of color information and position information. By converting this intermediate data into image information consisting of a predetermined command string, it is possible to easily convert any raster-type image information into image information compatible with the NAPLPS method and use it. It is in.

〔発明の実施例〕[Embodiments of the invention]

以下本発明を図示する実施例に基づいて説明する。第1
図は本発明に係る方法の一実施例を示す流れ図である。
The present invention will be described below based on illustrated embodiments. 1st
The figure is a flowchart illustrating an embodiment of the method according to the invention.

この実施例はラスター型の画像をNAPLPS方式のビ
デオテックスシステムで利用する場合の変換方法を示す
。まず、ラスター型の画像情報を入力し、全画面を利用
するか否かの判断を行なう(ステップS1)。全画面を
利用する場合は、この全画面を構成している画素を適宜
まびいて、200X256画素の整数倍のサイズにする
(ステップ82)。続いてこのサイズに基づいてNAP
LPSコードのオペランド数を変更する(ステップ83
)。なおこの操作については後述する。一方、画面の一
部分のみを利用する場合は、その一部分が200x25
6画素の整数倍のサイズになるようにトリミングしくス
テップS4)、このトリミングによって切り出した位置
、即ち座標を読み込む(ステップ85)。続いてトリミ
ングサイズが1倍か否か判断しくステップS6)、1倍
でない場合は、トリミングサイズに基づいてNAPLP
Sコードのオペランド数を変更する(ステップ33)。
This embodiment shows a conversion method when a raster type image is used in a NAPLPS videotex system. First, raster type image information is input, and it is determined whether or not to use the entire screen (step S1). If the entire screen is to be used, the pixels making up the entire screen are scattered as appropriate to make the size an integral multiple of 200×256 pixels (step 82). Then NAP based on this size
Change the number of operands of the LPS code (step 83
). Note that this operation will be described later. On the other hand, if you use only a part of the screen, that part is 200x25
The image is trimmed to a size that is an integral multiple of 6 pixels (step S4), and the position cut out by this trimming, that is, the coordinates, is read (step 85). Next, it is determined whether the trimming size is 1 times or not (step S6), and if it is not 1 times, NAPLP is performed based on the trimming size.
The number of operands of the S code is changed (step 33).

以上で変換準備が整ったことになる。Now you are ready to convert.

続いて各画素をNAPLPS方式に適合したコマンド列
表現に変換することになる。NAPLPS方式における
画像のコマンド列表現に゛は、大別して各画素を点とし
て取扱う方法と、各画素の集合を多角形として取扱う方
法との2とおりの方法がある。前者はポイント命令によ
って、後者はポリゴン命令によって表現されることにな
る。どちらの表現方法が適切であるかは、変換ずべぎ画
像の性質に依存する。本発明は各画素を点として取扱う
方法についてのものである。
Subsequently, each pixel is converted into a command string representation compatible with the NAPLPS method. There are two main methods for expressing a command string of an image in the NAPLPS method: a method in which each pixel is treated as a point, and a method in which a set of each pixel is treated as a polygon. The former will be expressed by a point command, and the latter by a polygon command. Which representation method is appropriate depends on the nature of the converted image. The present invention relates to a method of treating each pixel as a point.

まず、ある1つの画素についての色をR,G。First, the colors of one pixel are R and G.

Bデータとして読込む(ステップS7)。これは、ディ
スプレイ上に表示されている画素に対応するVRAM上
のデータを読込めばよい。現在のところ、ディスプレイ
上の画素の色とVRAM上のデータとの関係は、RGB
方式とビットマツプ方式との2とおりの方式のどちらか
によって関係づけられる。第2図はRGB方式の対応関
係を示す。
It is read as B data (step S7). This can be done by reading data on the VRAM that corresponds to the pixels displayed on the display. Currently, the relationship between the color of pixels on the display and the data on VRAM is RGB.
The relationship can be made by one of two methods: the method and the bitmap method. FIG. 2 shows the correspondence between RGB systems.

いま、図のようにディスプレイが200X256画素か
ら成る場合を考えると、VRAMは同様に200x25
6のセルを有するR、G、Bの3ブレーンから成る。そ
して例えばディスプレイ上の1画素Pの色は、VRAM
上のセルPR,Po。
Now, if we consider the case where the display consists of 200x256 pixels as shown in the figure, the VRAM also has 200x25 pixels.
It consists of 3 branes, R, G, and B, each having 6 cells. For example, the color of one pixel P on the display is VRAM
Upper cell PR, Po.

R8の値の組合せで表現される。従って、この場合はP
  、P  、P  の値をそのまま読込めばよGB いことになる。一方、ビットマツプ方式の対応関係は第
3図のようになる。図のようにディスプレイが200X
256画素から成る場合を考えると、VRAMは同様に
200X256のセルを有するA、B、C,Dの4ブレ
ーンから成る。そして例えばディスプレイ上の1画素Q
の色は、VRAM上のセルQA、Q8.Qo、Q、の値
の組合せで表現される。これらの値は実際のR,G、B
といった色を表わしているのではなく、パレット番号を
示している。例えば各セルが1ビツトの容量をもってい
るとすれば、合計4ビツト、即ち16とおりのパレット
番号を表現できることになる。このように16とおりの
パレット番号を用いるビットマツプ方式では、各パレッ
ト番号に対応した16色のそれぞれが、別なテーブルに
おいてR5G、Bで定義されている。そこで、まずQ、
It is expressed by a combination of R8 values. Therefore, in this case P
, P, and P can be read as they are. On the other hand, the correspondence relationship in the bitmap method is as shown in FIG. The display is 200X as shown.
Considering the case of 256 pixels, the VRAM similarly consists of 4 branes A, B, C, and D having 200×256 cells. For example, one pixel Q on the display
The colors of cells QA, Q8. It is expressed as a combination of values of Qo and Q. These values are the actual R, G, B
It does not represent the color, but the palette number. For example, if each cell has a capacity of 1 bit, a total of 4 bits, or 16 palette numbers, can be expressed. In this bitmap method using 16 palette numbers, each of the 16 colors corresponding to each palette number is defined as R5G and B in a separate table. So, first, Q.
.

oB 、QC、Q、の値を読込み、次にこの値か、ら求
まったパレット番号に対応する色のR,G、Bの各位を
テーブルから引いて読込めばよい。
It is sufficient to read the values of oB, QC, and Q, and then subtract from the table the R, G, and B colors corresponding to the palette number determined from these values and read them.

以上のように、ステップS7ではある1つの画素の色を
R,G、Bデータという色情報として読込むが、このと
きその画素の位置情報も同時に読込まれる。この位置情
報は例えばディスプレイ上の該画素の絶対座標でよい。
As described above, in step S7, the color of one pixel is read as color information such as R, G, and B data, and at this time, the position information of that pixel is also read at the same time. This position information may be, for example, the absolute coordinates of the pixel on the display.

このようにしてその画素はそれぞれ色情報と位置情報と
から成る中間データで表わされることになる。
In this way, each pixel is represented by intermediate data consisting of color information and position information.

続いてこの中間データをNAPLPS方式に適合した所
定のコマンド列に変換する。まずNAPLPS方式の“
Set  Cofor”コマンドをセラ・トする(ステ
ップ88)。これは具体的には第4図(a)(b)に示
すようなデータを作成することになる。第4図(a)に
示すバイ1−1は色指定命令コードであり、同図(b)
に示すバイト2〜4はこの命令のオペランドに相当する
色情報データコードである。この例では、色情報データ
コードは、ステップS7で読込んだR,G、B値のそれ
ぞれを6ビツトでコード化し、上位ビットからGRBの
順に並べている。例えばバイト2にはGRBそれぞれの
上位2ピツトが格納されている。次にNAPLPS方式
の“Pa1nt”コマンドをセットする(ステップ39
)。これは具体的には第4図(c)(cj)に示すよう
なデータを作成することになる。第4図(C)に示ずバ
イト5は座標指定命令コードであり、同図(d>に示す
バイト6〜8はこの命令のオペランドに相当する位置情
報データコードである。この例では、位置情報データコ
ードは、ステップS7で読込んだ絶対座標XY値のぞれ
ぞれを9ビツト(X、〜X9.Y1〜Y9)でコード化
し、上位ビットから3ビツトずつ×Yの順に並べている
。位置情報データコードは、この例では全部でバイト6
〜バイト8までの3バイトに納まっているが、1画面内
の画素数が多くなると、3バイトでは足りなくなり、オ
ペランドを構成するバイト数がもつと長くなる。前述し
たステップS3で行なった操作は、画素数に応じてこの
オペランド数を決定する操作なのである。
Subsequently, this intermediate data is converted into a predetermined command string compatible with the NAPLPS method. First, the NAPLPS method “
"Set Cofor" command (step 88). Specifically, this creates data as shown in Figures 4(a) and (b). 1-1 is a color specification instruction code, as shown in (b) in the same figure.
Bytes 2 to 4 shown in the figure are color information data codes corresponding to the operands of this instruction. In this example, the color information data code is a 6-bit code for each of the R, G, and B values read in step S7, and is arranged in the order of GRB from the most significant bit. For example, byte 2 stores the upper two pits of each GRB. Next, set the “Pa1nt” command of the NAPLPS method (step 39
). Specifically, this means creating data as shown in FIG. 4(c)(cj). Byte 5, not shown in FIG. 4(C), is a coordinate designation instruction code, and bytes 6 to 8 shown in FIG. 4(d) are position information data codes corresponding to the operands of this instruction. In the information data code, each of the absolute coordinate XY values read in step S7 is encoded using 9 bits (X, .about.X9.Y1-Y9), and 3 bits from the most significant bits are arranged in the order of xY. The location information data code is 6 bytes in total in this example.
~ byte 8, but as the number of pixels in one screen increases, 3 bytes will not be enough, and the number of bytes that make up the operand will become longer. The operation performed in step S3 described above is an operation for determining the number of operands according to the number of pixels.

このようにして1つの画素を所定のコマンド列で表現し
たら、VRAMのアドレスをインクリメントしながら、
変換の対象となる全画素について同様の手続を行なう(
ステップS10.511)。
After expressing one pixel with a predetermined command string in this way, while incrementing the VRAM address,
Perform the same procedure for all pixels to be converted (
Step S10.511).

全画素について完了したら、出力すべき媒体を選ぶ(ス
テップ512)。フロッピーが選ばれれば、NAPLP
Sの書式に従って得られたコマンド列をフロッピーに書
込み(ステップ513)、回線が選ばれればR8−23
2Cボート等を用いて転送を行なう(ステップ514)
。このようにしてNAPLPS方式に適合した画像情報
が得られることになる。また、前述した例はNAPLP
Sブaトコルに準じた一例であり、INCREMENT
  POINT等を用いてもよい。
Once all pixels have been processed, select a medium for output (step 512). If floppy is selected, NAPLP
Write the command string obtained according to the format of S to the floppy disk (step 513), and if the line is selected, write the command string to R8-23.
Transfer is performed using a 2C boat, etc. (step 514)
. In this way, image information compatible with the NAPLPS method is obtained. Also, the above example is NAPLP
This is an example based on S protocol, and INCREMENT
POINT etc. may also be used.

(発明の効果〕 以上のとおり本発明によれば、画像情報変換方法におい
て、入力したラスター型の画像の各画素を色情報と位置
情報とから成る中間データで表わし、これを所定のコマ
ンド列から成る画像情報に変換するようにしたため、ラ
スター型の任意の画像情報を容易にNAPLPS方式に
適合した画像情報に変換して利用することができるよう
になる。
(Effects of the Invention) As described above, according to the present invention, in the image information conversion method, each pixel of an input raster image is represented by intermediate data consisting of color information and position information, and this is converted from a predetermined command string. Since the image information is converted into image information consisting of the following, it becomes possible to easily convert any raster type image information into image information compatible with the NAPLPS method and use it.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係る変換方法の一実施例を示す流れ図
、第2図はRGB方式におけるディスプレイとVRAM
の対応関係を示す説明図、第3図はビットマツプ方式に
おけるディスプレイとVRAMの対応関係を示す説明図
、第4図は本発明に係る方法によって変換したコマンド
列の一例を示す説明図である。 81〜814・・・流れ図の各ステップ、1〜8・・・
コマンド列の各バイト。
Fig. 1 is a flowchart showing an embodiment of the conversion method according to the present invention, and Fig. 2 shows a display and VRAM in the RGB system.
FIG. 3 is an explanatory diagram showing the correspondence between the display and VRAM in the bitmap method, and FIG. 4 is an explanatory diagram showing an example of a command string converted by the method according to the present invention. 81-814... Each step of the flowchart, 1-8...
Each byte of the command string.

Claims (1)

【特許請求の範囲】 1、ラスター型の画像情報を入力し、この入力した画像
の全部または所定部分の画素を取出し、この各画素をそ
れぞれ色情報と位置情報とから成る中間データで表わし
、この中間データを所定のコマンド列から成る画像情報
に変換することを特徴とする画像情報変換方法。 2、色情報が赤緑青の3色の度数で表わされることを特
徴とする特許請求の範囲第1項記載の画像情報変換方法
。 3、位置情報が画面内における画素の絶対座標で表わさ
れることを特徴とする特許請求の範囲第1項または第2
項記載の画像情報変換方法。 4、所定のフォーマットがNAPLPS方式のビデオテ
ックスシステムのフォーマットであることを特徴とする
特許請求の範囲第1項乃至第3項のいずれかに記載の画
像情報変換方法。 5、フォーマット変換された1画素についての画像情報
が、色指定命令コード、色情報データコード、座標指定
命令コード、位置情報データコード、なるコード列によ
って表わされることを特徴とする特許請求の範囲第4項
記載の画像情報変換方法。
[Claims] 1. Raster type image information is input, all or a predetermined portion of the pixels of the input image are extracted, each pixel is represented by intermediate data consisting of color information and position information, and this An image information conversion method characterized by converting intermediate data into image information consisting of a predetermined command sequence. 2. The image information conversion method according to claim 1, wherein the color information is expressed by the frequency of three colors, red, green, and blue. 3. Claim 1 or 2, characterized in that the position information is expressed by absolute coordinates of pixels within the screen.
Image information conversion method described in section. 4. The image information conversion method according to any one of claims 1 to 3, wherein the predetermined format is a NAPLPS videotex system format. 5. Image information for one pixel subjected to format conversion is represented by a code string consisting of a color designation command code, a color information data code, a coordinate designation command code, and a position information data code. The image information conversion method described in Section 4.
JP60133327A 1985-06-19 1985-06-19 Image information converting method Pending JPS61290886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60133327A JPS61290886A (en) 1985-06-19 1985-06-19 Image information converting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60133327A JPS61290886A (en) 1985-06-19 1985-06-19 Image information converting method

Publications (1)

Publication Number Publication Date
JPS61290886A true JPS61290886A (en) 1986-12-20

Family

ID=15102116

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60133327A Pending JPS61290886A (en) 1985-06-19 1985-06-19 Image information converting method

Country Status (1)

Country Link
JP (1) JPS61290886A (en)

Similar Documents

Publication Publication Date Title
US4688031A (en) Monochromatic representation of color images
EP0183564B1 (en) Image forming apparatus
US8385639B2 (en) Compressive coding device and visual display control device
JPS61281370A (en) Monochromatic display of color image
JP2578170B2 (en) Image display device
JPS61290886A (en) Image information converting method
EP0196191B1 (en) Method and apparatus for transforming prestel codes to naplps codes
JP3352458B2 (en) Graphic Coloring Method for Graphic Display System
EP1271409B1 (en) Method and System for Generating a digital image including a transparent object
JPS5930367A (en) Method for coding color picture
JPS6019517B2 (en) Color figure creation processing device
US7587086B2 (en) Identifying selected pixels in a digital image
JPH11112817A (en) Method for compressing color image data, its compressing device and compression processing storage medium
JPH09298670A (en) Picture processor and method therefor
JP2601169B2 (en) Image data compression coding system
JPS61223894A (en) Contrast conversion control system
JPS5836904B2 (en) Shape editing processing method
JPH0329059A (en) Method and equipment for processing image
JPS61290887A (en) Image information converting method
JPS61290873A (en) Image information converter
JPH01147960A (en) Image data compression display method
JPS621386A (en) Picture information converting method
JPH04149594A (en) Complementary color display device
JPS61290874A (en) Image information converting method
JP2008197525A (en) Image processing apparatus