JPH04304566A - Method and device for processing picture - Google Patents

Method and device for processing picture

Info

Publication number
JPH04304566A
JPH04304566A JP6966791A JP6966791A JPH04304566A JP H04304566 A JPH04304566 A JP H04304566A JP 6966791 A JP6966791 A JP 6966791A JP 6966791 A JP6966791 A JP 6966791A JP H04304566 A JPH04304566 A JP H04304566A
Authority
JP
Japan
Prior art keywords
image
processing
picture
storage area
storage device
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
JP6966791A
Other languages
Japanese (ja)
Inventor
Hiroshi Okazaki
洋 岡崎
Tomoaki Kawai
智明 河合
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP6966791A priority Critical patent/JPH04304566A/en
Publication of JPH04304566A publication Critical patent/JPH04304566A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To offer a method and device for processing a picture which unnecissitates the development of a library such as the input/output of a picture file, etc., by respective application developers, unpermits an extension function such as correspondence to a new file format, etc., to be executed by a programing language describing application and uses a system without executing the re-compile and link, etc., of the program. CONSTITUTION:The control process 201 of a picture storage area, which is independent of processing process 203 which actualy executes a picture processing is provided with the function which executes the input/output operation of the picture file as against an external storing device by this invension. Thus, respective picture processing process 202 and 203 only indicate the reading and writing of desired picture data.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は画像処理方法及びその装
置、例えば画像処理プロセスと、当該画像処理プロセス
との間で画像データの授受を行うと共にその画像データ
の画像記憶領域への保持・管理を行う管理プロセスを独
立して有する装置とその方法に関するものである。
[Industrial Application Field] The present invention relates to an image processing method and an apparatus thereof, such as an image processing process and a device for transmitting and receiving image data, and retaining and managing the image data in an image storage area. The present invention relates to an apparatus and method having an independent management process for performing the same.

【0002】0002

【従来の技術】汎用ミニコンピユータやエンジニアリン
グワークステーション等の電子計算機と、画像プロセッ
サと画像メモリからなる画像処理専用のハードウエアか
ら構成される従来の画像処理システムに関し、本出願人
が特願昭63−59657号および特願昭63−596
58号として既に提案している技術がある。簡単に説明
すれば、画像データの処理プロセスとは独立に画像記憶
領域の管理プロセスを設けることにより、画像処理の実
行に応じて動的に適切な記憶領域を画像メモリ上や主記
憶上に割り当てることを可能にしようとするものである
。これによって、プログラマは画像データの物理的配置
や、画像メモリと主記憶の間の画像転送を意識すること
なく画像処理プログラムを記述することが可能となる。
[Prior Art] Regarding a conventional image processing system consisting of an electronic computer such as a general-purpose minicomputer or an engineering workstation, and hardware dedicated to image processing consisting of an image processor and an image memory, the present applicant filed a patent application in 1983. -59657 and patent application 1986-596
There is a technology that has already been proposed as No. 58. To put it simply, by providing an image storage area management process independent of the image data processing process, an appropriate storage area is dynamically allocated on the image memory or main memory according to the execution of image processing. It aims to make that possible. This allows the programmer to write an image processing program without being aware of the physical arrangement of image data or image transfer between the image memory and the main memory.

【0003】0003

【発明が解決しようとしている課題】しかしながら、種
々のプログラミング言語で書かれた各種画像処理アプリ
ケーションから、かかる画像記憶領域の管理プロセスを
利用する場合、処理対象の画像を外部記憶装置から入力
し、処理結果の画像を外部記憶装置へ出力する画像の入
出力操作ライブラリを各種プログラミング言語から呼び
出させる形でユーザが用意する必要があった。また、こ
の際、各画像処理アプリケーション開発者は独自の画像
ファイルフォーマットを採用する可能性があるので、処
理対象として扱える外部記憶装置上の画像(ファイル)
がアプリケーションごとに異なるというような統一性を
欠いた状況になることがあった。
[Problems to be Solved by the Invention] However, when using such image storage area management processes from various image processing applications written in various programming languages, images to be processed are input from an external storage device and processed. The user had to prepare an image input/output operation library that can be called from various programming languages to output the resulting image to an external storage device. In addition, in this case, each image processing application developer may adopt its own image file format, so images (files) on external storage devices that can be processed
This sometimes resulted in a situation that lacked uniformity, with different values depending on the application.

