JPS62188467A - Picture segmenting device - Google Patents

Picture segmenting device

Info

Publication number
JPS62188467A
JPS62188467A JP61029410A JP2941086A JPS62188467A JP S62188467 A JPS62188467 A JP S62188467A JP 61029410 A JP61029410 A JP 61029410A JP 2941086 A JP2941086 A JP 2941086A JP S62188467 A JPS62188467 A JP S62188467A
Authority
JP
Japan
Prior art keywords
image data
code
image
output
run 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
JP61029410A
Other languages
Japanese (ja)
Inventor
Takashi Fujinaga
隆史 藤永
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61029410A priority Critical patent/JPS62188467A/en
Publication of JPS62188467A publication Critical patent/JPS62188467A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To attain efficient picture segmentation without executing picture data extending processing by forming a control part for controlling the output of picture data inputted on the basis of a control signal obtained from a comparing part and outputting only picture data in an optional area. CONSTITUTION:Inputted compression picture data are converted from the code of compressed picture data into numeral data indicating physical run length by a run length conversion part 7. The converted numeral data are integrated by an integration circuit 8 and the integrated result is compared with a set value stored in a setting part 11 by a vertical comparator 13. When the run length is decided as the one included within a segmented area range by the comparator 13, the output is signified by an output control circuit 16. When the run length indicated by the code is extended over the segmented area, the code of the length obtained by deleting the part other than the area on the basis of an encoding table 14 is used and outputted by an output selecting circuit 15. Consequently, efficient picture segmentation can be attained without requiring a memory of large capacity required for the extending or compressing processing of picture data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は圧縮された画像データを効率的に切出すこと
のできる画像切出し装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image cutting device that can efficiently cut out compressed image data.

〔従来の技術〕[Conventional technology]

計算機による画像処理において、画像データの伝送或は
蓄積を行なう場合、一般に画像データはデータ量が膨大
であることからデータの冗長性を削減する圧縮処理を行
いデータ伝送又は蓄積の効率をあげる手法がよく用いら
れる。この場合画像処理を行なうのに画像全体は必要で
なく一部分のみで良い場合はその部分だけ切り出して伝
送或は蓄積を行なえば効率がよい。その場合、圧縮され
た画像に対して切り出し処理が必要となる。
When transmitting or storing image data in image processing by a computer, the amount of image data is generally enormous, so there is a method to increase the efficiency of data transmission or storage by performing compression processing to reduce data redundancy. Often used. In this case, if the entire image is not required for image processing and only a portion is required, it is efficient to cut out only that portion and transmit or store it. In that case, a cutout process is required for the compressed image.

第4図にこの種の従来の画像切出し装置の構成例を示す
FIG. 4 shows an example of the configuration of this type of conventional image cutting device.

