JPH0462224B2 - - Google Patents

Info

Publication number
JPH0462224B2
JPH0462224B2 JP58192532A JP19253283A JPH0462224B2 JP H0462224 B2 JPH0462224 B2 JP H0462224B2 JP 58192532 A JP58192532 A JP 58192532A JP 19253283 A JP19253283 A JP 19253283A JP H0462224 B2 JPH0462224 B2 JP H0462224B2
Authority
JP
Japan
Prior art keywords
unit
transcription
image
destination
source
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 - Lifetime
Application number
JP58192532A
Other languages
Japanese (ja)
Other versions
JPS6085677A (en
Inventor
Shigeko Suzuki
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP58192532A priority Critical patent/JPS6085677A/en
Publication of JPS6085677A publication Critical patent/JPS6085677A/en
Publication of JPH0462224B2 publication Critical patent/JPH0462224B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 (利用分野) 本発明は、画像位置変換装置に関し、特に、圧
縮された画像データを用いて、ある位置の画像を
他の位置へ移動または転記するための画像位置変
換装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Application) The present invention relates to an image position conversion device, and in particular to an image position conversion device for moving or transcribing an image at a certain position to another position using compressed image data. It is related to the device.

(従来技術) 本出願人がさきに提案したマトリクスユニツト
化データ圧縮法(特願昭57−91406号「画像デー
タ記憶方式」)においては、 (1) まず原画像をM×Nドツトずつのマトリクス
領域よりなるユニツトに分割し、 (2) 各ユニツトに対応した記憶領域を有する単位
メモリよりなるマツプメモリを設け、そして (3) 前記マツプメモリの各記憶領域には、各ユニ
ツトにおける画情報の状態を示すデーターすな
わち、例えば、対応するユニツトに画情報が全
く含まれていない場合には、その旨のデータ
を、また画情報が一つでも含まれている場合に
は、そのユニツト全部の画情報を記憶するデー
タメモリへのポインターを記憶させるようにし
ている。
(Prior art) In the matrix unit data compression method (Japanese Patent Application No. 57-91406 ``Image data storage method'') proposed earlier by the present applicant, (1) First, the original image is converted into a matrix of M×N dots. (2) providing a map memory consisting of a unit memory having a storage area corresponding to each unit; and (3) storing information in each storage area of the map memory to indicate the state of image information in each unit. For example, if the corresponding unit does not contain any image information, it will store data to that effect, and if it contains at least one image information, it will store the image information for all of that unit. A pointer to the data memory to be used is stored.

以下、第1〜第3図を参照して、これについて
簡単に説明する。
This will be briefly explained below with reference to FIGS. 1 to 3.

第1図は画像をユニツトに分割する状態を示す
模式図で、1は画像である。図からも明らかなよ
うに、画像1は横がM×pドツトで構成され、縦
はN×qドツトで構成されている。したがつて、
画像1はp×q個のユニツトに分割される。
FIG. 1 is a schematic diagram showing how an image is divided into units, and 1 is an image. As is clear from the figure, image 1 is composed of M×p dots horizontally and N×q dots vertically. Therefore,
Image 1 is divided into p×q units.

第2図はマツプメモリの一例を示す模式図であ
る。図からも明らかなように、マツプメモリ2
は、第1図の各ユニツトの画像上の位置に対応し
てp×qの単位メモリを備えている。
FIG. 2 is a schematic diagram showing an example of a map memory. As is clear from the figure, map memory 2
is provided with p×q unit memories corresponding to the positions on the image of each unit in FIG.

そして、各単位メモリには以下のような情報が
記憶される。
The following information is stored in each unit memory.

(1) 対応するユニツトの画情報がオール0(まつ
白)であるときは、Oまたは、特定の数 (2) 対応するユニツトの画情報がオールOでない
ときは、対応するユニツトの画像データが格納
されているデータメモリへのポインタ、または
リンクアドレス(例えば、後述するデータメモ
リの先頭アドレス) 第3図はデータメモリの説明図である。
(1) When the image information of the corresponding unit is all 0 (white eyelashes), O or a specific number (2) When the image information of the corresponding unit is not all O, the image data of the corresponding unit is A pointer or link address to the stored data memory (for example, the starting address of the data memory, which will be described later). FIG. 3 is an explanatory diagram of the data memory.

データメモリ3は、第1図の各ユニツトのう
ち、画情報がオールOでないものについて、M×
Nドツトを単位として画情報を記憶する。そし
て、その記憶番地は、前記マツプメモリによつ
て、指定された位置である。
The data memory 3 stores M×
Image information is stored in units of N dots. The storage address is the location specified by the map memory.

例えば第1図の画面上で、(i,j)および
(i,m)ユニツトに画情報が含まれていると仮
定すると、それぞれの(M×N)ドツトの情報
が、第3図のメモリ領域3−1,3−2にそれぞ
れ記憶される。
For example, assuming that (i, j) and (i, m) units on the screen in Figure 1 contain image information, the information for each (M x N) dot is stored in the memory in Figure 3. They are stored in areas 3-1 and 3-2, respectively.

そして、マツプメモリ2の(i,j)(l,m)
位置には、前記メモリ領域へのポインタが記憶さ
れる。
Then, (i, j) (l, m) of map memory 2
A pointer to the memory area is stored in the location.