【0004】本発明は係る問題に鑑みなされたものであ
り、アプリケーション開発者が各自で画像ファイルの入
出力等のライブラリを開発する必要がなくなると共に、
新しいファイルフォーマットに対応するなどの拡張機能
が、アプリケーションを記述しているプログラミング言
語に依らず、またプログラムの再コンパイル・リンク等
を行うことなく利用可能にする画像処理方法及びその装
置を提供しようとするものである。
The present invention has been made in view of the above problem, and eliminates the need for application developers to develop their own libraries for image file input/output, etc.
We aim to provide an image processing method and device that enables extended functions such as support for new file formats, regardless of the programming language in which the application is written, and without recompiling or linking the program. It is something to do.

【0005】[0005]

【課題を解決するための手段】この課題を解決する本発
明の画像処理方法は以下のプロセスを備える。すなわち
、画像処理プロセスと、当該画像処理プロセスとの間で
画像データの授受を行うと共に、前記画像データの画像
記憶領域への保持・管理を行う管理プロセスを独立して
有する画像処理方法であって、前記管理プロセスは、前
記画像記憶領域の画像データの外部記憶装置に対する記
憶保存処理、及び当該外部記憶装置からの前記画像記憶
領域に対する読み込み処理を備える。
Means for Solving the Problems The image processing method of the present invention for solving this problem includes the following process. That is, an image processing method that independently includes an image processing process and a management process that exchanges image data between the image processing process and holds and manages the image data in an image storage area. , the management process includes a process of storing image data in the image storage area in an external storage device, and a process of reading the image data from the external storage device into the image storage area.

【0006】また、本発明の画像処理装置は以下の構成
を備える。すなわち、画像処理手段と、当該画像処理手
段との間で画像データの授受を行うと共に、前記画像デ
ータの画像記憶領域への保持・管理を行う管理手段を独
立して有する画像処理装置であって、前記管理手段は、
前記画像記憶領域の画像データを外部記憶装置に記憶保
存させる記憶保存手段及び当該外部記憶装置から前記画
像記憶領域に読み込む読み込み手段を備える。
[0006] Furthermore, the image processing apparatus of the present invention has the following configuration. That is, the image processing apparatus independently includes an image processing means and a management means for transmitting and receiving image data between the image processing means and for retaining and managing the image data in an image storage area. , the management means:
The image storage apparatus includes a storage means for storing and storing image data in the image storage area in an external storage device, and a reading means for reading the image data from the external storage device into the image storage area.

【0007】[0007]

【作用】かかる構成よりなる本発明の方法において、画
像処理プロセスは画像データの外部記憶装置に対する保
存、そして読み込みをも管理プロセスに託する。
[Operation] In the method of the present invention having such a configuration, the image processing process also entrusts the storage and loading of image data to the external storage device to the management process.

【0008】[0008]

【実施例】以下、添付図面に従って本発明に係る実施例
を詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

【0009】図1に本実施例における画像処理システム
の機器構成を示す。
FIG. 1 shows the equipment configuration of an image processing system in this embodiment.

【0010】図中、101はシステム全体の制御を司る
中央処理装置(CPU)で、メインメモリ102に格納
されたプログラムに従って処理するものであり、例えば
画像メモリ内の画像データを処理することもできる。メ
インメモリ102には、CPU101の実行プログラム
として、管理プロセス、処理プロセスなどをはじめとし
て、後述する管理テーブル等を格納する。103は画像
をファイルとして蓄積するための外部記憶装置(例えば
磁気デイスク等)である。104は画像を格納するため
の画像メモリ、105は画像メモリ内のデータを処理す
るための画像プロセッサである。101,102,10
3は一般のEWS(エンジニアリングワークステーショ
ン、例えば米国Sun Microsystems社の
ワークステーション等)の構成であり、104,105
は一般の画像処理装置(例えばnexus 6810等
)の構成である。またその両者はEWSの標準バスを介
してバス結合しているものとする。
In the figure, 101 is a central processing unit (CPU) that controls the entire system and processes according to a program stored in the main memory 102. For example, it can also process image data in the image memory. . The main memory 102 stores, as execution programs for the CPU 101, management processes, processing processes, and the like, as well as management tables, which will be described later. Reference numeral 103 denotes an external storage device (for example, a magnetic disk) for storing images as files. 104 is an image memory for storing images, and 105 is an image processor for processing data in the image memory. 101, 102, 10
3 is the configuration of a general EWS (engineering workstation, such as a workstation from Sun Microsystems in the United States), and 104,105
is the configuration of a general image processing device (for example, NEXUS 6810, etc.). Further, it is assumed that both of them are bus-coupled via an EWS standard bus.

