JPS6195478A - Coordinate conversion processing device of picture - Google Patents
Coordinate conversion processing device of pictureInfo
- Publication number
- JPS6195478A JPS6195478A JP59216644A JP21664484A JPS6195478A JP S6195478 A JPS6195478 A JP S6195478A JP 59216644 A JP59216644 A JP 59216644A JP 21664484 A JP21664484 A JP 21664484A JP S6195478 A JPS6195478 A JP S6195478A
- Authority
- JP
- Japan
- Prior art keywords
- scanning
- image
- reading
- reference point
- data memory
- 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
Links
- 238000006243 chemical reaction Methods 0.000 title description 2
- 230000015654 memory Effects 0.000 claims abstract description 18
- 230000009466 transformation Effects 0.000 claims description 11
- 238000003672 processing method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 238000011426 transformation method Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、ディジタル画像の回転を行なわせる画像の座
標変換処理方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an image coordinate transformation processing method for rotating a digital image.
従来例の構成とその問題点
近年、メモリ等の半導体集積回路装置の高密度高速化に
より、ディジタル画像処理が実用化の段階に達して来て
いる。ところでディジタル画像処理のなかで、画像の座
標変換は、非常に基本的な処理の1つであり、多用され
るものである。2. Description of the Related Art Structures of Conventional Examples and Their Problems In recent years, digital image processing has reached the stage of practical use due to the increase in density and speed of semiconductor integrated circuit devices such as memories. Incidentally, in digital image processing, image coordinate transformation is one of the very basic processes and is frequently used.
一般に、ディジタル画像の回転2反転移動等の座標変換
は、メモリに記憶された2次元の広がりを持つ入力画像
をF(x、y)において、座標(x、y)に
の様な演算処理をほどこす事により実理できる。In general, coordinate transformation such as rotation and inversion of a digital image involves processing an input image with a two-dimensional spread stored in memory at F(x, y) and converting it to coordinates (x, y). It can be put into practice by applying it.
しかしながら、この様な汎用的な座標変換の手法におい
ては、1画素毎に、(1)式に示した様な、複数回の乗
算、加算を含む演算処理を行なった後に再度メモリに書
き込む必要がある。また、出力座標(x′、y′)が整
数とならない場合には、出力画素データを補間処理によ
り作成する必要も生じてくる。その為に、上記の様な、
座標変換の手法においては、処理速度は低速であり、ま
た、処理装置の規模は増大しがちであった。However, in such a general-purpose coordinate transformation method, it is necessary to perform arithmetic processing including multiple multiplications and additions as shown in equation (1) for each pixel, and then write it to memory again. be. Further, if the output coordinates (x', y') are not integers, it becomes necessary to create output pixel data by interpolation processing. For that reason, as mentioned above,
In the coordinate transformation method, the processing speed is slow and the scale of the processing device tends to increase.
そこで、従来より、画像データメモリの読み出しアドレ
スを制御する事により、簡単に座標変換を実現する事が
行なわれていた。Therefore, conventionally, coordinate transformation has been easily realized by controlling the read address of the image data memory.
第1図に従来の座標変換処理方式の説明図を示す。FIG. 1 shows an explanatory diagram of a conventional coordinate transformation processing method.
第1図(→は、等測的に2次元アドレスを持つ画像デー
タメモリM(x、y)を示すものであり、一般に、画1
象の書き込み、読み出しは、図中に示す矢印のごとく、
x方向の主走査、y方向の副走査に従って、1画素ずつ
行なわれている。読み出しアドレスの走査を書き込み時
のアドレスの走査と一致させれば入力画像がそのまま再
生される。Figure 1 (→ indicates an image data memory M(x, y) having isometric two-dimensional addresses;
To write and read data, follow the arrows shown in the figure.
The scanning is performed pixel by pixel according to the main scanning in the x direction and the sub scanning in the y direction. If the scanning of the read address matches the scanning of the address during writing, the input image is reproduced as is.
入力画1象を9oo回転して再生する為には、第1図(
均中の矢印に示す様に、画像データメモリの読み出しア
ドレスを、y方向の主走査、−x方向。In order to rotate one input image by 90 degrees and reproduce it, please refer to Figure 1 (
As shown by the arrow in the middle, the read address of the image data memory is scanned in the main scan direction in the y direction and in the -x direction.
の副走査に従って読み出す事により可能である。This is possible by reading out according to the sub-scanning.
この様に、従来の座標変換処理方式は、画像データメモ
リの読み出し時において、読み出しアドレスの主走査、
副走査方向を入れかえたり、正負逆方向に走査する事に
より、画像の回転もしくは反転処理を行なうものであっ
た。In this way, in the conventional coordinate conversion processing method, when reading the image data memory, the main scanning of the read address,
Image rotation or inversion processing was performed by switching the sub-scanning direction or scanning in the positive and negative directions.
しかしながら、上記の例においては、画1象は90°も
しくは、9o0の整数倍の角度でしか回転を行なう事が
できない。However, in the above example, one image can only be rotated by 90 degrees or an angle that is an integral multiple of 9o0.
発明の目的
本発明はこの様な従来の問題に鑑み、処理装置を増大さ
せる事なく、90°より細かく画像の回転処理を実現し
うる画像の座標変換処理方式を提供する事を目的とする
。OBJECTS OF THE INVENTION In view of these conventional problems, it is an object of the present invention to provide an image coordinate transformation processing method that can realize image rotation processing finer than 90° without increasing the number of processing devices.
発明の構成
本発明は、画1象の走査にしたがって記憶された画像デ
ータメモリから画像データを読み出す時に、拡張された
アドレス空間において副走査周期毎に走査基準点をある
一定方向のななめ隣りの画素に移動させるとともに、主
走査周期毎に前記走査基 。Structure of the Invention The present invention provides a scanning reference point for each sub-scanning period in an expanded address space when reading out image data from an image data memory stored in accordance with the scanning of a single image. At the same time, the scanning base is moved every main scanning period.
理方式を提供するものである。This method provides a method for
実施例の説明
第2図は本発明の1実施例における画像の座標変換処理
装置の説明図を示す。DESCRIPTION OF THE EMBODIMENTS FIG. 2 is an explanatory diagram of an image coordinate transformation processing apparatus in an embodiment of the present invention.
説明を簡単にする為(,2次元画像の画素数を6×5個
とした。すなわち画像データメモリM(x、y)におい
て
のアドレス内に入力画像が走査にしたがって記憶されて
いるものとする。To simplify the explanation, the number of pixels in a two-dimensional image is assumed to be 6 x 5. In other words, it is assumed that the input image is stored in an address in the image data memory M (x, y) according to scanning. .
この様な、画1象データメモリにおいて読み出しアドレ
スを制御する事により450の回転を行なう。By controlling the read address in such an image data memory, 450 rotations are performed.
第2図(a)において、画像データメモリM(x、y)
は太線内に示されている。ここで、第2図(a)に点線
で示した様に、画像データメモリM(x、y)に外接す
る45°傾いた矩形のアドレス空間をもつN(x、y)
を設定する。N(x、y)は、図中に示した様に
のアドレス領域を持ち、x、yアドレスが(噂式をはみ
出す時には、画素データは、黒レベルまたは白レベル等
の一定値を与えるものとし、(勢式内においてはN(x
+ y )=M(xv y )である。In FIG. 2(a), image data memory M(x,y)
is shown within the thick line. Here, as shown by the dotted line in FIG. 2(a), N(x, y) has a rectangular address space inclined at 45 degrees circumscribing the image data memory M(x, y).
Set. N(x, y) has an address area as shown in the figure, and when the x, y address exceeds the rumored expression, the pixel data is assumed to give a constant value such as the black level or white level. , (N(x
+ y )=M(xv y ).
以上示した様に、46°の回転を行なう為には上記の様
なN(x、y)のアドレス空間において、読み出し走査
の基準点を(−1,3)にえらび、主走査周期毎に、エ
アドレスをインクリメント(+ 1 ) t yアドレ
スをデクリメント(−1)する事により、右ななめ上方
向に主走査が行なわれる。また、副走査周期毎に走査基
準点のX、7アドレスをそれぞれインクリメント(+1
)する事により、右ななめ下に副走査が行なわれ、走査
基準点が移動する。この様な読み出し走査を行なう事に
より、第2図(均に示した様に、時計回りに、45°回
転した出力画像が得られる。すなわち、画像データメモ
リのアドレス空間に外接する。As shown above, in order to perform a 46° rotation, in the address space of N (x, y) as described above, the reference point of the read scan is selected at (-1, 3), and every main scan period , the air address is incremented (+1) and the ty address is decremented (-1), whereby main scanning is performed diagonally upward to the right. In addition, the X and 7 addresses of the scanning reference point are each incremented (+1
), sub-scanning is performed diagonally downward to the right, and the scanning reference point moves. By performing such a readout scan, an output image rotated clockwise by 45 degrees as shown in FIG.
新しいアドレス空間N(x、y)を設定し、読み出し走
査を46°傾ける為、エアドレス、yアドレスを、主走
査および副走査毎に、同時に制御する。この時、走査線
間隔は6倍となり、1画素おきに走査される為出力画像
は、縮小されるものの、画像のひずみを生じる事なく4
5°回転されて再生され、補間等の処理を必要とせず、
容易に45°の回転ができる。In order to set a new address space N(x, y) and tilt the read scan by 46 degrees, the air address and y address are controlled simultaneously for each main scan and sub scan. At this time, the scanning line spacing is increased by 6 times, and since every other pixel is scanned, the output image is reduced, but the output image is 4 times larger without causing image distortion.
It is rotated by 5 degrees and played back, and does not require any processing such as interpolation.
Can easily rotate 45°.
以上、ここでは、説明を簡単にする為、画像サイズを5
×5としたが、いがなる大きさの画像においても本発明
が適用できることは明らかである。Above, in order to simplify the explanation, the image size is set to 5.
×5, but it is clear that the present invention can be applied to images of a size that is large enough.
また、Xアドレス、yアドレスの制御において、インク
リメント、デクリメントの処理の組み合わせにより、4
5°の整数倍の角度の回転および反転が可能であり、走
査基準点の初期値を変更する事により画像の移動が可能
である事は言うまでもない。In addition, in controlling the X address and y address, by combining increment and decrement processing, 4
Needless to say, it is possible to rotate and invert the image by an angle that is an integral multiple of 5 degrees, and it is also possible to move the image by changing the initial value of the scanning reference point.
以上本発明の1実施例の動作説明を行なったが本発明を
実現する為には、CPUによるソフトウェア処理及び専
用ハードウェア処理によって実現する事ができ、ソフト
ウェア規模、もしくは、ハードウェア規模を増大させる
事なく実現が可能である。The operation of one embodiment of the present invention has been described above, but in order to realize the present invention, it can be realized by software processing by a CPU and dedicated hardware processing, and the software scale or hardware scale may be increased. This can be achieved without any problems.
発明の効果
以上の様に、本発明は、画像メモリの読み出しアドレス
を制御する事により、簡単に45° およびその整数倍
の角度の画像回転2反転、移動を実現できる画像の座標
変換処理方式を提供するものである。Effects of the Invention As described above, the present invention provides an image coordinate transformation processing method that can easily realize image rotation, inversion, and movement of 45 degrees and integral multiples thereof by controlling the read address of the image memory. This is what we provide.
第1図(→、山は従来の画像の座標変換処理方式の説明
図、第2図(、)、(均は本発明の1実施例の画像の座
標変換処理方式の説明図である。
代理人の氏名 弁理士 中 尾 敏 男 はが1名第1
図
疋
第2図
工Fig. 1 (→, crest is an explanatory diagram of a conventional image coordinate transformation processing method, and Fig. 2 (, ), (yen is an explanatory diagram of an image coordinate transformation processing method of an embodiment of the present invention. Person's name Patent attorney Toshio Nakao Haga1 person No.1
Drawing 2nd drawing
Claims (1)
ら画像データを読み出す時に、拡張されたアドレス空間
において副走査周期毎に走査基準点を一定方向のななめ
隣りの画素に移動させるとともに、主走査周期毎に前記
走査基準点の移動方向に対して直交方向の画素データを
順次読み出すことにより、画像の45°および45°の
整数倍の角度の回転を行なわせる手段を有する事を特徴
とする画像の座標変換処理装置。When reading image data from the image data memory stored in accordance with image scanning, the scanning reference point is moved diagonally to an adjacent pixel in a certain direction in each sub-scanning period in the expanded address space, and the scanning reference point is moved diagonally to an adjacent pixel in a certain direction in each sub-scanning period in the expanded address space. Coordinate transformation of an image, comprising means for rotating the image by an angle of 45° and an integral multiple of 45° by sequentially reading out pixel data in a direction orthogonal to the moving direction of the scanning reference point. Processing equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59216644A JPS6195478A (en) | 1984-10-16 | 1984-10-16 | Coordinate conversion processing device of picture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59216644A JPS6195478A (en) | 1984-10-16 | 1984-10-16 | Coordinate conversion processing device of picture |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6195478A true JPS6195478A (en) | 1986-05-14 |
Family
ID=16691664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59216644A Pending JPS6195478A (en) | 1984-10-16 | 1984-10-16 | Coordinate conversion processing device of picture |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6195478A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003509778A (en) * | 1999-09-16 | 2003-03-11 | シルバーブルック リサーチ ピーティーワイ リミテッド | Method and apparatus for rotating Bayer images |
JP2007080001A (en) * | 2005-09-14 | 2007-03-29 | Ricoh Co Ltd | Image processing device |
-
1984
- 1984-10-16 JP JP59216644A patent/JPS6195478A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003509778A (en) * | 1999-09-16 | 2003-03-11 | シルバーブルック リサーチ ピーティーワイ リミテッド | Method and apparatus for rotating Bayer images |
US7936918B2 (en) | 1999-09-16 | 2011-05-03 | Silverbrook Research Pty Ltd | Method of printing from digital camera system |
JP2007080001A (en) * | 2005-09-14 | 2007-03-29 | Ricoh Co Ltd | Image processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6028584A (en) | Real-time player for panoramic imaged-based virtual worlds | |
US5263135A (en) | Image processing apparatus | |
JPS6195478A (en) | Coordinate conversion processing device of picture | |
JP2685580B2 (en) | Image synthesis device | |
JP2502274B2 (en) | Image converter | |
JPH0481231B2 (en) | ||
JP2712278B2 (en) | Wipe pattern generator | |
JPH10304356A (en) | Parallel image compression processor | |
JPS59214376A (en) | Picture data processor | |
JP3327961B2 (en) | Image processing device | |
JP2712287B2 (en) | Wipe pattern generator | |
JPH0863595A (en) | Method and device for rotation processing of image | |
JPS61188671A (en) | Image processor | |
JPS59214969A (en) | Rotating processing system of picture | |
JP2970606B2 (en) | Wipe pattern generator | |
JPH0520450A (en) | Image processing device | |
JPS61161576A (en) | Picture signal processor | |
JP2998689B2 (en) | How to map image data | |
JPS63124178A (en) | Picture processor | |
JPS62139082A (en) | Image processing device | |
JPH0462105B2 (en) | ||
JPH0481230B2 (en) | ||
JPH02118782A (en) | Method for processing picture | |
JPS62210587A (en) | Picture processor | |
JPS63116193A (en) | Affine transformation system for image |