前述のような圧縮法によつて圧縮された画像デ
ータの一部を切り出しして、本来の位置から他の
位置へ転記するような場合には、画像をユニツト
単位で指定して切出し、指定されたユニツト位置
へ移動させることが考えられる。
If you want to cut out a part of the image data compressed using the compression method described above and transfer it from its original location to another location, you can specify the image in units, cut it out, and transfer it to the specified location. It is conceivable to move the unit to a new position.

この場合、転記元の位置―すなわち、切出し画
像の始点(矩形状画像領域の左上隅の点)、終点
(前記画像領域の右下隅の点)、および転記先の位
置―すなわち、はめ込み画像の左上隅の点の指定
は、いずれも原画像の上で、ユニツトとは無関係
に行なわれる。
In this case, the transcription source position - i.e., the starting point of the cropped image (the point at the upper left corner of the rectangular image area), the end point (the point at the lower right corner of the image area), and the transcription destination position - i.e., the upper left corner of the inset image. All corner points are specified on the original image, independent of the unit.

したがつて、前記転記元および転記先の位置を
ユニツト位置(または番号)と関連づけることが
必要となる。
Therefore, it is necessary to associate the transcription source and transcription destination positions with unit positions (or numbers).

このためには、原画像上で指定された転記元お
よび転記先の、ユニツト内での相対位置を検知
し、これに基づいて、どのユニツトの画像データ
をどのユニツト位置へ移動させるかを指定しなけ
ればならない。
To do this, detect the relative positions within the unit of the transcription source and transcription destination specified on the original image, and based on this, specify which unit's image data should be moved to which unit position. There must be.

このために、普通に考えられるのは、7捨8入
法(1ユニツトを16×16ドツトと仮定した場合)
である。
For this purpose, the commonly used method is the 7 to 8 method (assuming 1 unit is 16 x 16 dots).
It is.

以下、このことについて簡単に説明する。 This will be briefly explained below.

第4図において、A〜Nは、それぞれ16×16ド
ツトからなるユニツトであるとする。Aユニツト
を縦横にそれぞれ2等分して4分割し、図示のよ
うに、2次元座標平面にならつて、第1〜第4象
限(それぞれ8×8ドツトからなる)を仮定す
る。
In FIG. 4, it is assumed that A to N are units each consisting of 16×16 dots. The A unit is divided into four halves vertically and horizontally, and the first to fourth quadrants (each consisting of 8×8 dots) are assumed to follow a two-dimensional coordinate plane as shown in the figure.

また、指定された切出画像の大きさは、横3ユ
ニツト分(48ドツト)、縦2ユニツト分(32ドツ
ト)であると仮定する。
Further, it is assumed that the size of the specified cropped image is 3 units horizontally (48 dots) and 2 units vertically (32 dots).

以上の条件の下での切出ユニツトはつぎのよう
に決定される。
The cutting unit under the above conditions is determined as follows.

(1) 原画像上で指定された転記元位置の始点が、
Aユニツトの第1象限にあるときは、B〜Dお
よびF〜Hの6ユニツトが切出される。
(1) The starting point of the transcription source position specified on the original image is
When the A unit is in the first quadrant, six units B to D and F to H are cut out.

(2) 原画像上で指定された転記元位置の始点が、
Aユニツトの第2象限にあるときは、A〜Cお
よびE〜Gの6ユニツトが切出される。
(2) The starting point of the transcription source position specified on the original image is
When the A unit is in the second quadrant, six units A to C and E to G are cut out.

(3) 原画像上で指定された転記元位置の始点が、
Aユニツトの第3象限にあるときは、E〜Gお
よびK〜Mの6ユニツトが切出される。
(3) The starting point of the transcription source position specified on the original image is
When the A unit is in the third quadrant, six units E to G and K to M are cut out.

(4) 原画像上で指定された転記元位置の始点が、
Aユニツトの第4象限にあるときは、F〜Hお
よびL〜Nの6ユニツトが切出される。
(4) The starting point of the transcription source position specified on the original image is
When the A unit is in the fourth quadrant, six units F to H and L to N are cut out.

転記元位置の終点および転記先位置の始点に対
応するユニツトの指定も、前記に準じて行なわれ
る。
The units corresponding to the end point of the transcription source position and the start point of the transcription destination position are also specified in the same manner as described above.

なお、以上のような切出画像の決定法は、ユニ
ツトのサイズが16×16ドツトの場合に限られるも
のではなく、一般にM×Nドツトのユニツトの場
合にも、そのまま適用できることは明らかであ
る。このような方法を、この明細書では、便宜上
7捨8入法と総称することにする。
It should be noted that the method for determining the cropped image as described above is not limited to the case where the unit size is 16 x 16 dots, but it is clear that it can be applied as is to the case of a unit of M x N dots in general. . In this specification, for convenience, such a method will be collectively referred to as the 7 to 8 method.

ここで、例えば第5図に示すように、転記元の
始点位置PがAユニツトの第2象限の右下隅にあ
り、転記先の始点位置QがCユニツトの第4象限
の左上隅にあつたと仮定する。
For example, as shown in Figure 5, if the starting point P of the transcription source is at the lower right corner of the second quadrant of unit A, and the starting point Q of the transcription destination is at the upper left corner of the fourth quadrant of unit C. Assume.

すなわち、A,B,F,Gの4ユニツトに跨が
る図形aを、2ユニツト分(16ドツト×2)だけ
右方の図形bの位置へ移動させるように、指定さ
れたとする。
In other words, assume that it is specified that figure a, which spans four units A, B, F, and G, is to be moved two units (16 dots x 2) to the right of figure b.