【0011】図2に実施例における画像処理実行時のプ
ロセスの概念を示す。ここで、201は画像記憶領域の
管理を行う管理プロセスであり、画像ファイルを入出力
操作する手段を有している。また、202,203は画
像処理手順を実行する処理プロセスである。本実施例で
は、CPU101の動作環境としてのオペレーティング
システム(OS)はUNIX(米国AT&T社が開発し
、ライセンスしている)であり、プロセス間の通信はU
NIXにおけるsocketシステムコールによって実
現される。また画像メモリはmmapシステムコールに
よつて、直接CPU101からアクセスができるように
なつており、メインメモリ上の画像はshmgetシス
テムコールによって共有メモリ上におかれ、プロセス間
で共有可能となっている。
FIG. 2 shows the concept of the process when image processing is executed in this embodiment. Here, 201 is a management process that manages the image storage area, and has means for inputting and outputting image files. Furthermore, 202 and 203 are processing processes that execute image processing procedures. In this embodiment, the operating system (OS) serving as the operating environment of the CPU 101 is UNIX (developed and licensed by AT&T, USA), and communication between processes is
This is realized by the socket system call in NIX. Furthermore, the image memory can be accessed directly from the CPU 101 using the mmap system call, and images on the main memory are placed on the shared memory using the shmget system call, allowing them to be shared between processes.

【0012】先ず、図2におけるプロセス間の動作簡略
を説明する。
First, a brief description of the operations between processes in FIG. 2 will be given.

【0013】処理プロセス(202または203)は管
理プロセス201に対して、画像記憶領域に対する各種
要求をプロセス間通信を利用して行う。ここでの画像記
憶領域に対する要求には、画像の登録、画像の削除、共
有メモリ上の画像の占有開始、共有メモリ上の画像の占
有解除、画像メモリ上の画像の占有開始、画像メモリ上
の画像の占有解除、画像の外部記憶装置へのセーブ、画
像の外部記憶装置からのロードの要求等がある。管理プ
ロセス201はこれらの各種要求を到着順に順次処理す
る。
The processing process (202 or 203) makes various requests for the image storage area to the management process 201 using inter-process communication. Requests for the image storage area here include registration of an image, deletion of an image, start of occupying an image on shared memory, release of occupation of an image on shared memory, start of occupying an image on image memory, and start of occupying an image on image memory. There are requests to release the image, save the image to an external storage device, load the image from the external storage device, etc. The management process 201 sequentially processes these various requests in the order of arrival.

【0014】画像の登録、画像の削除、共有メモリ上の
画像の占有開始、共有メモリ上の画像の占有解除、画像
メモリ上の画像の占有開始、画像メモリ上の画像の占有
解除に関する詳細は、本願出願人が提案している特願昭
63−59658号に記載されているので、本実施例で
は画像の外部記憶装置へのセーブ、画像の外部記憶装置
からのロードの要求に対する管理プロセスの動作を以下
に説明する。
[0014] Details regarding image registration, image deletion, starting to occupy an image on the shared memory, releasing occupation of an image on the shared memory, starting occupying an image on the image memory, and releasing occupation of an image on the image memory are as follows: As described in Japanese Patent Application No. 63-59658 proposed by the applicant, in this embodiment, the management process operates in response to a request to save an image to an external storage device or load an image from an external storage device. will be explained below.

【0015】図3は画像の外部記憶装置へのセーブ要求
に対する管理プロセスの動作を示した図である。
FIG. 3 is a diagram showing the operation of the management process in response to a request to save an image to an external storage device.

【0016】先ず、ステップS301において、引数と
して画像のIDを得る。そして、ステップS302、S
302において、管理テーブルを参照することで、画像
の状態を判別する。ここで、画像がすでに共有メモリ上
あるいは画像メモリ上で占有されていれば、画像データ
に直接アクセスすることはできないので、エラーとして
処理を終了する(ステップS308)。また、非占有状
態であれば、実際の画像が共有メモリあるいは画像メモ
リどちらに存在するかを判断した(ステップS304,
305)後、それぞれの場合に応じて画像内容を外部記
憶装置103に書き出す(ステップS306,またはS
307)。この場合のファイルに対する書き出しの実現
にはopen,write,close等のシステムコ
ールを利用して実現する。
First, in step S301, an image ID is obtained as an argument. Then, step S302, S
At 302, the state of the image is determined by referring to the management table. Here, if the image is already occupied on the shared memory or the image memory, the image data cannot be accessed directly, so the process ends as an error (step S308). If it is in an unoccupied state, it is determined whether the actual image exists in the shared memory or the image memory (step S304,
305), the image contents are written to the external storage device 103 according to each case (step S306 or S
307). In this case, writing to the file is achieved using system calls such as open, write, and close.

