JPH0324861A - Picture memory access method - Google Patents

Picture memory access method

Info

Publication number
JPH0324861A
JPH0324861A JP15920489A JP15920489A JPH0324861A JP H0324861 A JPH0324861 A JP H0324861A JP 15920489 A JP15920489 A JP 15920489A JP 15920489 A JP15920489 A JP 15920489A JP H0324861 A JPH0324861 A JP H0324861A
Authority
JP
Japan
Prior art keywords
address
image memory
picture
memory
length
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
JP15920489A
Other languages
Japanese (ja)
Inventor
Masato Sato
正人 佐藤
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP15920489A priority Critical patent/JPH0324861A/en
Publication of JPH0324861A publication Critical patent/JPH0324861A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storing Facsimile Image Data (AREA)

Abstract

PURPOSE:To improve the using efficiency of a picture memory by using a point, which scanning from the origin reaches with the overall length in the horizontal direction of a picture memory as the scanning width, as the coordinate point corresponding to a picture element. CONSTITUTION:When a maximum length of the x-direction address of input picture element data, the y-direction address if input picture data, and the x- direction address of input picture data are denoted as X length, Y, and A respectively, an address AD on a picture memory 3 of input picture data is given by AD=(X length)XY+X to access the picture memory 3, thereby eliminating the x-direction unused area of the picture memory. With respect to conversion of the expression, the overall length of the scanning line to a point (picture element) of coordinates (X,Y) which raster scan of input picture data from the origin with the x-direction scanning width X length reaches is equalized to the overall length of the similar scanning line to the picture element on the picture memory (consequently, the address AD of the picture element). Thus, the using efficiency of the picture memory 3 is improved.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

本発明は画像処理装置,画像編集装置等における画像メ
モリのアクセス方法に関するもので、特に画像メモリの
未使用エリアを無くし、画像メモリの使用効率を高め得
るようにした画像メモリアクセス方法に関する。 なお以下各図において同一の符号は同一もしくは相当部
分を示す。
The present invention relates to an image memory access method in an image processing device, an image editing device, etc., and more particularly to an image memory access method that eliminates unused areas of the image memory and improves the usage efficiency of the image memory. Note that in the following figures, the same reference numerals indicate the same or corresponding parts.

【従来の技術】[Conventional technology]

画像処理装置においては画像メモリ上の点(画素)のア
ドレスADを第3図のような構成として処理の高速化を
計っている。即ち画像メモリ上の点の位置を仮に水平方
向(X方向)と垂直方向(y方向)の2つの座標値で示
したとき、それぞれの座標値をχアドレス.Yアドレス
とすると、画像処理においては当該の点のアドレスAD
をXアドレスとYアドレスを組合せた一体の数値の形で
表すものである。 即ちこの例では全28ビットのアドレスADのうち上位
側16ビットがYアドレスを、同じく下位側12ビッ゛
トがXアドレスを示している。なおこのアドレスADに
はその全体の値が原点(X,Yの各アドレスが共に0の
点)から当該の点(画素)まで画像メモリをラスタスキ
ャン走査したと考えた時の走査線の全長に等しいという
性質がある。 第4図は従来における入力画像データ領域の画像メモリ
マップ上の配置を示し、第3図(^)のような入力画像
データが含まれるX方向アドレスOH〜O FOOH,
およびy方向アドレスOH〜I Foolの領域の画像
メモリマップ上でのアドレスは同図(B)の斜線部を除
いた部分で表わされる。この図(B)上の数値は当該の
点の座標を第2図のアドレスADの構成で示したもので
、例えばPの点(画素)の数値I FOOOOOHはこ
の点Pについての入力画像データのY座標がIFOOH
, X座標が000Hであることを示す。
In the image processing apparatus, the address AD of a point (pixel) on the image memory is configured as shown in FIG. 3 in order to speed up the processing. That is, if the position of a point on the image memory is represented by two coordinate values in the horizontal direction (X direction) and vertical direction (y direction), each coordinate value is represented by a χ address. If the Y address is used, the address AD of the point in image processing is
is expressed in the form of a single numerical value that is a combination of an X address and a Y address. That is, in this example, of the total 28-bit address AD, the upper 16 bits indicate the Y address, and the lower 12 bits indicate the X address. The total value of this address AD is the total length of the scanning line when the image memory is raster scanned from the origin (the point where both X and Y addresses are 0) to the point (pixel) in question. They have the property of being equal. FIG. 4 shows the arrangement of conventional input image data areas on an image memory map, and the X-direction addresses OH to O FOOH, which include input image data as shown in FIG. 3 (^),
The addresses on the image memory map of the area of the y-direction addresses OH to I Fool are represented by the portion excluding the shaded portion in FIG. 3(B). The numerical values on this figure (B) indicate the coordinates of the point in question in the configuration of the address AD in Figure 2. For example, the numerical value I FOOOOOOOH of the point (pixel) of P is the coordinate of the input image data for this point P. Y coordinate is IFOOH
, indicates that the X coordinate is 000H.