この場合、前述した7捨8入法によれば、転記
元の始点が切捨てられてPaで示す位置となり、
一方、転記先の始点は反対に切上げられてQaで
示すようにKユニツトの位置になる。
In this case, according to the above-mentioned 7 to 8 method, the starting point of the transcription source is rounded down to the position indicated by Pa,
On the other hand, the starting point of the transfer destination is rounded up to the position of K units as shown by Qa.

それ故に、第5図のA,B,F,Gの4ユニツ
ト分の画像データが、図形cで示すように、Kユ
ニツトで始まる位置へずれて移動されることにな
る。
Therefore, the image data for four units A, B, F, and G in FIG. 5 are shifted and moved to the position starting at unit K, as shown by figure c.

すなわち、前記7捨8入法を単純に適用して、
転記元と転記元の指定位置をユニツト位置に変換
すると、転記元と転記先の両方で、切捨て・切上
げによる誤差を生じるために、転記先のずれが大
きくなり、意図した位置に、意図した部分の画像
が正確に転記されない場合が生ずるという欠点が
あつた。
That is, by simply applying the 7 to 8 method mentioned above,
When the specified positions of the posting source and posting source are converted to unit positions, errors due to rounding down and rounding up occur in both the posting source and posting destination, resulting in a large discrepancy in the posting destination, and the intended part is not placed in the intended position. There was a drawback that there were cases in which images were not transferred accurately.

(目的) 本発明は、前述の欠点を除去するためになされ
たものであり、その目的は、指定された画像の転
記先の指定位置からのずれがなるべく小さくなる
ような画像位置変換装置を提供することにある。
(Objective) The present invention has been made in order to eliminate the above-mentioned drawbacks, and its object is to provide an image position conversion device in which the deviation from the designated position of the transcription destination of a designated image is as small as possible. It's about doing.

(概要) 前記の目的を達成するために、本発明は、位置
を変更しようとする画像の転記元および転記先の
始点を読取る手段と、それぞれの属するユニツト
内における前記転記元および転記先の始点のX座
標およびY座標を演算する手段と、前記転記元お
よび転記先の始点を同一ユニツト内に配置したと
仮定した場合の、両者の位置関係を判定する手段
と、前記転記元および転記先の始点を同一ユニツ
ト内に配置したと仮定した場合の、両者の距離ま
たは差を演算する手段と、前記判定手段および差
演算手段で得られた結果に基づいて、転記元およ
び転記先の始点をユニツト位置に変換する際に切
上げによるか、切捨てによるかの変換法を決定す
る手段とを具備した点に特徴がある。
(Summary) In order to achieve the above object, the present invention provides means for reading the starting points of the transcription source and transcription destination of an image whose position is to be changed, and means for reading the starting points of the transcription source and transcription destination within the units to which they belong. means for calculating the X and Y coordinates of the transcription source and the transcription destination, means for determining the positional relationship between the transcription source and transcription destination assuming that the starting points of the transcription source and the transcription destination are located in the same unit; Assuming that the starting points are located in the same unit, the starting points of the transcription source and the posting destination are set to the unit based on the means for calculating the distance or difference between the two, and the results obtained by the determining means and the difference calculating means. The present invention is characterized in that it includes means for determining whether to round up or round down when converting to a position.

(実施例) 以下に、図面を参照して、本発明を詳細に説明
する。
(Example) The present invention will be described in detail below with reference to the drawings.

第6図は本発明の動作原理を説明するための図
である。
FIG. 6 is a diagram for explaining the operating principle of the present invention.

原画像上にx軸(図では水平方向)およびy軸
(図では垂直方向)を仮定し、第6図A,Bに示
したように、転記元の始点Pと転記先始点Qの座
標をそれぞれ(x1,y1)(u2,y2)とする。ここ
で、x,yはそれぞれドツト単位で計測するもの
とする。
Assuming an x-axis (horizontal direction in the figure) and a y-axis (vertical direction in the figure) on the original image, calculate the coordinates of the starting point P of the transcription source and the starting point Q of the transcription destination, as shown in Figure 6A and B. Let them be (x1, y1) (u2, y2), respectively. Here, x and y are each measured in units of dots.

本発明では、2次元の位置情報を、x方向とy
方向の2つに分け、前記1次元の位置情報(xi,
yi)に基づいて、それぞれを同じ方法でユニツト
位置に変換する。それ故に、以下においては、x
方向での変換方法についてのみ説明する。
In the present invention, two-dimensional position information is stored in the x direction and the y direction.
The one-dimensional position information (xi,
yi), convert each to a unit position in the same way. Therefore, in the following, x
Only the conversion method in direction will be explained.

(1) まず、転記元および転記先の各始点P,Qの
x方向の位置座標x1とx2が、原画像を16ドツ
トずつ(一般には、Mドツトずつ)のユニツト
に区切つた時、それぞれが属するユニツト内の
どの位置(0〜15ドツト)になるかを求める。
(1) First, when the x-direction position coordinates x1 and x2 of the starting points P and Q of the transcription source and transcription destination are divided into units of 16 dots each (generally M dots each), each Find the position (0 to 15 dots) within the unit to which it belongs.

これを場合分けすると、第7図の()〜
()のようになる。
If we divide this into cases, () ~
()become that way.