【0017】図4は画像の外部記憶装置からのロード要
求に対する管理プロセスの動作を示した図である。処理
の流れ自体は図3で図示した上記の外部記憶装置へのセ
ーブ要求に対する処理に類似している。ここで、両処理
において異なるのは、実際に画像内容を外部記憶装置に
書き出すか、外部記憶装置から読み込むかの違いだけで
ある。この場合のファイルからの読み込みの実現にはo
pen  read,close等のシステムコールを
利用して実現する。
FIG. 4 is a diagram showing the operation of the management process in response to a request to load an image from an external storage device. The processing flow itself is similar to the processing for the above-mentioned save request to the external storage device illustrated in FIG. Here, the only difference between the two processes is whether the image content is actually written to the external storage device or read from the external storage device. To realize reading from a file in this case, o
This is achieved using system calls such as pen read and close.

【0018】尚、上記の実施例では、画像を外部記憶装
置からロード、あるいは外部記憶装置へセーブしたい時
点で、処理プロセスが対応する要求を管理プロセスに発
行する例を述べた。しかし、次のような明示的なファイ
ルのロード/セーブ要求を持たない場合にも適応させる
ことができる。
In the above embodiment, an example has been described in which the processing process issues a corresponding request to the management process when it is desired to load or save an image from an external storage device. However, it can also be applied to cases where there is no explicit file load/save request, such as the following.

【0019】・画像登録を要求するときにオプションの
引数として、画像に対応するファイル名を指定可能とす
る。
- When requesting image registration, the file name corresponding to the image can be specified as an optional argument.

【0020】・画像登録を要求した時点で、指定された
ファイル名の画像ファイルが外部記憶装置上にすでに存
在する場合、登録処理と同時に外部記憶装置から画像記
憶領域へ画像ファイルのロードを行う。
If an image file with the specified file name already exists on the external storage device at the time when image registration is requested, the image file is loaded from the external storage device to the image storage area at the same time as the registration process.

【0021】・画像削除の要求が行われた場合、その削
除対象となる画像が登録時にファイル名を指定されたも
のであれば、実際の削除処理を行う前に、外部記憶装置
に対して画像ファイルのセーブを行う。
- When a request for image deletion is made, if the file name of the image to be deleted is specified at the time of registration, the image will be deleted from the external storage device before the actual deletion process is performed. Save the file.

【0022】以上説明したように本実施例によれば、実
際に画像処理を実行する処理プロセスとは独立な画像記
憶領域の管理プロセスに、画像ファイルの入出力操作を
行う機能を設けたことにより、アプリケーション開発者
が各自で画像ファイルの入出力等のライブラリを開発す
る必要がなくなる。また新しいファイルフォーマットに
対応するなどの拡張機能が、アプリケーションを記述し
ているプログラミング言語に依らず、またプログラムの
再コンパイル・リンク等を行うことなく利用可能になる
効果もある。
As explained above, according to this embodiment, the function for inputting and outputting image files is provided in the image storage area management process, which is independent of the processing process that actually executes image processing. This eliminates the need for application developers to develop their own libraries for inputting and outputting image files. Another advantage is that extended functions such as support for new file formats can be used regardless of the programming language in which the application is written, and without recompiling or linking the program.

【0023】[0023]

【発明の効果】以上説明したように本発明によれば、ア
プリケーション開発者が各自で画像ファイルの入出力等
のライブラリを開発する必要がなくなると共に、新しい
ファイルフォーマットに対応するなどの拡張機能が、ア
プリケーションを記述しているプログラミング言語に依
らず、またプログラムの再コンパイル・リンク等を行う
ことなく利用可能になる。
[Effects of the Invention] As explained above, according to the present invention, there is no need for application developers to develop their own libraries for image file input/output, etc., and extended functions such as support for new file formats can be added. The application can be used regardless of the programming language in which the application is written, and without recompiling or linking the program.

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

【図1】実施例における画像処理システムのブロック構
成図である。
FIG. 1 is a block configuration diagram of an image processing system in an embodiment.

【図2】実施例における各プロセスの相関を示す図であ
る。
FIG. 2 is a diagram showing the correlation of each process in the example.

