JP2000242803A - Image processor - Google Patents

Image processor

Info

Publication number
JP2000242803A
JP2000242803A JP4122399A JP4122399A JP2000242803A JP 2000242803 A JP2000242803 A JP 2000242803A JP 4122399 A JP4122399 A JP 4122399A JP 4122399 A JP4122399 A JP 4122399A JP 2000242803 A JP2000242803 A JP 2000242803A
Authority
JP
Japan
Prior art keywords
image
pixels
range
mouse
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
Application number
JP4122399A
Other languages
Japanese (ja)
Inventor
Tomomi Yao
智美 八尾
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4122399A priority Critical patent/JP2000242803A/en
Publication of JP2000242803A publication Critical patent/JP2000242803A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable a user to specify the range of an enlarged image as the user intends by connecting a last mouse click point to the current position of a current mouse pointer with a straight line, checking which side of the straight line the center of the pixels of the image is, and displaying the outward shape of the pixels on the image side with a broken line. SOLUTION: For example, the mouse pointer is assumed to move from a point 1 to a point 2 by moving the mouse. The points 1 and 2 are connected by a straight line and it is checked whether the center of the pixel of the image is on the image side of segments 1 and 2 or outside the image. The rectangle having its diagonal between the mouse pointer points 1 and 2 is extracted first and the center of the pixels in the rectangle is checked. Here, it is checked which of the sides divided by the segment connecting the mouse pointer points 1 and 2 there are more centers of pixels of the image on. The side where there are more centers is the inside of the image. Namely, pixels A, B, C, E, F, G, H, and I are on the image side and a pixel D is outside the image. Then, the outward shape of the pixels on the image side are connected by a broken line and displayed on a display device.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像をCRT上で
処理するとき、画像の範囲を決定するときのCRT上で
の表示の方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of displaying an image on a CRT when determining the range of the image when processing the image on the CRT.

【0002】[0002]

【従来の技術】画像をCRT上で処理する場合、特に細
かい画像のときは画像を拡大してピクセル単位で表示し
て作業をする。拡大画像の範囲を指定するとき、従来の
画像処理装置では、マウスの軌跡をそのまま破線などで
表示して、範囲確定後にピクセル単位で表示していた。
2. Description of the Related Art When an image is processed on a CRT, particularly when the image is a fine image, the image is enlarged and displayed on a pixel-by-pixel basis. When specifying the range of the enlarged image, the conventional image processing apparatus displays the locus of the mouse as it is by a broken line, and displays the locus in pixels after the range is determined.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来の画像処理装置は、拡大画像の範囲を指定するときマ
ウスの軌跡をそのまま破線などで表示して範囲確定後に
ピクセル単位で表示するので、範囲指定中にはどのピク
セルが選択されているか分からず、思ったとおりに範囲
を指定することは困難だった。
However, in the conventional image processing apparatus, when the range of the enlarged image is designated, the trajectory of the mouse is displayed as it is by a broken line, and is displayed in pixels after the range is determined. Some didn't know which pixel was selected, and it was difficult to specify the range as expected.

【0004】本発明は、上記した問題点に鑑み、拡大画
像の範囲を指定するときに範囲の確定前でも、どの範囲
を指定しているかをピクセル単位で表示する画像処理装
置を提供することを目的とする。
The present invention has been made in view of the above-described problems, and provides an image processing apparatus that displays which range is specified in units of pixels even before the range is determined when specifying the range of the enlarged image. Aim.

【0005】[0005]

【課題を解決するための手段】本発明は、上記問題点を
解決するために画像をCRT上で処理する場合、マウス
などで画像の範囲を指定するとき、ユーザの思ったとお
りの範囲を指定することができるようにする。
SUMMARY OF THE INVENTION According to the present invention, when an image is processed on a CRT in order to solve the above-mentioned problems, when the range of the image is specified by a mouse or the like, the range specified by the user is specified. To be able to.

【0006】ここで、画像の範囲を指定する際マウスポ
インタが動いたとき、前回のマウスクリック点と現在の
マウスポインタの位置を直線で結び、画像のピクセルの
中心が直線のどちらかにあるかを調べ、画像側にあるピ
クセルの外形を破線で表示する手段を有する。
Here, when the mouse pointer moves when designating the range of the image, the previous mouse click point and the current position of the mouse pointer are connected by a straight line, and the center of the pixel of the image is located on one of the straight lines. And displaying the outline of the pixel on the image side with a broken line.