() 転記元Pのドツト位置が0〜7で、転記
先Qのドツト位置も0〜7である。
() The dot positions of the transcription source P are 0 to 7, and the dot positions of the transcription destination Q are also 0 to 7.

() 転記元Pのドツト位置が8〜15で、転記
先Qのドツト位置も8〜115である。
() The dot positions of the transcription source P are 8 to 15, and the dot positions of the transcription destination Q are also 8 to 115.

() 転記元Pのドツト位置が8〜15で、転記
先Qのドツト位置も0〜7である。
() The dot positions of the transcription source P are 8 to 15, and the dot positions of the transcription destination Q are also 0 to 7.

() 転記元Pのドツト位置が0〜7で、転記
先Qのドツト位置も8〜15である。
() The dot positions of the transcription source P are 0 to 7, and the dot positions of the transcription destination Q are also 8 to 15.

(2) 次に、2つの始点P,Qが、それらを同一の
ユニツトに置き換えて考えた場合、そのユニツ
ト内で何ドツト離れているか、その間隔または
差(ドツト)を求める。明らかなように、これ
は第7図のdに等しい。
(2) Next, if we replace the two starting points P and Q with the same unit, find the distance or difference (dots) between them within that unit. As can be seen, this is equivalent to d in FIG.

(3) 最後に、つきの基準にしたがつて、切出しユ
ニツトを決定する。
(3) Finally, determine the cutting unit according to the criteria.

(a) P,Q2つの位置が、第7図のかの場
合で、かつ、前記(2)で求めた差dが8ドツト
(一般には、M/2ドツト)未満である時は、
転記先のx方向座標x2のユニツト位置への
変換は、他の条件に係りなく、転記元のx方
向座標x1のユニツト位置への変換方法(7
捨8入法による切上げ、又は切捨て)と同じ
方法で実施する。
(a) When the two positions P and Q are as shown in Figure 7, and the difference d obtained in (2) above is less than 8 dots (generally M/2 dots),
The conversion of the x-direction coordinate x2 of the transcription destination to the unit position is performed using the method of converting the x-direction coordinate x1 of the transcription source to the unit position (7), regardless of other conditions.
It is carried out in the same way as rounding up or rounding down to the nearest eight.

すなわち、x1に7捨8入法を適用し、「切
上げ」になつたならば、x2は必ず「「切上
げ」処理をし、反対にx1が「切捨て」にな
つたならば、x2は必ず「切捨て」処理をす
る。
In other words, if x1 is rounded up to the nearest 7, then x2 is always rounded up, and conversely, if x1 is rounded down, x2 is always rounded up. Perform "truncation" processing.

(b) 上記以外の場合、すなわち、第7図のと
の場合で差dが8ドツト(一般には、M/
2ドツト)以上ある時、あるいはとの場
合には、2つの座標x1,x2のユニツト位置
への変換は、前述した7捨8入の方法で、そ
れぞれ独立に実行する。
(b) In cases other than the above, that is, in the case of Fig. 7, the difference d is 8 dots (generally, M/
2 dots) or more, the conversion of the two coordinates x1 and x2 into unit positions is performed independently using the aforementioned 7 to 8 method.

第8図は本発明の一実施例の全体構成を示す概
略ブロツク図である。
FIG. 8 is a schematic block diagram showing the overall configuration of an embodiment of the present invention.

画像読取入力部11は、原画像10をラスタス
キヤン方式で読取り、2値または多値の2次元画
像データを発生する。
The image reading input unit 11 reads the original image 10 using a raster scan method and generates binary or multivalued two-dimensional image data.

画像圧縮処理部12は、前記の2次元画像デー
タを供給され、前掲の特願昭57−91406号に示し
たような手法で、 (1) 原画像をM×Nドツトずつのマトリクス領域
よりなるユニツトに分割し、 (2) 各ユニツトの画情報の状態を示すデータを作
成し、 (3) これをマツプメモリに記憶させる。データメ
モリ14は、前記ユニツトを単位として原画像
のデータを記憶している。
The image compression processing unit 12 is supplied with the above two-dimensional image data, and uses the method shown in the above-mentioned Japanese Patent Application No. 57-91406 to (1) convert the original image into a matrix area of M×N dots; Divide into units, (2) create data indicating the state of image information for each unit, and (3) store this in map memory. The data memory 14 stores original image data in units of units.

以上によつて、マトリクスユニツト化によるデ
ータ圧縮および記憶が行なわれる。
As described above, data compression and storage by matrix unitization are performed.

つぎに、前述のように、マツプメモリ13およ
びデータメモリ14に圧縮して記憶された画像情
報に基づいて、画像の転記・編集を行なう場合の
動作を、第9図のフローチヤートをも参照して説
明する。
Next, referring to the flowchart in FIG. 9, we will explain the operation of transcribing and editing images based on the image information compressed and stored in the map memory 13 and data memory 14 as described above. explain.

まず、キー入力部(座標読取部)15から入力
された転記元および転記先の始点位置情報P
(x1,y1)およびQ(x2,y2)をCPU(図示せず)
に読込む(第9図のステツプS1)。この位置情報
P,Qは、始点P,Qのユニツト内位置決定部1
6へ伝送され、前記位置PおよびQの各ユニツト
内でのドツト位置x1,x2(すなわち、例えば、第
6図において、点P,Qが、それぞれの属するユ
ニツトの左縁、および上縁から数えて何ドツト目
に相当するか)が演算される(第9図のステツプ
S2)。
First, starting point position information P of the transcription source and transcription destination input from the key input unit (coordinate reading unit) 15
(x1, y1) and Q (x2, y2) by CPU (not shown)
(Step S1 in Figure 9). This position information P, Q is stored in the intra-unit position determination unit 1 of the starting points P, Q.
6, and the dot positions x1 and x2 in each unit of the positions P and Q (i.e., in FIG. (which dot it corresponds to) is calculated (steps in Figure 9).
S2).