【図3】実施例における管理プロセスの画像セーブ要求
に対する処理手順を示すフローチャートである。
FIG. 3 is a flowchart showing a processing procedure for an image save request of a management process in the embodiment.

【図4】実施例における管理プロセスの画像ロード要求
に対する処理手順を示すフローチャートである。
FIG. 4 is a flowchart showing a processing procedure for an image load request of a management process in the embodiment.

【符号の説明】[Explanation of symbols]

101  中央処理装置(CPU) 102  メインメモリ 103  外部記憶装置 104  画像メモリ 105  画像プロセッサ 201  管理プロセス 202及び203  処理プロセス 101 Central processing unit (CPU) 102 Main memory 103 External storage device 104 Image memory 105 Image processor 201 Management process 202 and 203 Processing process

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  画像処理プロセスと、当該画像処理プ
ロセスとの間で画像データの授受を行うと共に、前記画
像データの画像記憶領域への保持・管理を行う管理プロ
セスを独立して有する画像処理方法であって、前記管理
プロセスは、前記画像記憶領域の画像データの外部記憶
装置に対する記憶保存処理、及び当該外部記憶装置から
の前記画像記憶領域に対する読み込み処理を備えること
を特徴とする画像処理方法。
1. An image processing method that independently comprises an image processing process and a management process that exchanges image data between the image processing process and holds and manages the image data in an image storage area. The image processing method is characterized in that the management process includes a process of storing image data in the image storage area in an external storage device, and a process of reading the image data from the external storage device into the image storage area.
【請求項2】  画像処理手段と、当該画像処理手段と
の間で画像データの授受を行うと共に、前記画像データ
の画像記憶領域への保持・管理を行う管理手段を独立し
て有する画像処理装置であって、前記管理手段は、前記
画像記憶領域の画像データを外部記憶装置に記憶保存さ
せる記憶保存手段及び当該外部記憶装置から前記画像記
憶領域に読み込む読み込み手段を備えることを特徴とす
る画像処理装置。
2. An image processing device that independently comprises an image processing means and a management means that exchanges image data between the image processing means and holds and manages the image data in an image storage area. Image processing characterized in that the management means includes a storage means for storing and storing image data in the image storage area in an external storage device, and a reading means for reading from the external storage device into the image storage area. Device.
JP6966791A 1991-04-02 1991-04-02 Method and device for processing picture Pending JPH04304566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6966791A JPH04304566A (en) 1991-04-02 1991-04-02 Method and device for processing picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6966791A JPH04304566A (en) 1991-04-02 1991-04-02 Method and device for processing picture

Publications (1)

Publication Number Publication Date
JPH04304566A true JPH04304566A (en) 1992-10-27

Family

ID=13409419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6966791A Pending JPH04304566A (en) 1991-04-02 1991-04-02 Method and device for processing picture

Country Status (1)

Country Link
JP (1) JPH04304566A (en)

Similar Documents

Publication Publication Date Title
JPH10283195A (en) Method for mutually connecting software driver in kernel mode, computer program product, system and record medium
JPH0283627A (en) Interpreter
JPH11110194A (en) Method of coupling with external library function and recording medium on which the method is programmed and recorded
CN101091166A (en) Methods and apparatuses to maintain multiple execution contexts
CN117692416A (en) Network message processing method, device, computer equipment and storage medium
JP2681929B2 (en) Program start method
KR20060063642A (en) Method and system for enabling resource sharing between subsystems
US20120254481A1 (en) Systems and methods for using a shared buffer construct in performance of concurrent data-driven tasks
US20090307442A1 (en) Memory Access Control
JPH0619717A (en) Information processor
US20030084202A1 (en) Apparatus and methods for integrating apis for program execution management
US20120185452A1 (en) System and method for file coordination
US8291377B2 (en) External configuration of processing content for script
JP2906958B2 (en) User program loading method
JPS58125144A (en) Program generation controller
JP2533931B2 (en) Data contents protection method of dynamic allocation area
RU2721960C1 (en) Computer-implemented method of interaction between components and tasks of operating system through interface bus
JPH08272815A (en) Object-oriented database system and its processing method
JP2594140B2 (en) Data driven data processor
JPH08297585A (en) Data transfer method by operating system
JPH01310466A (en) Multiprocessor system
JP2005071158A (en) Exclusive control method for file
WO2026076977A1 (en) Data transmission method and related apparatus
WO2024102208A1 (en) Interoperability between actor frameworks and asynchronous frameworks
JPH02148162A (en) Method for loading program to slave processor