第4図において1は計算機から送られて(る画像データ
を入力する画像入力部、2は画像入力部1から入力され
た画像データを伸長する伸長処理部、3は画像データの
切り出しを行なった後切り出した画像データを圧縮する
圧縮処理部、5は入力された画像データから画像データ
の切り出しを行なう際、画像データを記憶する画像メモ
リ、4は圧縮処理した切り出し画像データを出力する画
像出力部、6は画像データの切り出しを行なう画像切出
し処理部である。
In Fig. 4, 1 is an image input section that inputs image data sent from the computer, 2 is an expansion processing section that expands the image data input from the image input section 1, and 3 is a section that cuts out the image data. 5 is an image memory that stores image data when cutting out image data from input image data; 4 is an image output unit that outputs the compressed cut-out image data; , 6 is an image cutout processing section that cuts out image data.

次に動作について説明する。画像入力部1から入力され
た画像データは一度画像メモリ5に蓄積される。
Next, the operation will be explained. Image data input from the image input section 1 is once stored in the image memory 5.

この画像メモリ5に蓄積された画像データは伸長処理部
2によって読み出され、伸長された後再度画像メモリ5
に蓄積される。伸長された画像データは切り出し処理部
によって読み出され、切り出し処理が行なわれた後再び
画像メモリ5に蓄積される。切り出された画像データは
圧縮処理部6によって読み出され、圧縮された後再び画
像メモU 5に蓄積される。そして最終的に画像データ
出力部4はこの圧縮された切り出し画像データを外部に
出力する。
The image data stored in the image memory 5 is read out by the decompression processing section 2, and after being decompressed, the image data is stored in the image memory 5 again.
is accumulated in The decompressed image data is read out by the cutout processing section, and after the cutout processing is performed, it is stored in the image memory 5 again. The cut out image data is read out by the compression processing section 6, compressed, and then stored in the image memo U5 again. Finally, the image data output unit 4 outputs this compressed cut-out image data to the outside.

〔発明が解決しようとする問題点〕 従来の画像切出し装置は以上のように構成されているの
で、切り出しにあたり画像全体を一度伸長したあと切り
出しを行ない、再度圧縮するという処理が必要であり、
大容量のメモリが必要で又処理に時間がかかり効率が悪
い等の問題点があった。
[Problems to be Solved by the Invention] Since the conventional image cropping device is configured as described above, it is necessary to expand the entire image once, then crop it, and then compress it again.
There are problems such as a large capacity memory is required, and processing takes time and is inefficient.

この発明は上記のような問題点を解決するためになされ
たもので、画像データの伸長処理を行なわずに効率的に
画像の切り出し処理のできる画像切出し装置を得ること
を目的とする。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide an image cutting device that can efficiently cut out images without decompressing image data.

〔問題点を解決するための手段〕[Means for solving problems]

このためこの発明にかかる画像切出し装置は、任意の領
域の切り出しサイズを設定する設定部と、画像データの
符号を逐時原画像のランレングス長に変換して原画像上
の位置を検出する検出部と、上記設定部からの設定信号
と上記検出部からの検出信号を比較する比較部と、上記
比較部からの制御信号に基づいて入力された画像データ
の出力を制御して上記任意の領域の画像データのみ出力
する制御部とを備えたことを特徴とするものである。
For this reason, the image cropping device according to the present invention includes a setting section that sets the cropping size of an arbitrary region, and a detection section that sequentially converts the code of image data into a run length length of the original image and detects the position on the original image. a comparison section that compares the setting signal from the setting section and the detection signal from the detection section; and a comparison section that controls the output of the input image data based on the control signal from the comparison section to control the output of the input image data to the arbitrary area. The present invention is characterized by comprising a control section that outputs only the image data of.

〔作用〕[Effect]

この発明にかかる検出部は画像データの符号を逐時原画
像のランレングス長に変換して原画像上の位置を検出す
る。
The detection unit according to the present invention detects a position on the original image by converting the code of the image data into a run length of the original image.

そして比較部は上記検出部からの検出信号と任意の領域
の切り出しサイズを設定する設定部からの設定信号に基
づいて入力された画像データの出力を制御する制御信号
を制御部に出力する。ここに制御部は上記制御信号にも
とづいて入力された画像データのうち任意の領域の画像
データのみ出力する。
Then, the comparison section outputs a control signal for controlling output of the input image data to the control section based on the detection signal from the detection section and the setting signal from the setting section for setting the cropping size of an arbitrary area. Here, the control section outputs only image data of an arbitrary area among the input image data based on the control signal.

〔実施例〕〔Example〕

以下図面にもとづいて本発明の一実施例を説明する。 An embodiment of the present invention will be described below based on the drawings.

第1図は本発明の一実施例を示す画像切出し装置の構成
図で、図において1は計算機から送られてくる画像デー
タを入力する画像入力部、7は圧縮された画像データの
符号を原画像データのランレングス長に変換する圧縮符
号ランレングス変換部、8は圧縮符号ランレングス変換
部7によって変換されたランレングス長を積算するラン
レングス積算部、9はラインの終端符号を検出するライ
ン終端符号検出回路、10はライン終端符号検出回路9
によって検出されたラインの終端符号にもとづいて水平
のライン数をカウントするラインカウンタ、11は任意
の領域の切り出しサイズを設定する設定部、12は設定
部11に設定された切り出しサイズの水平方向の画像サ
イズと上記ランレングス積算部8から出力される積算結
果とを比較する水平比較回路、13は切り出しサイズレ
ジスタに設定された切り出しサイズの垂直方向の画像サ
イズとラインカウンタ10によってカウントされたライ
ン数とを比較する垂直比較回路、14は圧縮された画像
データの符号に一意的に対応する原画像データのランレ
ングス長が切り出し領域にまたがる場合、切り出し領域
の境界にまたがる符号を切り出し領域のサイズに合わせ
て変換する符号テーブル、15は符号テーブル14また
は水平比較回路13からの出力を選択する出力選択回路
、16は水平比較回路12及び垂直比較回路13からの
出力にもとづいて入力部1から入力される圧縮された画
像データの出力を制御する出力制御回路である。
FIG. 1 is a block diagram of an image cutting device showing an embodiment of the present invention. In the figure, 1 is an image input unit that inputs image data sent from a computer, and 7 is an image input unit that inputs the code of the compressed image data. A compression code run length conversion unit converts the image data into a run length length; 8 is a run length integration unit that integrates the run length converted by the compression code run length conversion unit 7; 9 is a line that detects the end code of the line; Termination code detection circuit 10 is line termination code detection circuit 9
A line counter 11 counts the number of horizontal lines based on the terminal code of the line detected by , a setting section 11 sets the cropping size of an arbitrary area, and 12 a horizontal line counter for the cropping size set in the setting section 11 . A horizontal comparison circuit 13 compares the image size with the integration result output from the run-length integration unit 8, and 13 indicates the vertical image size of the cutout size set in the cutout size register and the number of lines counted by the line counter 10. If the run length length of the original image data that uniquely corresponds to the code of the compressed image data spans the cutout area, the vertical comparison circuit 14 calculates the code that spans the boundary of the cutout area to the size of the cutout area. A code table to be converted together; 15 is an output selection circuit for selecting the code table 14 or the output from the horizontal comparison circuit 13; 16 is a code input from the input section 1 based on the outputs from the horizontal comparison circuit 12 and the vertical comparison circuit 13; This is an output control circuit that controls the output of compressed image data.

ここにおいて圧縮符号ランレングス変換部7、ランレン
グス積算部8、ライン終端符号検出回路9、ラインカウ
ンタ10は全体で原画像上の位置を検出する検出部IA
を、水平比較回路12、垂直比較回路13は全体で比較
部IBを、出力選択回路15、出力制御回路16は全体
で制御部ICをそれぞれ構成している。
Here, the compression code run-length conversion unit 7, run-length integration unit 8, line end code detection circuit 9, and line counter 10 collectively constitute a detection unit IA that detects the position on the original image.
The horizontal comparison circuit 12 and the vertical comparison circuit 13 collectively constitute a comparison section IB, and the output selection circuit 15 and output control circuit 16 collectively constitute a control section IC.

次に動作について説明する。画像入力部1より入力され
た圧縮画像データはライン終端符号検出回路9によりラ
イン単位の符号化列として検出される。ラインカウンタ
10は検出したライン数をカウントするこのカウント値
は設定部11の設定値と水平比較回路12を用いて比較
され、画像の設定範囲内かどうかを検出して制御信号を
出力する。その検出結果により出力制御回路16は、画
像データの出力を制御する。又、入力された圧縮画像デ
ータはランレングス変換部7により圧縮された画像デー
タの符号を物理的なランレングス長をあられす数値デー
タに変換される。変換された数値データは積算回路8に
よって積算される。積算された結果は、垂直比較回路1
3によって設定部11の設定値と比較される。垂直比較
回路13により、切り出し領域範囲内と判定された場合
、出力制御回路16により出力が有意となる。尚、その
場合符号の表わすランレングス長が切り出し領域にまた
がる場合は、符号化テーブル14によって領域外の部分
を削除した長さの符号を出力選択回路15を用いて出力
する。以上の処理によって切り出された圧縮画像データ
は、画像出力部4によって外部に出力される。尚、第2
図は画像の切り出しの内容を示したものである。例えば
入力画像のうち、点線で示した矩形エリアを切り出すと
すれば切り出しサイズレジスタにはxs +  xt 
+Ys 、YEの値が設定される。また第3図には入力
された圧縮画像データと切り出し後の画像データの例を
示す。01〜CNは符号列、EOLは一ラインの終端符
号でありC+ 、Czで表される符号及びCN−1、C
Mで表される符号は切り出し領域外である。C3及びC
M−3は切り出し領域の境界にまたがる為、境界線にあ
うようそれぞれC1”及びCN−3゛の符号に変換され
る。切り出された一ラインの圧縮画像データの最後にラ
イン終端信号(EOL)が付加される。
Next, the operation will be explained. The compressed image data inputted from the image input section 1 is detected by the line end code detection circuit 9 as a coded string for each line. The line counter 10 counts the number of detected lines. This count value is compared with the setting value of the setting section 11 using the horizontal comparison circuit 12, detects whether it is within the setting range of the image, and outputs a control signal. Based on the detection result, the output control circuit 16 controls the output of image data. Further, the input compressed image data is converted by the run-length converting section 7 into numerical data that converts the code of the compressed image data into the physical run-length length. The converted numerical data is integrated by an integration circuit 8. The integrated result is sent to vertical comparator circuit 1.
3 is compared with the setting value of the setting section 11. If the vertical comparison circuit 13 determines that it is within the cutout region range, the output control circuit 16 makes the output significant. In this case, if the run length represented by the code extends over the cutout area, the output selection circuit 15 outputs a code having a length in which the portion outside the area is deleted using the encoding table 14. The compressed image data cut out through the above processing is outputted to the outside by the image output section 4. Furthermore, the second
The figure shows the contents of the image cutout. For example, if you want to cut out a rectangular area indicated by a dotted line from an input image, the cutout size register will contain xs + xt.
+Ys and YE values are set. Further, FIG. 3 shows an example of input compressed image data and image data after cutting out. 01 to CN are code strings, EOL is the terminal code of one line, and the codes represented by C+, Cz, and CN-1, C
The code represented by M is outside the extraction area. C3 and C
Since M-3 straddles the border of the cutout area, it is converted into codes of C1" and CN-3" to match the borderline.At the end of one line of cutout compressed image data, a line end signal (EOL) is sent. is added.

なお、本装置で対象とする圧縮データは、MH符号化の
他、原画像におけるラン長と、圧縮後の符号が一意的に
対応するものであれば他の符号化方式においても同様の
処理が可能である。又、本装置の機能はソフトウェアの
プログラムによっても容易に実現することができる。
In addition to MH encoding, the compressed data targeted by this device can be similarly processed using other encoding methods as long as the run length in the original image and the code after compression uniquely correspond. It is possible. Further, the functions of this device can be easily realized by a software program.

〔発明の効果〕〔Effect of the invention〕

以上述べたようにこの発明は、任意の領域の切り出しサ
イズを設定する設定部と、画像データの符号を逐時原画
像のランレングス長に変換して原画像上の位置を検出す
る検出部と、上記設定部からの設定信号と上記検出部か
らの検出信号を比較する比較部と、上記比較部からの制
御信号に基づいて入力された画像データの出力を制御し
て上記任意の領域の画像データのみ出力する制御部とを
備えたので、圧縮された画像データをそのまま切り出す
ことができ、画像データの伸長や圧縮処理に必要な大容
量のメモリを必要とせず効率的な切り出しを行なうこと
ができる。
As described above, the present invention includes a setting section that sets the cropping size of an arbitrary region, and a detection section that detects a position on the original image by sequentially converting the code of image data into the run length length of the original image. , a comparison section that compares the setting signal from the setting section and the detection signal from the detection section; and a comparison section that controls the output of the input image data based on the control signal from the comparison section to generate an image of the arbitrary area. Since it is equipped with a control unit that outputs only the data, compressed image data can be extracted as is, and efficient extraction can be performed without the need for large-capacity memory required for image data expansion and compression processing. can.

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

第1図は本発明の一実施例を示す構成図、第2図は本発
明における画像切出しの機能の説明図、第3図はランレ
ングス長と符号との対応関係を示す図、第4図は従来の
画像切出し装置の構成図である。 ■・・・画像入力部、IA・・・検出部、IB・・・比
較部、IC・・・制御部、11・・・設定部、14・・
・符号テーブル、4・・・出力部。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram of the image cutting function of the present invention, FIG. 3 is a diagram showing the correspondence between run length length and code, and FIG. 4 1 is a configuration diagram of a conventional image cutting device. ■...Image input section, IA...detection section, IB...comparison section, IC...control section, 11...setting section, 14...
- Code table, 4...output section.

Claims (1)

【特許請求の範囲】 原画像におけるランレングス長と圧縮後の画像データの
符号とが一意的に対応するように圧縮された画像データ
を入力し、この圧縮された画像データのうち任意の領域
のみ切り出して外部に出力する画像切出し装置において
、 上記任意の領域の切り出しサイズを設定する設定部と、
上記画像データの符号を逐時原画像のランレングス長に
変換して原画像上の位置を検出する検出部と、上記設定
部からの設定信号と上記検出部からの検出信号を比較す
る比較部と、上記比較部からの制御信号に基づいて入力
された画像データの出力を制御して上記任意の領域の画
像データのみ出力する制御部とを備えたことを特徴とす
る画像切出し装置。
[Claims] Image data compressed such that the run length length in the original image and the code of the compressed image data uniquely correspond is input, and only an arbitrary region of this compressed image data is input. An image cropping device that crops and outputs the image to the outside, a setting section that sets the cropping size of the above arbitrary area;
A detection unit that detects the position on the original image by converting the code of the image data one by one into the run length length of the original image, and a comparison unit that compares the setting signal from the setting unit and the detection signal from the detection unit. and a control section that controls the output of the input image data based on the control signal from the comparison section and outputs only the image data of the arbitrary region.
JP61029410A 1986-02-13 1986-02-13 Picture segmenting device Pending JPS62188467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61029410A JPS62188467A (en) 1986-02-13 1986-02-13 Picture segmenting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61029410A JPS62188467A (en) 1986-02-13 1986-02-13 Picture segmenting device

Publications (1)

Publication Number Publication Date
JPS62188467A true JPS62188467A (en) 1987-08-18

Family

ID=12275356

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61029410A Pending JPS62188467A (en) 1986-02-13 1986-02-13 Picture segmenting device

Country Status (1)

Country Link
JP (1) JPS62188467A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5283840A (en) * 1991-04-26 1994-02-01 Dainippon Screen Mfg. Co., Ltd. Method and apparatus for extracting image data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5283840A (en) * 1991-04-26 1994-02-01 Dainippon Screen Mfg. Co., Ltd. Method and apparatus for extracting image data

Similar Documents

Publication Publication Date Title
US5289577A (en) Process-pipeline architecture for image/video processing
JPH0662262A (en) Method and apparatus for control of block for digital image codec (compression and expansion) processor
JPH0721391A (en) Method for encoding of position of change at inside of sequence of video image
JPS62188467A (en) Picture segmenting device
JP2610317B2 (en) Image scanner device
JPH0628150A (en) Method for compressing program capacity
JPH10341345A (en) Image data processing system
JP2002330293A (en) Image processor and image processing method
JPS628658A (en) Area designating data compressing and extending method and its device
JP2818323B2 (en) Binary image data extraction method
JPH0644212Y2 (en) Data compression device
JPH05265416A (en) Image information transmission system
JP2503225B2 (en) Data compression method
JP2689020B2 (en) Code decompression method and drawing device
JP3190855B2 (en) Decompression method of compressed data
JPS6212280A (en) Combination system for image data
JPH0357018A (en) Shift code compressing system
JPH05244015A (en) Data compression system
CN117333559A (en) Image compression method, device, electronic equipment and storage medium
JPS62198973A (en) Image data converting device
JPS62101176A (en) Picture processing method
JPH0358572A (en) Data compressing system
JPS63157564A (en) Coding and decoding device in hierarchical picture
JPH04172062A (en) Lsi device for picture data compression/extension
JPH04864A (en) Picture transmitter