例えば、転記元の位置情報としてx1=23,y1
=30、転記先の位置情報としてx2=56,y2=96
が与えられたとする(単位はドツト数)。
For example, x1 = 23, y1 as the location information of the transcription source
= 30, x2 = 56, y2 = 96 as the location information of the posting destination
Suppose that is given (the unit is the number of dots).

23=16×1+, 56=16×3+ であるから、点PおよびQのそれぞれのユニツト
内でのx方向位置X1,X2は、7ドツトおよび8
ドツトとなる。
Since 23=16×1+ 7 and 56=16×3+ 8 , the x-direction positions X1 and X2 of points P and Q within the unit are 7 dots and 8 dots.
It becomes a dot.

前述したように、x方向およびy方向の処理は
全く同様に行なわれるので、以下においてはx方
向の処理についてのみ説明する。また、第9図の
フローチヤートも、図の簡略化のために、y方向
の処理については図示を省略している。
As mentioned above, the processing in the x direction and the y direction are performed in exactly the same way, so only the processing in the x direction will be described below. Also, in the flowchart of FIG. 9, illustration of the processing in the y direction is omitted for the sake of simplification.

前記のように点P,Qのユニツト内での位置
X1,X2を演算した後、それら2点の位置関係
が、第7図に示した4つの場合のどれに当るか
を、第8図の始点P,Qの位置関係判定部17で
判定する。
As mentioned above, the positions of points P and Q within the unit
After calculating X1 and X2, the positional relationship determination unit 17 for the starting points P and Q in FIG. 8 determines which of the four cases shown in FIG. 7 corresponds to the positional relationship between these two points.

すなわち、転記元の位置X1が8に等しいか、
またはこれより大であるかを判定し(第9図のス
テツプS3)、つづいて転記先の位置X2が8に等し
いか、またはこれより大であるかを判定する(同
図のステツプS4,S5)。
That is, whether the source position X1 is equal to 8 or
8 or greater (step S3 in FIG. 9), and then determines whether the posting destination position X2 is equal to or greater than 8 (steps S4 and S5 in the same figure). ).

これらステツプS3〜S5の判定結果から、第7
図に示した場合分けが可能である。
Based on the judgment results of these steps S3 to S5, the seventh
The cases shown in the figure can be classified.

(1) ステツプS3の判定が不成立で、ステツプS
4の判定も不成立ならば、場合Iに属する (2) ステツプS3の判定が不成立で、ステツプS4
の判定が成立ならば、場合に属する。
(1) If the judgment of step S3 is not satisfied, step S
If the judgment in step S3 is also not true, it belongs to case I (2) If the judgment in step S3 is not true, step S4
If the judgment holds, it belongs to the case.

(3) ステツプS3の判定が成立で、ステツプS5の
判定も成立ならば、場合に属する。
(3) If the determination in step S3 is true and the determination in step S5 is also true, it belongs to the case.

(4) ステツプS3の判定が成立で、ステツプS5の
判定が不成立ならば、場合に属する。
(4) If the determination in step S3 is true and the determination in step S5 is false, it belongs to the case.

前記数値例の場合は、X1=7,X2=8である
から、ステツプS3の判定が不成立、ステツプS4
の判定が成立であり、第7図の場合であると判
定される。
In the case of the above numerical example, since X1 = 7 and X2 = 8, the determination in step S3 is not satisfied and the determination in step S4 is
It is determined that the above is true, and the case of FIG. 7 is determined to be true.

このように判定されたときは、さらに、前記各
始点P,Qが同一のユニツト内に位置したと仮定
した場合の、点P,Q間の距離(間隔)または差
Δx(第7図のdに相当する)を始点P,Qのユニ
ツト内間隔演算部18で演算する。この演算は|
X1−X2|によつて可能である。
When it is determined in this way, further calculate the distance (interval) or difference Δx (d ) is calculated by the intra-unit interval calculating section 18 at the starting points P and Q. This operation is |
It is possible by X1−X2|.

始点P,Qのユニツト内間隔演算部18におけ
る前記演算結果および始点P,Qの位置関係判定
部17における判定結果に基づいて、始点P,Q
のユニツト位置変換部19は、予め決められた法
則にしたがつて、切上げまたは切捨て演算を実行
し、前記各始点P,Qをユニツト位置へ変換す
る。
Based on the calculation results of the intra-unit interval calculation unit 18 for the start points P and Q and the determination results of the positional relationship determination unit 17 for the start points P and Q, the start points P and Q are
The unit position conversion section 19 executes a rounding up or rounding down operation according to a predetermined rule, and converts each of the starting points P and Q into a unit position.

前記数値例の場合は、差Δxは1である。第9
図のフローチヤートでは、この差Δxが8に等し
いか、これにより大であるかの判定がステツプ
S6でなされる。この例では、この判定は成立し
ないので、ステツプS8に進む。
In the case of the above numerical example, the difference Δx is 1. 9th
In the flowchart shown in the figure, the step is to determine whether this difference Δx is equal to or greater than 8.
Done in S6. In this example, this determination is not established, so the process advances to step S8.