【0007】[0007]

【発明の実施の形態】本発明の請求項1に記載の発明
は、拡大画像の範囲を指定するとき、確定前でも、どの
範囲を指定しているかをピクセル単位で表示し、ユーザ
の思ったとおりの範囲を指定することができるという作
用を有する。
According to the first aspect of the present invention, when a range of an enlarged image is designated, even before confirmation, which range is designated is displayed in pixel units, and the user's thoughts are given. It has the effect that the range can be specified as follows.

【0008】以下、本発明の実施の形態について、図1
を用いて説明する。図1は、本発明の実施の形態の画像
処理装置のブロック図であって、1は装置の制御および
データ処理を行うCPU、2はプログラム等を記憶する
ROM、3は各種データを記憶するRAM、4はキーボ
ードやマウス等の入力部、5は表示装置(CRT)であ
る。
Hereinafter, an embodiment of the present invention will be described with reference to FIG.
This will be described with reference to FIG. FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention. 1 is a CPU that controls the apparatus and performs data processing, 2 is a ROM that stores programs and the like, and 3 is a RAM that stores various data. Reference numeral 4 denotes an input unit such as a keyboard and a mouse, and 5 denotes a display device (CRT).

【0009】以上のように構成された本実施の形態にか
かる画像処理装置について、以下その動作を図2のフロ
ーチャートを用いて説明する。
The operation of the thus configured image processing apparatus according to this embodiment will be described below with reference to the flowchart of FIG.

【0010】図1の表示装置5上に画像Aが表示されて
いるとする。この画像の一部を切り取りたいとき、マウ
ス4で図3の点1、2、3、を順番にクリックして多角
形をつくり、切り取る範囲を決定していく。図4は、図
3の画像の一部を拡大したものである。斜線部は画像
で、点1は前回、マウス4でクリックした点である。マ
ウス4を動かして、マウスポインタが図4の点2に動い
たとする(ステップ1)。図4の点1、2を直線で結
び、画像のピクセルの中心が線分1、2の画像側か、画
像の外側にあるかを調べる(ステップ2)。まず、マウ
スポインタ点1、2を対角線とする矩形を取り出す(図
5)。矩形の中のピクセルの中心を調べる。ここで、マ
ウスポインタ1、2を結ぶ線分で分けられたどちら側に
画像のピクセルの中心が多いか調べる。多いほうが画像
の内側である。ただし、同じ数のときやマウスポインタ
が一直線上に並ぶ(2つのマウスポインタのx座標また
はy座標が同じ)とき無条件に座標の左上を画像の内側
とする。図5でピクセルA、B、C、E、F、G、H、
Iは、画像側で、ピクセルDは、画像の外側である。画
像側にあるピクセルの外形を破線で結び、図1の表示装
置5に表示する(図6)。
Assume that an image A is displayed on the display device 5 of FIG. When it is desired to cut out a part of this image, the user clicks points 1, 2, and 3 in FIG. 3 in order with the mouse 4 to create a polygon and determine the range to cut out. FIG. 4 is an enlarged view of a part of the image of FIG. The hatched portion is the image, and point 1 is the point clicked with the mouse 4 last time. Suppose that the mouse 4 is moved and the mouse pointer moves to a point 2 in FIG. 4 (step 1). Points 1 and 2 in FIG. 4 are connected by a straight line, and it is checked whether the pixel center of the image is on the image side of the line segments 1 and 2 or outside the image (step 2). First, a rectangle having the mouse pointer points 1 and 2 as diagonal lines is extracted (FIG. 5). Find the center of the pixel in the rectangle. Here, it is checked which side divided by the line segment connecting the mouse pointers 1 and 2 has more pixel centers in the image. The larger one is inside the image. However, when the number is the same, or when the mouse pointers are aligned on a straight line (the x and y coordinates of the two mouse pointers are the same), the upper left corner of the coordinates is unconditionally set to the inside of the image. In FIG. 5, pixels A, B, C, E, F, G, H,
I is the image side and pixel D is outside the image. The outlines of the pixels on the image side are connected by broken lines and displayed on the display device 5 of FIG. 1 (FIG. 6).

【0011】このようにして、画像の範囲を指定すると
きユーザは思ったとおりの範囲を指定することができ
る。
In this way, when specifying the range of the image, the user can specify the desired range.