【発明が解決しようとする課題】[Problem to be solved by the invention]

いま第3図の構或のアドレスでアクセスされる画像メモ
リに入力できる画像データのX方向の最大のアドレスは
2I!である。今、例えばB4の用紙に画かれた画像デ
ータを画像メモリに入力する場、この用紙を400dp
iで分割するとX方向アドレスは4096= 2 Iz
(I000H)、y方向7’}’L/,2.は5732
(1664H)となり、X方向アドレスが2fiの形に
なる。このB4の用紙の画像データ領域は画像メモリ上
では第5図のアドレス領域で表わされ、画像メモリの0
〜1633FFFHのすべてのエリアを使用している。 しかしながらA4の用紙に画かれた画像データを前記と
同様な画像メモリに入力する場合、この用紙を400d
piで分割すると、X方向アドレスは3456 ( O
 D80H) となり、y方向アドレスは4677(1
245H)となる。このA4の用紙の画像データ領域は
画像メモリ上では第6図のアドレス領域で表わされ、画
像メモリのO〜1244FFFHのエリアを使用する。 つまり約2.3Mバイトのメモリを必要とするが、その
うち280HビットX 1245Hビットつまり0.3
5Mバイト(斜線部)は未使用エリアとなる。 この様に入力画像データのX方向のアドレスの取り得る
最大値が2″でないと、一般に画像メモリ内に未使用エ
リアが発生してしまうという問題がある。 前記の例の場合、現実問題として画像メモリの実装がI
Mバイト,2Mバイトの単位でるあ事を考えあわせると
、A4の用紙分の画像データを収納する為に3Mバイト
のメモリが必要となる。しかもこの未使用エリアは28
0HビットでO D80Hビット毎に発生するのでテー
ブルやバッファとしては使用しにくい。 そこで本発明は入力すべき画像データの座標を所定の演
算で変換して得たアドレスを用いて画像メモリをアクセ
スする画像メモリアクセス方法を提供することにより前
記の問題を解消することを課題とする。
The maximum address in the X direction of image data that can be input to the image memory accessed by the address shown in FIG. 3 is 2I! It is. For example, if you want to input image data drawn on B4 paper into the image memory, this paper should be
When divided by i, the X direction address is 4096 = 2 Iz
(I000H), y direction 7'}'L/, 2. is 5732
(1664H), and the X direction address becomes 2fi. The image data area of this B4 paper is represented on the image memory by the address area shown in FIG.
All areas from ~1633FFFH are used. However, when inputting image data drawn on A4 paper into an image memory similar to the above, this paper is
When divided by pi, the X direction address is 3456 (O
D80H), and the y-direction address is 4677 (1
245H). The image data area of this A4 paper is represented on the image memory by the address area shown in FIG. 6, and uses areas 0 to 1244FFFH of the image memory. In other words, approximately 2.3M bytes of memory is required, of which 280H bits x 1245H bits or 0.3
5M bytes (shaded area) is an unused area. In this way, if the maximum possible value of the address in the X direction of the input image data is not 2'', there is a problem that an unused area will generally occur in the image memory.In the case of the above example, the actual problem is that the Memory implementation is I
Considering the fact that the image data is in units of M bytes and 2 M bytes, a memory of 3 M bytes is required to store image data for an A4 sheet of paper. Moreover, this unused area is 28
Since it is a 0H bit and occurs every OD80H bit, it is difficult to use it as a table or buffer. Therefore, an object of the present invention is to solve the above problem by providing an image memory access method that accesses the image memory using an address obtained by converting the coordinates of image data to be input by a predetermined calculation. .