ステツプS8では、まず転記元Pについて、7
捨8入法によるX1のユニツト位置への変換を行
なう。前述のように、X1は7であるから、切捨
てによつて前記変換が行なわれる。
In step S8, first, regarding the transcription source P, 7
Convert X1 to the unit position using the rounding method. As mentioned above, since X1 is 7, the conversion is performed by truncation.

他方、ステツプS8における転記先Qについて
の変換は、X2の値いかんに拘わらず、X1の処理
と同じ方法(切上げ、切捨て)で行なわれる。
On the other hand, the conversion for the posting destination Q in step S8 is performed in the same manner as the processing for X1 (rounding up, rounding down), regardless of the value of X2.

すなわち、この例では、X2は8であるので、
7捨8入法によれば切上げとなるべきではある
が、X1が切捨てによつて処理されたので、X2も
切捨てによつてユニツト位置へ処理変換される。
That is, in this example, since X2 is 8,
According to the 7 to 8 method, it should be rounded up, but since X1 was processed by rounding down, X2 is also processed and converted to a unit position by rounding down.

第9図のステツプS7においては、X1およびX2
について、互いに他とは無関係に、それぞれ本来
の7捨8入法によつて、ユニツト位置への変換が
実行される。
In step S7 of FIG. 9, X1 and X2
, respectively, are converted into unit positions independently of each other using the original 7 to 8 method.

前記ステツプS6〜S8の処理は、第8図の構成
では、始点P,Qのユニツト位置変換部19にお
いて実行される。
In the configuration shown in FIG. 8, the processing in steps S6 to S8 is executed in the unit position conversion section 19 at the starting points P and Q.

転記元および転記先の始点P,Qのx方向での
ユニツト位置への変換につづいて、全く同様の方
法で、y方向でのユニツト位置への変換処理が実
行される。
Following the conversion of the starting points P and Q of the transcription source and destination into unit positions in the x direction, conversion processing into unit positions in the y direction is performed in exactly the same manner.

前述のようにして得られた各点P,Qについて
のユニツト位置データは、画像切出・移転制御部
20へ転送される。画像切出・移転制御部20
は、これらのデータに基づいてマツプメモリ13
のデータを書き換える。
The unit position data for each point P and Q obtained as described above is transferred to the image cutting/transfer control section 20. Image cutting/transfer control unit 20
The map memory 13 is based on these data.
Rewrite the data.

そして、書き換えたデータに基づいて、データ
メモリ14の該当内容を読み出し、画像伸長処理
部21において、原画像データを復元伸長し、画
像出力部22において、新たな画像を表示または
印字出力する。
Then, based on the rewritten data, the corresponding contents of the data memory 14 are read out, the image expansion processing section 21 restores and expands the original image data, and the image output section 22 displays or prints out a new image.

以上に述べた実施例によれば、従来例の場合の
ように、画像の移動先が指定された所から大幅に
ずれてしまうような欠点は除去される。
According to the embodiments described above, the drawback that the destination of the image is significantly deviated from the designated location, which is the case with the conventional example, can be eliminated.

なお、前述の変換方法によると、転記元の画像
を最大7ドツト多く切り出してしまう場合と、最
大7ドツト少なく切り出す(すなわち、指定され
た画像の一部が脱落してしまう)場合があり得
る。
According to the above-mentioned conversion method, there are cases in which the transcription source image is cut out by up to 7 dots more, or cut out by up to 7 dots less (that is, a part of the designated image is dropped).

したがつて、転記元の画像を常に多く切り出し
たい場合や、常に少なく切り出したい場合には、
第9図のフローチヤートの修正が必要になる。
Therefore, if you always want to crop more or less of the transcription source image,
The flowchart in Figure 9 will need to be revised.

第10図は、転記元の画像を常に多く切り出し
たい場合のフローチヤートであり、第11図は、
転記元の画像を常に少なく切り出したい場合のフ
ローチヤートである。この場合の動作や処理につ
いては、改めて説明する必要もないと思われる
が、以下に簡単に説明する。
Figure 10 is a flowchart when you want to always cut out a large amount of the transcription source image, and Figure 11 is
This is a flowchart when you always want to cut out a small amount of the transcription source image. Although there is no need to explain the operation and processing in this case again, a brief explanation will be given below.

なお、これらの図において、同じ番号のステツ
プでは同じ処理を行なうものである。また、ステ
ツプS1,S2は第9図の場合と同じである。
Note that in these figures, steps with the same number perform the same processing. Further, steps S1 and S2 are the same as in the case of FIG.

ステツプS13…転記元および転記先の各点P,
Qが同一のユニツト内にあると仮定した場合の、
両者の距離または差|X1−X2|が、8よりも大
きいかどうかを判定する。この判定が成立しない
ときはステツプS14へ進み、判定が成立したとき
はステツプS15へ進む。
Step S13... Each point P of the transcription source and the transcription destination,
Assuming that Q is in the same unit,
It is determined whether the distance or difference between the two |X1−X2| is greater than 8. If this determination is not established, the process proceeds to step S14, and if this determination is established, the process proceeds to step S15.

ステツプS14…転記元および転記先とも切捨て
によつてユニツト位置に変換する。
Step S14... Both the transcription source and transcription destination are converted into unit positions by rounding down.