【0012】[0012]

【発明の効果】本発明は、画像をCRT上で処理する場
合、特に細かい画像のときは画像を拡大してピクセル単
位で表示して作業をする。拡大画像の範囲を指定すると
き、確定前でも、どの範囲を指定しているかをピクセル
単位で表示し、ユーザの思ったとおりの範囲を指定する
ことができる。
According to the present invention, when processing an image on a CRT, particularly when the image is a fine image, the image is enlarged and displayed on a pixel-by-pixel basis. When the range of the enlarged image is specified, even before the determination, the range that is specified is displayed in units of pixels, and the range desired by the user can be specified.

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

【図1】本発明の一実施の形態における画像処理装置の
ブロック図
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention.

【図2】同実施の形態における画像の指定範囲を表示す
る処理のフローチャート
FIG. 2 is a flowchart of a process for displaying a designated range of an image according to the embodiment;

【図3】同実施の形態における画像の指定範囲の例を示
す図
FIG. 3 is a diagram showing an example of a designated range of an image according to the embodiment;

【図4】同実施の形態における拡大画像とマウスポイン
タの例を示す図
FIG. 4 is a diagram showing an example of an enlarged image and a mouse pointer in the embodiment.

【図5】同実施の形態における拡大画像のマウスポイン
タを対角線とする矩形の例を示す図
FIG. 5 is an exemplary view showing an example of a rectangle having a mouse pointer of an enlarged image as a diagonal in the embodiment;

【図6】同実施の形態における拡大画像の指定範囲の表
示の例を示す図
FIG. 6 is a diagram showing an example of display of a specified range of an enlarged image according to the embodiment;

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

1 CPU 2 ROM 3 RAM 4 入力部 5 (CRT) 1 CPU 2 ROM 3 RAM 4 Input unit 5 (CRT)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】画像をCRT上で処理する場合、特に細か
い画像のときは画像を拡大してピクセル単位で表示して
作業をする。マウスなどで画像の範囲を指定するとき、
画像の選択範囲をピクセルの外形にそって破線などで表
示する方法であって、画像の範囲の確定前でも、どの範
囲を指定しているかをピクセル単位で表示することを特
徴とする画像処理装置。
When an image is processed on a CRT, particularly when the image is a fine image, the image is enlarged and displayed on a pixel-by-pixel basis. When specifying the range of the image with a mouse,
An image processing apparatus for displaying a selection range of an image by a broken line or the like along the outer shape of a pixel, and displaying which range is specified in units of pixels even before the determination of the range of the image. .
JP4122399A 1999-02-19 1999-02-19 Image processor Pending JP2000242803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4122399A JP2000242803A (en) 1999-02-19 1999-02-19 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4122399A JP2000242803A (en) 1999-02-19 1999-02-19 Image processor

Publications (1)

Publication Number Publication Date
JP2000242803A true JP2000242803A (en) 2000-09-08

Family

ID=12602413

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4122399A Pending JP2000242803A (en) 1999-02-19 1999-02-19 Image processor

Country Status (1)

Country Link
JP (1) JP2000242803A (en)

Similar Documents

Publication Publication Date Title
JP2000242803A (en) Image processor
JPH05174153A (en) Drawing data processor
JP2751114B2 (en) Character processing method
EP0439333A2 (en) Electronic image modification
JP3451292B2 (en) Figure transformation device
JPH0769968B2 (en) Straight line drawing method in the clip area
JP3486937B2 (en) Figure transformation device
JPH08335277A (en) Graphic processor
JPH0736606A (en) Waveform data analysis system
JPH0519952A (en) Handwritten character input and display device
JPH07220098A (en) Plotting data generator for circular arc by polygonal approximation
JPH0683540A (en) Cursor position designating method
JP2001357076A (en) Image display method for cad system
JPH10111781A (en) Mouse cursol position display system and method therefor
JPH0281179A (en) Picking circuit
JPH0652114A (en) Rectangle display method
JPH10116349A (en) Picture paint-out processing method
JPH04326180A (en) Graphic operator
JPH05108782A (en) Picture operation system
JPH07200857A (en) Graphic deforming device
JPH0683565A (en) Pattern form display device
JPH04238586A (en) Clipping processing system for plotter
JPH0954773A (en) Layout processor
JPH08221544A (en) Image deformation processor
JPH04307683A (en) Electronic computer