JPS63146169A - Image memory - Google Patents
Image memoryInfo
- Publication number
- JPS63146169A JPS63146169A JP29361786A JP29361786A JPS63146169A JP S63146169 A JPS63146169 A JP S63146169A JP 29361786 A JP29361786 A JP 29361786A JP 29361786 A JP29361786 A JP 29361786A JP S63146169 A JPS63146169 A JP S63146169A
- Authority
- JP
- Japan
- Prior art keywords
- window
- image memory
- address
- processing
- pixel
- 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
Landscapes
- Image Input (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は二次元画像データを格納し処理するイメージ
メモリに関するものであり、特に、コンピュータによる
画像処理等に利用することができる。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to an image memory for storing and processing two-dimensional image data, and can be particularly used for image processing by a computer.
[従来の技術]
第5図は従来のイメージメモリの構成を示すブロック図
、第6図は従来のアドレス信号による画素の割付は状態
を示す図、第7図は画像領域内のウィンドウ領域と対象
画素との関係を示す図、第8図は従来のイメージメモリ
による対象画素とウィンドウとの位置関係を判断し処理
する工程を示すフローチャート、第9図は従来の画像演
算処理の前工程を示すフローチャートである。[Prior Art] Fig. 5 is a block diagram showing the configuration of a conventional image memory, Fig. 6 is a diagram showing the state of pixel allocation using conventional address signals, and Fig. 7 is a diagram showing the window area and object in the image area. Figure 8 is a flowchart showing the process of determining and processing the positional relationship between the target pixel and the window using a conventional image memory, and Figure 9 is a flowchart showing the pre-process of conventional image calculation processing. It is.
第5図において、(1)はアドレスバス、(2)はアド
レスバス(1)からアドレス信号を受けて処理対象画素
のアドレスを発生するアドレス発生部、(3)は画像デ
ータを格納し処理するイメージメモリ、(4)はデータ
バス、(5)はこのイメージメモリ機構全体の制御を行
う制御部(以下FCPUjという)、(6)は制御用の
プログラム等を格納するメモリである。In FIG. 5, (1) is an address bus, (2) is an address generator that receives an address signal from the address bus (1) and generates the address of the pixel to be processed, and (3) is a unit that stores and processes image data. An image memory, (4) is a data bus, (5) is a control unit (hereinafter referred to as FCPUj) that controls the entire image memory mechanism, and (6) is a memory that stores control programs and the like.
従来のイメージメモリは上記のように構成されており、
アドレスバス(1)からのアドレス信号を受けて、アド
レス発生部(2)でアドレスに修飾を加えたり、或いは
、アドレスバス(1)とデータバス(4)とを共用する
場合等は、アドレス信号をラッチしたりしている。そし
て、イメージメモリ(3)に格納された画像データは、
アドレス発生部(2)からのアドレス信号でアクセスさ
れ、データバス(4)との間でデータの入出力を行なう
。このイメージメモリ機構全体の制御は、メモリ(6)
内の画像処理プログラムに従って処理が行なわれている
。また、このメモリ(6)には上記プログラムの他に、
イメージ以外のデータを格納する領域も有していた。Conventional image memory is structured as above,
When receiving an address signal from the address bus (1), the address generator (2) modifies the address, or when the address bus (1) and data bus (4) are shared, the address signal latching. The image data stored in the image memory (3) is
It is accessed by an address signal from an address generation section (2), and inputs and outputs data to and from a data bus (4). The entire image memory mechanism is controlled by the memory (6).
Processing is performed according to the image processing program within. In addition to the above programs, this memory (6) also contains
It also had an area for storing data other than images.
次に、この画像処理動作について説明する。Next, this image processing operation will be explained.
マトリクス状に配列されたイメージメモリ(3)の画素
の位置は、その画素が格納されているイメージメモリ(
3)のアドレスと一対一に対応している。例えば、第6
図のようにハツチングで示された画素の位置を表す場合
には、アドレス信号の内容は、下位に画素の横軸方向の
座標(以下「X座標」という)を、上位に画素の縦軸方
向の座標(以下「Y座標」という)を割付けることが多
い。The position of a pixel in the image memory (3) arranged in a matrix is determined by the image memory (3) in which the pixel is stored.
There is a one-to-one correspondence with the address in 3). For example, the sixth
When representing the position of a pixel indicated by hatching as shown in the figure, the content of the address signal is the coordinate in the horizontal direction of the pixel (hereinafter referred to as "X coordinate") in the lower part, and the coordinate in the vertical direction of the pixel in the upper part. coordinates (hereinafter referred to as "Y coordinates") are often assigned.
このような内容のアドレス信号を、アドレス発生部(2
)はイメージメモリ(3)に出力し、イメージメモリ(
3)から所定の画素をアクセスして、所望の画像処理を
していた。The address signal with such content is sent to the address generator (2).
) is output to the image memory (3), and the image memory (
3), a predetermined pixel is accessed and desired image processing is performed.
ところが、実際の画像処理においては、全画像領域中の
一部分を切り出して、この領域(以下「ウィンドウ」と
いう)内で画像処理を行なうことがあった。また、処理
内容によっては、画素をr3X3j或いは、f5X5j
等の少領域(以下ブロックという)として扱う場合が多
かった。However, in actual image processing, a portion of the entire image area is sometimes cut out and image processing is performed within this area (hereinafter referred to as a "window"). Also, depending on the processing content, the pixel may be r3X3j or f5X5j
It was often treated as a small area (hereinafter referred to as a block) such as
例えば、第7図は画像領域内のウィンドウ(ハツチング
部分)と対象画素をIr3X3jのブロック処理を行な
っている場合の関係を示す。この場合に、A位置のよう
にブロック全体がウィンドウ内にある場合はよいが、場
合によってはB位置のようにブロックの一部がウィンド
ウからはみ出す場合がある。このような場合には、ブロ
ック内の一部の画素がウィンドウからはみ出しているか
否かを検知するルーチンを、画像処理プログラム中に含
める必要があった。For example, FIG. 7 shows the relationship between a window (hatched portion) in an image area and a target pixel when Ir3X3j block processing is performed. In this case, it is fine if the entire block is within the window, as at position A, but in some cases, a part of the block may protrude from the window, as at position B. In such a case, it is necessary to include in the image processing program a routine that detects whether some pixels within the block protrude from the window.
即ち、第8図のフローチャートに示すように、まず、ス
テップS1でブロック内の初期画素Pを設定する。そし
て、ステップS2でこの初期画素Pがウィンドウ内か否
かを判断し、ウィンドウ外の場合には、ステップS3で
初期画素Pの読み出しを“0”とし、ステップS4で演
算を行なう。That is, as shown in the flowchart of FIG. 8, first, in step S1, an initial pixel P within a block is set. Then, in step S2, it is determined whether or not this initial pixel P is within the window. If it is outside the window, the reading of the initial pixel P is set to "0" in step S3, and calculation is performed in step S4.
一方、初期画素Pがウィンドウ内の場合には、そのまま
ステップS4で演算を行なう。続いて、ステップS5で
ブロック内の画素の処理が全て終了したかどうかを判断
し、未処理の画素が存在する場合には、ステップS6で
初期画素Pをブロック内で移動をさせて、再度、ステッ
プS2からのルーチンの処理を行なう。そして、ブロッ
ク内の画素の全ての処理が終了するまで続行する。On the other hand, if the initial pixel P is within the window, the calculation is performed directly in step S4. Next, in step S5, it is determined whether all the pixels in the block have been processed, and if there are unprocessed pixels, the initial pixel P is moved within the block in step S6, and then the process is performed again. The routine processing from step S2 is performed. The process continues until all the pixels in the block have been processed.
また、ブロック内の一部の画素がウィンドウからはみ出
しているか否かを検知する他の手段としては、予めウィ
ンドの周辺領域をクリヤする必要がある。Further, as another means for detecting whether or not some pixels within a block protrude from the window, it is necessary to clear the peripheral area of the window in advance.
即ち、第9図のフローチャートに示すように、ステップ
311でウィンドウの上方に位置する画素をクリヤし、
ステップ312でウィンドウの下方に位置する画素をク
リヤし、更に、ステップS13でウィンドウの左方に位
置する画素をクリヤし、ステップ814でウィンドウの
右方に位置する画素をクリヤしてから、ステップ515
でブロック内の画素の演算処理を行なうものである。That is, as shown in the flowchart of FIG. 9, in step 311 pixels located above the window are cleared,
In step 312, pixels located below the window are cleared, further in step S13, pixels located to the left of the window are cleared, in step 814, pixels located to the right of the window are cleared, and then in step 515
This is used to perform arithmetic processing on pixels within a block.
[発明が解決しようとする問題点コ
上記のような従来のイメージメモリでは、全画像領域中
の一部分の指定領域であるウィンドウ内で、しかも、画
素をブロックとして扱う画像処理を行なう場合に、ウィ
ンドウから対象画素のブロックがはみ出すことに対する
対策として特別の処理を行なう必要があった。[Problems to be Solved by the Invention] In the conventional image memory as described above, when performing image processing that treats pixels as blocks within a window, which is a specified area of a part of the entire image area, It was necessary to perform special processing as a countermeasure against the block of target pixels protruding from the target pixel.
即ち、ブロック内の一部の画素がウィンドウからはみ出
していないかを検知するルーチンを、画像処理プログラ
ム中に含めたり、或いは、予めウィンドウの周辺領域を
クリヤする必要があった。That is, it is necessary to include a routine in the image processing program to detect whether some pixels within a block are outside the window, or to clear the area around the window in advance.
したがって、プログラム作成上極めて煩わしく、また、
処理ステップも増加するために、処理速度の低下の一因
にもなるという問題点があった。Therefore, it is extremely troublesome to create a program, and
Since the number of processing steps increases, there is a problem in that it also causes a reduction in processing speed.
そこで、この発明はかかる問題点を解決するためになさ
れたものであり、予め、ウィンドウを指定しておき、処
理対象画素がこのウィンドウ内に位置するか否かを、常
に判定をしながら、イメージメモリの入出力を自動的に
制御することができるイメージメモリを得ることを目的
とする。Therefore, the present invention was made to solve this problem.A window is specified in advance, and the image is processed while constantly determining whether or not the pixel to be processed is located within this window. The purpose of this invention is to obtain an image memory that can automatically control memory input and output.
[問題点を解決するための手段]
この発明にかかるイメージメモリは、二次元画像データ
を格納し処理するイメージメモリにおいて、処理対象画
素の横軸及び縦軸方向の座標を指定するアドレスを発生
する手段と、処理対象の画像領域の上限・下限を横軸及
び縦軸方向の座標として各々記録する手段と、前。記ア
ドレスと前記記録座標とを比較して判定する手段と、前
記判定結果からイメージメモリの入出力を制御する手段
とを具備するものである。[Means for Solving the Problems] An image memory according to the present invention generates an address that specifies the horizontal and vertical coordinates of a pixel to be processed in an image memory that stores and processes two-dimensional image data. means for recording upper and lower limits of the image area to be processed as coordinates in the horizontal axis and vertical axis directions, respectively; The apparatus includes means for comparing and determining the recorded address with the recorded coordinates, and means for controlling input/output of the image memory based on the determination result.
[作用]
この発明においては、ウィンドウの外周に相当する処理
対象の画像領域の上限・下限を、横軸及び縦軸方向の座
標として各、々記録手段に記録しておき、この座標とア
クセスしようとする処理対象画素の横軸及び縦軸方向の
座標を指定するアドレス発生部からのアドレスとを、比
較回路で比較し、対象画素がウィンドウ内部に位置する
か否かを判定することにより、イメージメモリの入出力
を予め自動的に制御することができる。[Operation] In this invention, the upper and lower limits of the image area to be processed, which correspond to the outer periphery of the window, are recorded in the recording means as coordinates in the horizontal axis and vertical axis directions, respectively, and these coordinates can be accessed. A comparator circuit compares the address from the address generator that specifies the horizontal and vertical coordinates of the pixel to be processed, and determines whether the pixel to be processed is located inside the window. Memory input/output can be automatically controlled in advance.
[実施例]
第1図はこの発明の一実施例であるイメージメモリの構
成を示すブロック図、第2図はこの発明の一実施例のア
ドレス信号による画素の割付は状態を示す図、第3図は
この発明の一実施例の画像領域内にウィンドウ領域を指
定した状態を示す図、第4図は指定したウィンドウ領域
外に対象画素が位置した場合を示す図である。なお、図
中、(1)から(6)は上記従来例の構成部分と同一ま
たは相当する構成部分である。[Embodiment] Fig. 1 is a block diagram showing the configuration of an image memory according to an embodiment of the present invention, Fig. 2 is a diagram showing the state of pixel allocation according to address signals in an embodiment of the invention, The figure shows a state in which a window area is designated within an image area according to an embodiment of the present invention, and FIG. 4 is a diagram showing a case where a target pixel is located outside the designated window area. In addition, in the figure, (1) to (6) are the same or corresponding components to the components of the above-mentioned conventional example.
第1図において、(7)は処理対象の画像領域であるウ
ィンドウの上限・下限を横軸及び縦軸方向のX−Y座標
として各々記録する記録回路であり、この記録回路(7
)はウィンドウ上限のY座標記録部(7a)及びX座標
記録部(7b)と、ウィンドウ下限のY座標記録部(7
C)及びX座標記録部(7d)とからなっている。(8
)はアドレス発生部(2)から発生される処理対象画素
の横軸及び縦軸方向のX−Y座標と記録回路(7)の処
理対象ウィンドウの上限・下限のX−Y座標とを各々比
較する比較回路であり、この比較回路(8)は対象画素
のY座標とウィンドウ上限のY座標との比較器(8a)
及び対象画素のX座標とウィンドウ上限のX座標との比
較器(8b)と、対象画素のY座標とウィンドウ下限の
Y座標との比較器(8G)及び対象画素のX座標とウィ
ンドウ下限のX座標との比較器(8d)とからなってい
る。(9)は比較回路(8)での比較結果を判定してイ
メージメモリ(3)の入出力を制御する制御回路であり
、判定器(9a)及びバッファ(9b)とからなってい
る。In FIG. 1, (7) is a recording circuit that records the upper and lower limits of the window, which is the image area to be processed, as X-Y coordinates in the horizontal and vertical axes.
) are the Y coordinate recording section (7a) and X coordinate recording section (7b) of the window upper limit, and the Y coordinate recording section (7b) of the window lower limit.
C) and an X coordinate recording section (7d). (8
) compares the X-Y coordinates in the horizontal and vertical directions of the pixel to be processed generated from the address generation unit (2) and the X-Y coordinates of the upper and lower limits of the window to be processed in the recording circuit (7), respectively. This comparison circuit (8) is a comparator (8a) between the Y coordinate of the target pixel and the Y coordinate of the upper limit of the window.
and a comparator (8b) between the X coordinate of the target pixel and the X coordinate of the window upper limit, a comparator (8G) between the Y coordinate of the target pixel and the Y coordinate of the window lower limit, and a comparator (8G) between the X coordinate of the target pixel and the X coordinate of the window lower limit. It consists of a comparator (8d) with the coordinates. (9) is a control circuit that determines the comparison result of the comparison circuit (8) and controls the input/output of the image memory (3), and is composed of a determiner (9a) and a buffer (9b).
上記のように構成された、この実施例のイメージメモリ
においては、画像上の画素の位置、即ち、そのX−Y座
標とイメージメモリ上のアドレスとの一対一の対応付け
は、基本的には従来と同様である。しかし、第2図に示
すように、X座標及びY座標ともにイメージメモリ全体
(以下「全体画像領域」という)をアクセスするのに必
要なビットの上位に、更に、もう1ビツトづつ附加した
もので、アドレス信号を構成している。これは、後述す
るウィンドウの大きさが全体画像領域と一致するような
場合に儀えたものであり、実際にイメージメモリ(3)
に入力されるアドレス信号は、上記のように構成したア
ドレスからX座標及びY座標の附加ビットを除去したも
のである。In the image memory of this embodiment configured as described above, the one-to-one correspondence between the position of a pixel on the image, that is, its X-Y coordinates, and the address on the image memory is basically Same as before. However, as shown in Figure 2, both the X and Y coordinates have one more bit added above the bits necessary to access the entire image memory (hereinafter referred to as the "entire image area"). , constitutes an address signal. This is done when the size of the window, which will be described later, matches the entire image area, and actually the image memory (3)
The address signal input to is obtained by removing the additional bits of the X and Y coordinates from the address configured as described above.
以下、この実施例のイメージメモリによる画像処理動作
について説明する。The image processing operation by the image memory of this embodiment will be explained below.
第3図でハツチングを施したウィンドウ領域を処理する
場合には、まず、ウィンドウの左上の画素P1 (×1
.yl)、右下の画素P2(x2゜’i/2 >でウィ
ンドウを指定する。CPU (5)はアドレスバス(1
)に附加ビットを“0゛′にした画素Pi (Xl、
yl >のアドレス信号をのせて、その上位(Y座標
)、下位(X座標)を各々ウィンドウ上限のY座標記録
部(7a)及びウィンドウ上限のX座標記録部(7b)
にラッチをする。When processing the hatched window area in Fig. 3, first pixel P1 (×1
.. yl), the lower right pixel P2 (x2゜'i/2 > specifies the window. The CPU (5) uses the address bus (1
) with the additional bit set to “0゛′” Pixel Pi (Xl,
yl > address signal, and the upper (Y coordinate) and lower (X coordinate) thereof are respectively stored in the Y coordinate recording section (7a) of the window upper limit and the X coordinate recording section (7b) of the window upper limit.
latch on.
次に、同様にして画素P2 (X2 、 V2 )を
各々ウィンドウ下限のY座標記録部(7C)及びウィン
ドウ下限のX座標記録部(7d)にラッチする。Next, similarly, the pixel P2 (X2, V2) is latched to the Y coordinate recording section (7C) at the lower limit of the window and the X coordinate recording section (7d) at the lower limit of the window, respectively.
これら4つのラッチされた座標、yl、×1、y2 、
x2は夫々比較回路(8)の対象画素とウィンドウ上限
との比較器(8a)、(8b)、対象画素とウィンドウ
下限との比較器(8G)、(8d)の一方の入力となる
。These four latched coordinates, yl, ×1, y2,
x2 becomes an input to one of the comparators (8a) and (8b) between the target pixel and the window upper limit, and the comparators (8G) and (8d) between the target pixel and the window lower limit, respectively, of the comparison circuit (8).
以上の動作によって、ウィンドウを定義した後のイメー
ジメモリ(3)のアクセスでは、CPtJ(5)は任意
の画素P(X、/)のアドレス信号をアドレスバス(1
)にのせて、アドレス発生部(2)へ入力をし、アドレ
ス発生部(2)でこのアドレスを必要に応じてラッチし
たり、或いは修飾した後、附加ビットを除去してイメー
ジメモリ(3)にアドレスとして出力する。With the above operations, when accessing the image memory (3) after defining the window, CPtJ (5) transfers the address signal of any pixel P (X, /) to the address bus (1
), the address is input to the address generator (2), the address is latched or modified as necessary by the address generator (2), the additional bits are removed, and the address is input to the image memory (3). output as an address.
この際に、アドレス信号は同時に、附加ビット付きで上
位(Y座標)、下位(X座標)に各々分割され、Y座標
は対象画素とウィンドウ上限との比較器(8a)、(8
b)に、X座標は対象画素とウィンドウ下限との比較器
(8c)、(8d>に各々入力される。比較回路(8)
ではこれらの入力と、前記記録回路(7)からの入力を
各々比較して、
yl>’/、Xi >X、V2 <7%X2 <Xのと
きには、その出力を1′′とし、伯の場合には°“Op
tを出力する。制御回路(9)の判定器(9a)は、こ
れら4つの比較回路(8a)。At this time, the address signal is simultaneously divided into upper (Y coordinate) and lower (X coordinate) with additional bits, and the Y coordinate is determined by the comparators (8a) and (8) between the target pixel and the window upper limit.
In b), the X coordinate is input to the comparator (8c) and (8d>) between the target pixel and the lower limit of the window, respectively. Comparison circuit (8)
Now, compare these inputs with the input from the recording circuit (7), and when yl>'/, Xi >X, V2 <7% In case °“Op
Output t. The determiner (9a) of the control circuit (9) is composed of these four comparison circuits (8a).
(8b)、(8c)、(8d>の出力の論理和をとり、
その結果をイメージメモリ(3)のチップセレクト入力
、及びバッファ(9b)のイネーブル信号とする。ここ
で、論理和が“0゛′となる場合は4つの比較回路(8
a>、(8b)、(8c)、(8d>の出力が全て“0
゛′、即ち、×1≦X≦×2、y1≦y≦y2
が同時に成立する場合に限定されている。Take the logical sum of the outputs of (8b), (8c), and (8d>,
The result is used as a chip select input of the image memory (3) and an enable signal of the buffer (9b). Here, if the logical sum is "0", four comparison circuits (8
The outputs of a>, (8b), (8c), and (8d> are all “0”
This is limited to the case where x1≦X≦×2 and y1≦y≦y2 hold simultaneously.
これは、アクセスした画素がウィンドウ領域内に位置し
ていることを意味している。This means that the accessed pixel is located within the window area.
したがって、このときには、イメージメモリ(3)はチ
ップセレクトされ(C3=“O″)、メモリの書き込み
及び読み出しが可能である。Therefore, at this time, the image memory (3) is chip-selected (C3="O"), and writing and reading from the memory is possible.
一方、論理和が“1′′となる場合は、X<Xl 、X
2 <X、y<yl、V2 <Vのうち、少なくとも1
つが成立した場合である。On the other hand, if the logical sum is “1'', then X<Xl,
2 <X, y<yl, V2 <V, at least 1
This is the case when the following is true.
これは、アクセスした画素がウィンドウ領域の外部に位
置していることを意味している。This means that the accessed pixel is located outside the window area.
したがって、このときには、イメージメモリ(3)はチ
ップセレクトされず(C3=“1″)、バッフ? (9
t))がイネーブルされて、値“Onがデータバス(4
)にのる。即ち、イメージメモリの書き込みは不能とな
り、読み出しはOreとなる。Therefore, at this time, the image memory (3) is not chip-selected (C3="1") and the buffer? (9
t)) is enabled and the value “On” is the data bus (4
). That is, writing to the image memory becomes impossible, and reading becomes Ore.
以上が、この実施例によるイメージメモリアクセス時の
動作である。The above is the operation when accessing the image memory according to this embodiment.
ここで、更に、第2図に示すように、X座標及びY座標
ともに全体画像領域をアクセスするのに必要なビットの
上位に、1ビツトづつ附加をして、アドレス信号を構成
した点について説明する。Here, we will further explain that the address signal is constructed by adding one bit at a time to the upper bits necessary to access the entire image area for both the X and Y coordinates, as shown in Figure 2. do.
実際上、アクセスする画素がウィンドウ外部となる場合
は、ウィンドウ内部の境界付近に対象画素があり、そこ
から相対的に画素を移動した場合に起り得る。In fact, when the pixel to be accessed is outside the window, this can occur if the target pixel is near the border inside the window and the pixel is moved relatively from there.
第4図は指定したウィンドウ領域の上辺にある対象画素
AOを中心にI”3X3Jlのブロックを構成した場合
に、ブロックの一部がウィンドウ上部外にはみ出した例
でおる。FIG. 4 shows an example in which a part of the block protrudes outside the top of the window when a block of I''3×3Jl is constructed around the target pixel AO on the upper side of the designated window area.
この例の場合のように、ウィンドウの大きさは全体画像
領域と一致している場合(この場合はY方向)には、Y
アドレスに附加ビットがないと、ウィンドウからはみ出
した画素A1は、実際上はA2に位置付けられ、ウィン
ドウ内部の画素と判定され、画素A2がサクセスされて
しまう。ところが、Xアドレス、Yアドレスに附加ビッ
トを設けておけば、第4図に示すような実メモリ空間の
4倍の仮想メモリ空間をアクセスすることになるので、
上記の例でウィンドウ上部にはみ出した画素A1は、仮
想メモリ空間内の最下端A3に位置付けられて、正しく
ウィンドウ外部の画素として判定される。If the window size matches the entire image area (in the Y direction in this case), as in this example, the Y
If there is no additional bit in the address, the pixel A1 that protrudes from the window will actually be positioned at A2, and will be determined to be a pixel inside the window, resulting in pixel A2 being accessed. However, if additional bits are provided for the X and Y addresses, a virtual memory space four times larger than the real memory space will be accessed, as shown in Figure 4.
In the above example, the pixel A1 that protrudes above the window is positioned at the bottom edge A3 in the virtual memory space, and is correctly determined as a pixel outside the window.
なお、上記の例はウィンドウ上辺に関するものでめった
が、その他の辺に対しても同様であり、Xアドレス、Y
アドレスに附加ビットを設けて仮想メモリ空間を構成す
ることにより、ウィンドウ外部の画素が、実質的にウィ
ンドウ内部に位置付けられることを回避することができ
る。The above example rarely concerns the top edge of the window, but the same applies to other edges, such as the X address, Y address, etc.
By configuring the virtual memory space by providing additional bits in the address, pixels outside the window can be prevented from being located substantially inside the window.
以上の動作により、本実施例においては、全体画像領域
内のウィンドウの設定の仕方に拘ることなく、ウィンド
ウ内部の画素についてはメモリアクセスが可能であり、
ウィンドウ外部の画素については自動的に書き込みがで
きず、読み出しも“0″となる。このように、判定結果
からイメージメモリ(3)の入出力を制御する手段は、
使途に応じてイメージメモリ(3)の入出力を規制する
等の制御を行うことができる。Through the above operations, in this embodiment, memory access is possible for pixels inside the window, regardless of how the window is set within the entire image area.
Pixels outside the window cannot be automatically written to and read as "0". In this way, the means for controlling the input/output of the image memory (3) based on the determination result is as follows:
Control such as regulating the input/output of the image memory (3) can be performed depending on the usage.
[発明の効果]
以上説明したとおり、この発明のイメージメモリは、処
理対象画素の横軸及び縦軸方向の座標を指定するアドレ
ス指定手段と、処理対象の画像領域の上限・下限を横軸
及び縦軸方向の座標として各々記録する手段と、前記ア
ドレスと前記記録座標とを比較し判定する手段と、前記
判定結果からイメージメモリの入出力を制御する手段と
を有するものであるから、ウィンドウの外周に相当する
処理対象の全体画像領域と、アクセスしようとする処理
対象画素のアドレスとを比較し、対象画素がウィンドウ
内部に位置するか否かを判定することにより、イメージ
メモリの入出力を予め自動的に制御することができるの
で、画像処理プログラムにおいてウィンドウを扱う場合
に、このプログラム中で煩しい特別な前処理を行なう必
要もなく、そのための処理ステップも省くことができる
ので、画像処理速度の向上を図ることができる。[Effects of the Invention] As explained above, the image memory of the present invention includes an addressing means for specifying the horizontal and vertical coordinates of the pixel to be processed, and a means for specifying the upper and lower limits of the image area to be processed on the horizontal and vertical axes. Since it has means for recording each coordinate in the vertical axis direction, means for comparing and determining the address and the recorded coordinate, and means for controlling the input/output of the image memory based on the determination result, the window By comparing the entire image area to be processed corresponding to the outer periphery with the address of the pixel to be processed to be accessed and determining whether the target pixel is located inside the window, input/output of the image memory can be performed in advance. Since it can be controlled automatically, when handling windows in an image processing program, there is no need to perform complicated special preprocessing in the program, and the processing steps for that can be omitted, so the image processing speed can be increased. It is possible to improve the
第1図はこの発明の一実施例であるイメージメモリの構
成を示すブロック図、第2図はこの発明の一実施例のア
ドレス信号による画素の割付は状態を示す図、第3図は
この発明の一実施例の画像領域内にウィンドウ領域を指
定した状態を示す図、第4図は指定したウィンドウ領域
外に対象画素が位置した場合を示す図、第5図は従来の
イメージメモリの構成を示すブロック図、第6図は従来
のアドレス信号による画素の割付は状態を示す図、第7
図は画像領域内のウィンドウ領域と対象画素との関係を
示す図、第8図は従来のイメージメモリによる対象画素
とウィンドウとの位置関係を判断し処理する工程を示す
フローチャート、第9図は従来の画像@算処理の前工程
を示すフローチA・−トである。
図において、
1ニアドレスバス、 2ニアドレス発生部、3:イ
メージメモリ、 5:制御部(CPU)、6:メモリ
、 7:記録回路、8:比較回路、
9:制a回路、9a:判定器、 9b:バッフ
1、である。
なお、図中、同−符号及び同一記号は、同一または相当
部分を示す。FIG. 1 is a block diagram showing the configuration of an image memory according to an embodiment of the present invention, FIG. 2 is a diagram showing the state of pixel allocation according to an address signal according to an embodiment of the present invention, and FIG. 3 is a diagram showing the state of pixel allocation according to an embodiment of the present invention. A diagram showing a state in which a window area is specified within an image area in one embodiment, FIG. 4 is a diagram showing a case where a target pixel is located outside the specified window area, and FIG. 5 is a diagram showing the configuration of a conventional image memory. Fig. 6 is a block diagram showing the state of pixel allocation using conventional address signals;
The figure shows the relationship between the window area in the image area and the target pixel, Figure 8 is a flowchart showing the process of determining and processing the positional relationship between the target pixel and the window using a conventional image memory, and Figure 9 is the conventional image memory. This is a flowchart A showing the pre-processing of the image @ calculation process. In the figure, 1 near address bus, 2 near address generation section, 3: image memory, 5: control section (CPU), 6: memory, 7: recording circuit, 8: comparison circuit,
9: Control a circuit, 9a: Determiner, 9b: Buffer 1. In addition, in the figures, the same reference numerals and the same symbols indicate the same or equivalent parts.
Claims (1)
レス指定手段と、 処理対象の画像領域の上限・下限を横軸及び縦軸方向の
座標として各々記録する手段と、 前記アドレスと前記記録座標とを比較し判定する手段と
、 前記判定結果からイメージメモリの入出力を制御する手
段と を具備することを特徴とするイメージメモリ。[Scope of Claims] An image memory for storing and processing image data, comprising: addressing means for specifying the coordinates of a pixel to be processed along the horizontal and vertical axes; An image characterized by comprising means for recording each as a coordinate in the vertical axis direction, means for comparing and determining the address and the recorded coordinate, and means for controlling input/output of the image memory based on the determination result. memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29361786A JPS63146169A (en) | 1986-12-10 | 1986-12-10 | Image memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29361786A JPS63146169A (en) | 1986-12-10 | 1986-12-10 | Image memory |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63146169A true JPS63146169A (en) | 1988-06-18 |
Family
ID=17797030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP29361786A Pending JPS63146169A (en) | 1986-12-10 | 1986-12-10 | Image memory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63146169A (en) |
-
1986
- 1986-12-10 JP JP29361786A patent/JPS63146169A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4706205A (en) | Image processing apparatus with reduced handling and storage | |
US4495575A (en) | Information processing apparatus for virtual storage control system | |
JPH0343646B2 (en) | ||
US4812836A (en) | Picture processing apparatus | |
US4811411A (en) | Image processing method and system | |
JPH05266177A (en) | Plotting device | |
US4672538A (en) | Method of dynamically changing formation of addresses in memory of a data processing system | |
JPS63146169A (en) | Image memory | |
JP2568017B2 (en) | Microprocessor and data processing system using the same | |
JPS60262253A (en) | Memory data processing circuit | |
JPH05189563A (en) | Image processor | |
JPS6382530A (en) | Semiconductor storage device | |
JPS638951A (en) | Information memory device | |
JPS62131352A (en) | Address conversion control method | |
JPS59128663A (en) | Address scanner for editing of binary picture | |
JPS61285557A (en) | Memory protection system | |
JPS60241135A (en) | Address producing system | |
JPH07320045A (en) | Image processor | |
JPS5840212B2 (en) | Scan processing method | |
JPS623382A (en) | Picture processor | |
JPS58161192A (en) | Storage device | |
JPS6257045A (en) | Memory protection system | |
JP2009086761A (en) | Data processor and data processing program | |
JPS5919287A (en) | Input and output processing system by memory access instruction | |
JPH03226891A (en) | Binary picture processing device |