ステツプS15…転記元のユニツト内での位置X1
が、8よりも小さいかどうかを判定する。判定が
成立するときはステツプS16へ進み、成立しない
ときはステツプS17へ進む。
Step S15...Position X1 within the unit of transcription source
is smaller than 8. When the determination is true, the process advances to step S16, and when it is not true, the process advances to step S17.

ステツプS16…転記元は切捨てにより、また転
記先は切上げによつてユニツト位置を決定する。
Step S16...The unit position is determined by rounding down the transcription source and rounding up the transcription destination.

ステツプS17…転記元は切捨てによつてユニツ
ト位置を決定し、一方転記先は常に1つ前のユニ
ツト位置を選定する。
Step S17...The transcription source determines the unit position by rounding down, while the transcription destination always selects the previous unit position.

次に、第11図のフローチヤートについて説明
する。
Next, the flowchart shown in FIG. 11 will be explained.

ステツプS14A…転記元および転記先の両者と
も切上げによつてユニツト位置を決定する。
Step S14A...Determine the unit position of both the transcription source and transcription destination by rounding up.

ステツプS16A…転記元は切上げによつてユニ
ツト位置を決定するが、転記先については必ず1
つ先のユニツト位置を選定する。
Step S16A...The posting source determines the unit position by rounding up, but the posting destination is always rounded up.
Select the position of the toe unit.

ステツプS17A…転記元は切上げにより、一方
転記先は切捨てによつてユニツト位置を決定す
る。
Step S17A: The unit position of the transcription source is determined by rounding up, and the unit position of the transcription destination is determined by rounding down.

以上に述べたような処理を行なうことにより、
第10図のフローチヤートに従つた場合には、転
記元の画像を常に多く切出すことができ、一方第
11図のフローチヤートに従つた場合には、転記
元の画像を常に少なく切出すことができる。
By performing the processing described above,
If you follow the flowchart in Figure 10, you can always crop more of the transcription source image, while if you follow the flowchart in Figure 11, you can always crop less of the transcription source image. I can do it.

(効果) 以上の説明から明らかなように、本発明によれ
ば、つぎのような効果が達成される。
(Effects) As is clear from the above description, according to the present invention, the following effects are achieved.

マトリツクスユニツト化データ圧縮法によつて
記憶された画像処理システムにおいて、指定され
た転記元の画像を、なるべく少ない平均的なずれ
で、指定された転記先へ移動させることができ
る。
In an image processing system that stores data using the matrix unitization data compression method, it is possible to move a designated transcription source image to a designated transcription destination with as little average deviation as possible.

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

第1図は画像をユニツトに分割する状態を示す
模式図、第2図はマツプメモリの一例を示す模式
図、第3図はデータメモリの説明図、第4図は7
捨8入法法を適用した場合の、転記元および転記
先の始点のユニツト内での位置と選択されるユニ
ツト位置との関係を説明するための模式図、第5
図は従来法により、転記元の画像が転記先で位置
ずれを生ずることを説明するための模式図、第6
図は、本発明の動作を説明するための、転記元お
よび転記先の位置を示す模式図、第7図は転記元
および転記先を同一のユニツトに置換した場合に
起り得べき両者の位置関係を場合分けして示す
図、第8図は本発明の一実施例の全体構成を示す
機能ブロツク図、第9図は本発明の一実施例の動
作を説明するためのフローチヤート、第10図お
よび第11図はそれぞれ本発明の他の実施例の動
作を説明するためのフローチヤートである。 1……画像、2……マツプメモリ、33……デ
ータメモリ、A〜N……ユニツト、P……転記元
の始点、Q……転記先の始点。
Fig. 1 is a schematic diagram showing how an image is divided into units, Fig. 2 is a schematic diagram showing an example of a map memory, Fig. 3 is an explanatory diagram of a data memory, and Fig. 4 is a schematic diagram showing a state in which an image is divided into units.
Schematic diagram for explaining the relationship between the position of the starting point of the transcription source and the transcription destination within the unit and the selected unit position when the rounding down method is applied, No. 5
The figure is a schematic diagram to explain that the original image is misaligned at the transcription destination using the conventional method.
The figure is a schematic diagram showing the positions of the transcription source and the transcription destination for explaining the operation of the present invention, and Figure 7 shows the possible positional relationship between the transcription source and the transcription destination when they are replaced with the same unit. FIG. 8 is a functional block diagram showing the overall configuration of an embodiment of the present invention; FIG. 9 is a flowchart for explaining the operation of an embodiment of the present invention; FIG. 10 and FIG. 11 are flowcharts for explaining the operation of other embodiments of the present invention. 1...Image, 2...Map memory, 33...Data memory, A to N...Unit, P...Starting point of transcription source, Q...Starting point of transcription destination.

Claims (1)