【課題を解決するための手段】[Means to solve the problem]

前記の課題を解決するために本発明の方法は、『水平方
向のアドレス(以下Xアドレスという)および垂直方向
のアドレス(以下Yアドレスという)を座標として(イ
メージスキャナ01などを介し)走査入力される画像デ
ータを画像メモリ(3など)へ格納するための前記画像
メモリのアクセス方法において、 前記画像データのXアドレスの最大値(Xle−ngt
hなど)を水平方向の走査巾として、原点から当該の画
素の点までラスタスキャン走査したときの走査の全長(
( X length) X Y + Xなど)と等し
い長さのラスタスキャン走査を、前記画像メモリ上にお
いて、この画像メモリの水平方向の全長を走査巾として
原点から行って到達した点を、前記画素に対応する座標
点とするように、前記XアドレスとYアドレスとを用い
て該座標点のアドレス(ADなど)を求めるように』す
るものとする。
In order to solve the above-mentioned problems, the method of the present invention provides a method for scanning and inputting a horizontal address (hereinafter referred to as X address) and a vertical direction address (hereinafter referred to as Y address) as coordinates (via image scanner 01, etc.). In the image memory access method for storing image data in an image memory (such as 3), the maximum value of the X address of the image data (Xle-ngt
h) is the horizontal scanning width, and the total length of the raster scan from the origin to the point of the pixel in question (
(X length) X Y + The address (AD, etc.) of the coordinate point is determined using the X address and Y address so that the coordinate point is a corresponding coordinate point.

【作 用】 本発明は、 入力画素データのX方向アドレスの最大長:Xleng
th 入力画像データのy方向アドレス:Y 人力画像データのX方向アドレス:X としたとき、当該の人力画像データの画像メモリ上のア
ドレスADを A D 一( X  length  )  X Y 
+ X−−−−−(1>として画像メモリをアクセスす
ることで、画像メモリのX方向の未使用エリアを無くす
ようにしたものである。 この(1)式の変換はX lengthをX方向の走査
巾として入力画像データを原点からラスタスキャン走査
して座標(X,Y)の点(画素)に到るまでの走査線の
全長が、画像メモリ上の当該画素までの前記と同様な走
査線の全長(従って当該画素のアドレスAD)と等しく
なるようにしたものである。
[Function] The present invention provides the maximum length of the X-direction address of input pixel data:
th Y-direction address of input image data: Y X-direction address of human-powered image data:
By accessing the image memory as +X-----(1>), the unused area of the image memory in the The total length of the scanning line from the origin to the point (pixel) at the coordinates (X, Y) is the scanning width of It is made to be equal to the total length of the line (therefore, the address AD of the pixel).

【実施例】【Example】

以下第1図および第2図に基づいて本発明の実施例を説
明する。第1図は本発明の一実施例としての構威を示す
ブロック回路図である。同図において01はイメージス
キャナで、入力すべき画像を走査し、画素別の座標とし
てのX方向アドレスX.y方向アドレスYおよび当該画
素についてのデータDATAを入出力装置1に与える。 このイメージデータを画像メモリ3へ入力する場合、入
出力装置1のCPUコアブロック7は画素ごとのアドレ
スX,Yを演算回路2に出力すると共に、チップセレク
ト信号15を出力して画像メモリ3を選択し、さらにラ
イト信号13をバッファ8及び画像メモリ3に与え、各
画素のデータDATAをバッファ8を介して画像メモリ
3へ入力する。このとき演算回路2は入力したアドレス
X,Yを用いて画像メモリ3のアクセス用のアドレスA
Dを前記(1)式に従って求め、画像メモリ3に出力す
る。このようにして画像メモリ3上のアドレスADに示
される位置に当該画素のデータDATAが格納される. 但し演算回路2の前記の演算に先立ち、入出力装置内の
CPUコアブロック7はチップセレクト信号16を出力
し、演算回路2内の乗算器9を選択し、入力画像データ
のX方向アドレスXの最大長X lengthを設定す
る. そして前記(1)式の演算の際、演算回路2内の乗算器
9は設定されたX方向アドレスの最大長Xlength
とy方向アドレスYとの積を演算し、演算結果としての
( X length) X Yを加算器10に出力す
る。加算器10は前記の乗算結果とX方向アドレスXと
を加算し、その加算結果としてのアドレスADを用いて
画像メモリ3をアクセスする。 このようにして第6図で述べたA4の用紙上の画像デー
タを百像メモリ3に人力する場合、Xlength =
 O D80Hとなり、第2図(A)の入力画像データ
領域は画像メモリ3内では同図(B)の領域に納まり、
画像メモリの未使用エリアは生じない。 そしてこの場合、同図(A)におけるA4用祇上のY=
IH,X=OHの座標の点(画素)P1についての画像
メモリ3上のアドレスADは、演算回路2を介してA 
D = O D80Hで与えられ、この点は同図(B)
の点P1で示される。同様にして同図(A) ニおける
A4用紙上ノY = 1244H, X = O D7
Fl{の点P2についての画像メモリ3上のアドレスA
Dは、AD=F6八37FHで与えられ、この点は同図
(B)の点P2で示される。
Embodiments of the present invention will be described below based on FIGS. 1 and 2. FIG. 1 is a block circuit diagram showing the structure of an embodiment of the present invention. In the figure, 01 is an image scanner that scans an image to be input, and converts the X-direction address X. A y-direction address Y and data DATA regarding the pixel are given to the input/output device 1. When inputting this image data to the image memory 3, the CPU core block 7 of the input/output device 1 outputs the addresses X and Y for each pixel to the arithmetic circuit 2, and also outputs the chip select signal 15 to input the image memory 3. Then, the write signal 13 is applied to the buffer 8 and the image memory 3, and the data DATA of each pixel is inputted to the image memory 3 via the buffer 8. At this time, the arithmetic circuit 2 uses the input addresses X and Y to access the address A of the image memory 3.
D is determined according to the above equation (1) and output to the image memory 3. In this way, the data DATA of the pixel is stored at the location indicated by the address AD on the image memory 3. However, prior to the above calculation of the arithmetic circuit 2, the CPU core block 7 in the input/output device outputs the chip select signal 16, selects the multiplier 9 in the arithmetic circuit 2, and selects the X-direction address X of the input image data. Set the maximum length X length. When calculating the above formula (1), the multiplier 9 in the calculation circuit 2 calculates the maximum length Xlength of the set X-direction address.
and the y-direction address Y, and outputs (X length) X Y as the result of the operation to the adder 10. The adder 10 adds the multiplication result and the X-direction address X, and accesses the image memory 3 using the address AD as the addition result. In this way, when the image data on the A4 paper described in FIG. 6 is manually input to the image memory 3, Xlength =
O D80H, and the input image data area of FIG. 2(A) fits into the area of FIG. 2(B) in the image memory 3.
There is no unused area in the image memory. In this case, Y=
The address AD on the image memory 3 for the point (pixel) P1 at the coordinates IH, X=OH is
D = O D80H, and this point is shown in the same figure (B)
is indicated by point P1. Similarly, in the same figure (A) on A4 paper, Y = 1244H, X = O D7
Address A on image memory 3 regarding point P2 of Fl{
D is given by AD=F6837FH, and this point is indicated by point P2 in the same figure (B).

【発明の効果】【Effect of the invention】

本発明によれば、水平方向のアドレス(以下Xアドレス
という)および垂直方向のアドレス(以下Yアドレスと
いう)を座標として走査入力される画像データを画像メ
モリ3へ格納するための前記画像メモリのアクセス方法
において、前記画像データのXアドレスの最大値X l
eng−thを水平方向の走査巾として、原点から当該
の画素の点までラスタスキャン走査したときの走査の全
長と等しい長さのラスタスキャン走査を、前記画像メモ
リ3上において、この画像メモリの水平方向の全長を走
査巾として原点から行って到達した点を、前記画素に対
応する座標点とするように、前記XアドレスとYアドレ
スとを用いて該座標点のアドレスADをAD= (X 
length)XY+Xとして求めるようにしたので、 入力画像データに対するアクセスを従来通りX方向アド
レスとy方向アドレスとに分離して行いながら、画像メ
モリの未使用エリアを無くし、画像メモリの使用効率を
高めることができる。 例えばA4サイズの画像データを画像メモリに収納する
ために従来は、画像メモリを3MバイトAD: 画イ象
メモリ?}′しス 浄3図 オ4図
According to the present invention, the image memory is accessed to store image data scanned and input using a horizontal address (hereinafter referred to as X address) and a vertical direction address (hereinafter referred to as Y address) as coordinates in the image memory 3. In the method, a maximum value X l of the X address of the image data
A raster scan scan of a length equal to the total length of the raster scan scan from the origin to the point of the pixel in question, with eng-th as the horizontal scan width, is performed on the image memory 3 in the horizontal direction of this image memory. Using the X address and Y address, set the address AD of the coordinate point to AD= (X
length) XY + Can be done. For example, in order to store A4 size image data in an image memory, the image memory used to be 3 MB AD: Image memory? }'Shisu 3 figure O 4 figure

Claims (1)

【特許請求の範囲】 1)水平方向のアドレス(以下Xアドレスという)およ
び垂直方向のアドレス(以下Yアドレスという)を座標
として走査入力される画像データを画像メモリへ格納す
るための前記画像メモリのアクセス方法において、 前記画像データのXアドレスの最大値を水平方向の走査
巾として、原点から当該の画素の点までラスタスキャン
走査したときの走査の全長と等しい長さのラスタスキャ
ン走査を、前記画像メモリ上において、この画像メモリ
の水平方向の全長を走査巾として原点から行って到達し
た点を、前記画素に対応する座標点とするように、前記
XアドレスとYアドレスとを用いて該座標点のアドレス
を求めるようにしたことを特徴とする画像メモリアクセ
ス方法。
[Claims] 1) The image memory for storing image data scanned and input using a horizontal address (hereinafter referred to as X address) and a vertical direction address (hereinafter referred to as Y address) as coordinates in the image memory. In the access method, a raster scan scan of a length equal to the total length of a raster scan scan from the origin to the point of the relevant pixel is performed, with the maximum value of the X address of the image data as the horizontal scan width. On the memory, use the X address and Y address to set the coordinate point corresponding to the pixel so that the point reached by going from the origin using the entire horizontal length of the image memory as the scanning width is the coordinate point corresponding to the pixel. An image memory access method characterized in that the address of the image memory is determined.
JP15920489A 1989-06-21 1989-06-21 Picture memory access method Pending JPH0324861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15920489A JPH0324861A (en) 1989-06-21 1989-06-21 Picture memory access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15920489A JPH0324861A (en) 1989-06-21 1989-06-21 Picture memory access method