【特許請求の範囲】 1 2値もしくは多値の2次元画像データを、M
×Nドツトのマトリクスよりなる多数のユニツト
に分割し、それぞれのユニツトに単位メモリを対
応させたマツプメモリと、ユニツトの画像データ
を保持するデータメモリとを設け、マツプメモリ
上の各単位メモリ位置はユニツトの画像上の位置
と対応付けられており、さらに、マツプメモリに
は対応するユニツトの画像を保持するデータメモ
リへのポインタが記憶されている画像データ記憶
装置における画像位置変換装置であつて、位置を
変更しようとする画像の転記元および転記先の始
点を読取る手段と、それぞれの属するユニツト内
における前記転記元および転記先の始点のX座標
およびY座標を演算する手段と、前記転記元およ
び転記先の始点を同一ユニツト内に配置したと仮
定した場合の、両者の位置関係を判定する手段
と、前記転記元および転記先の始点を同一ユニツ
ト内に配置したと仮定した場合の、両者の距離ま
たは差を演算する手段と、前記位置関係判定手段
および差演算手段で得られた結果に基づいて、転
記元および転記先の始点をユニツト位置に変換す
る際に切上げによるか、切捨てるかの変換法を決
定する手段とを具備したことを特徴とする画像位
置変換装置。 2 変換法の決定は、X方向とY方向について、
それぞれ独立に行なわれることを特徴とする前記
特許請求の範囲第1項記載の画像位置変換装置。 3 前記転記元および転記先の始点を同一ユニツ
ト内に配置したと仮定した場合、ユニツトの中心
を通る水平または垂直線に関して、前記転記元お
よび転記先の始点が互に反対側に位置し、かつそ
の差または間隔が、ユニツトのサイズの半分より
も小さいときは、転記元のユニツト位置への変換
は7捨8入法で行ない、転記先のユニツト位置へ
の変換は7捨8入法によらず、転記元と同じ切上
げまたは切捨てによつて行なうことを特徴とする
前記特許請求の範囲第1項または2項記載の画像
位置変換装置。
[Claims] 1 Binary or multivalued two-dimensional image data is
A map memory is provided which is divided into a large number of units consisting of a matrix of ×N dots, and a unit memory is associated with each unit, and a data memory that holds the image data of the unit. Each unit memory location on the map memory is assigned to the unit memory. An image position conversion device in an image data storage device that is associated with a position on an image and further stores a pointer to a data memory that holds the image of the corresponding unit in the map memory, and that changes the position. means for reading the starting points of the transcription source and transcription destination of the image to be copied; means for calculating the X and Y coordinates of the transcription source and transcription destination starting points within the respective units to which they belong; A means for determining the positional relationship between the two, assuming that the starting point is located in the same unit, and a distance or difference between the two, assuming that the starting point of the transcription source and the transcription destination are located in the same unit. and a conversion method of rounding up or rounding down when converting the starting points of the transcription source and the transcription destination to unit positions based on the results obtained by the positional relationship determining means and the difference calculating means. An image position conversion device characterized by comprising: determining means. 2. To determine the conversion method, for the X direction and Y direction,
2. The image position converting device according to claim 1, wherein the image position converting device is configured to perform each step independently. 3. Assuming that the starting points of the posting source and posting destination are located in the same unit, the starting points of the posting source and posting destination are located on opposite sides with respect to a horizontal or vertical line passing through the center of the unit, and If the difference or interval is less than half the size of the unit, conversion to the source unit position is performed using the 7 to 8 method, and conversion to the transfer destination unit position is performed using the 7 to 8 method. 3. The image position conversion apparatus according to claim 1, wherein the image position conversion apparatus performs the conversion by rounding up or down in the same way as the transcription source.
JP58192532A 1983-10-17 1983-10-17 Picture position converter Granted JPS6085677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58192532A JPS6085677A (en) 1983-10-17 1983-10-17 Picture position converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58192532A JPS6085677A (en) 1983-10-17 1983-10-17 Picture position converter

Publications (2)

Publication Number Publication Date
JPS6085677A JPS6085677A (en) 1985-05-15
JPH0462224B2 true JPH0462224B2 (en) 1992-10-05

Family

ID=16292842

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58192532A Granted JPS6085677A (en) 1983-10-17 1983-10-17 Picture position converter

Country Status (1)

Country Link
JP (1) JPS6085677A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2584159A1 (en) 2011-10-18 2013-04-24 Mikuni Corporation Valve Timing Changing Apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2584159A1 (en) 2011-10-18 2013-04-24 Mikuni Corporation Valve Timing Changing Apparatus

Also Published As

Publication number Publication date
JPS6085677A (en) 1985-05-15

Similar Documents

Publication Publication Date Title
US5029228A (en) Image data filing system
US6593926B1 (en) Map 3D-converter system
US5195174A (en) Image data processing apparatus capable of composing one image from a plurality of images
JPS60262122A (en) Sticking method of original picture
US5673421A (en) Drawing arranging system
JPH0462224B2 (en)
JPH0646408B2 (en) Split image processing method
JPH04158388A (en) Map database generating/correcting system
JPH05205069A (en) Method and device for encoding
JPH09198499A (en) Method and device for processing picture
JP2773127B2 (en) Image editing method
JPS635795B2 (en)
JPS63208898A (en) Character processor
Holmes et al. The MAPEDIT system for automatic map digitization
JPH0529951B2 (en)
JPH06325115A (en) Microroute search assistance system and its profile chart generating method
KR880001172B1 (en) Letter reproducing method
JP2613080B2 (en) Image enlargement apparatus and method
JPH03166658A (en) Inserting method for character-string data
JPS58209261A (en) Image data storage system
JP2613095B2 (en) Image enlargement apparatus and method
JPH02146687A (en) Reference point detecting system
JPS6042758A (en) Apparatus for composing original picture of printed board
JPH07200874A (en) Production of two-dimensional drawing for three-dimensional cad system
JPH0271378A (en) Still picture processing system