Publications (1)

Publication Number Publication Date
JPH0324861A true JPH0324861A (en) 1991-02-01

Family

ID=15688598

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15920489A Pending JPH0324861A (en) 1989-06-21 1989-06-21 Picture memory access method

Country Status (1)

Country Link
JP (1) JPH0324861A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4400681A1 (en) * 1993-01-12 1994-07-14 Ricoh Kk Digital imaging device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4400681A1 (en) * 1993-01-12 1994-07-14 Ricoh Kk Digital imaging device
US5477341A (en) * 1993-01-12 1995-12-19 Ricoh Company, Ltd. Digital image forming apparatus

Similar Documents

Publication Publication Date Title
JPH01144171A (en) Electronic filing device
US6133923A (en) Method and apparatus for texture data
JPH0212570A (en) Picture processor
US5195174A (en) Image data processing apparatus capable of composing one image from a plurality of images
EP0533177A2 (en) Method of noise detection and noise erasing
JP3033844B2 (en) Printing control device
JPH04252562A (en) Picture processing unit
JPH0324861A (en) Picture memory access method
JP3132771B2 (en) Image storage device and image processing device having the same
JPS5892072A (en) Printer
JPH0229834A (en) Image processor
JPH09319865A (en) Image processor
JP4661112B2 (en) Image information processing apparatus and image information processing method
JPH08147210A (en) Bit map memory device
JPH06251133A (en) Image data access device
JPS6249570A (en) Picture processor
JP2945028B2 (en) Image processing designated area information calculation device
JPH05173940A (en) Picture area dma mechanism
JPH05128241A (en) Picture processor
JPH06231239A (en) Bit map data processor
JPH03219372A (en) Method and device for coordinate transformation of image and one-dimensional frame buffer
JPH06251134A (en) Image data accessing device
JPH07253919A (en) Image memory device
JPH0594303A (en) Data access system to arrangement element
JPS60100178A (en) Address converter