The present invention relates to a technique for drawing images interactively at the request of an operator, and deleting or adding discretional regions corresponding to the displayed images using an input device such as a mouse.
Existing methods for image editing are carried out using a pointing device such as a mouse and tools such as pencil tool or eraser tool, by displaying traces of mouse pointer passing through the image with curves as if the mouse is moving on a canvas, erasing a part of the image where the mouse pointer passed through, or painting the region encompassed by a curve with a predetermined color.
An image-editing device comprising such functions is disclosed in Patent Document 1.
Patent Document 1: JP-A-1993-205020
However, the method disclosed in Patent Document 1 is to be implemented, first by displaying a predetermined closed-region image based on the image data presented on a bitmap, then designating the contour line part of this closed-region image as well as inputting the number of pixels for adding or deleting along its contour line part, and adding or deleting a predetermined number of pixels in a normal direction along its contour line in relation to the closed-region image. With this method, a closed-region image must be created in every case of adding or deleting a discretional region with regard to the image once drawn, and the operation for creating the closed-region image is complicated.
An image-editing device of the present invention comprises:
display means for displaying an image having a plurality of pixel value regions including an attention region;
setting means for setting a graphic passing through the attention region and at least one region different from the attention region on the image; and
control means for judging which of the regions contains the ending-point of the graphic which has been set, executing extension or deletion of the attention region according to the graphic and the judgment result, and causing the display means to display the region extended or deleted as a new attention region.
In accordance with the above-mentioned means, an image editing device that is feasible with simple operation for drawing images or correction such as deleting or adding of the drawn region can be provided.
The image-editing device of the present invention also includes:
a step for displaying an image having a plurality of pixel value regions including an attention region;
a step for setting a graphic passing through the attention region and at least one region different from the attention region;
a step for judging which of the region contains the ending-point of the set graphic;
a step for executing either extension or deletion of the attention region according to the graphic and the judgment result by the judging step; and
a step for displaying the region extended or deleted as a new attention region.
In accordance with the above-mentioned steps, an image editing device that is feasible with simple operation for drawing images or correction such as deleting or adding of the drawn region can be provided.
In accordance with the present invention, it is feasible to produce an image-editing device with simple operation for drawing images or correction such as deleting or adding of the drawn region.
Hereinafter, an embodiment of the present invention will be described based on the drawings.
central processing unit (CPU) 10 for controlling the respective calculations for deleting and adding calculations and the operation of the respective components;
main memory 11 for storing the intermediate steps of the drawn images or calculations upon calculation of deleting or adding regions;
magnetic disc 12 for storing a plurality of data such as tomographic data, programs, and drawn images;
display memory 13 for temporarily storing image data for display;
CRT display 14 as a display device for displaying images or result of drawing based on image data from said display memory 13;
mouse 15 and its controller 16 for an operator to execute necessary input for the editing of the regions to add or delete, or to operate a soft switch on an image;
keyboard 17 having a key or switch for setting various types of parameter;
speaker 18; and
common bus 19 for connecting the above-mentioned respective components.
While a case that only magnetic disc 12 is connected as a storage device other than main memory 11 is described in this embodiment, a device other than that such as a floppy disc drive, hard disc drive, CD-ROM drive, magnetic optical disc (MO) drive, ZIP drive, PD drive or DVD drive may be connected. Furthermore, it may be arranged to be connectable to a variety of communication networks 1a such as LAN (Local Area Network), Internet or phone line via communication interface to be able to exchange image data between devices such as other computer or CT device 1b.
Next, the operator implements the region-deleting process or region-adding process to the drawn region 23 using mouse 15. The region-deleting process and region-adding process will be described referring to
(Step S30)
The operator clicks a discretional point on drawn-image display region 22 in
(Step S31)
CPU 10 obtains pixel value Is of starting-point 40, and stores it in main memory 11.
(Step S32)
The operator moves a mouse cursor on the screen by using mouse 15. At the same time, CPU 10 displays the trace of which the mouse cursor moved from starting-point 40 as curve 42.
(Step S33)
The operator clicks mouse 15 at the point where the motion of the mouse cursor ends. The point clicked at the end of the motion is to be ending-point 41.
(Step S34)
CPU 10 obtains pixel value Ie of ending-point 41, and stores it to main memory 11.
(Step S35)
CPU 10 searches for pixel value Ie of starting-point 40 and pixel value Ie of ending-point 41. When the combination of the pixel values are (Is, Ie)=(0=0) step S36 is to proceed, and when (Is, Ie) (1,1) step 337 is to proceed. When (Is, Ie) (0,1) or (1,0) neither region-deleting process nor region-adding process is carried out, and the process is ended.
(Step S36)
CPU 10 executes the region-deleting process for deleting the designated region from the attention region by moving of the mouse cursor.
It may also be set so that the smaller region (region 43) remains and the larger region (region 44) is deleted by, for example, clicking the right button of mouse 15, double-clicking mouse 15 or clicking the larger region (region 44).
Also, it may be set so that two regions 43 and 44 are displayed in different colors, and the discretional region that the operator wishes to delete can be deleted by clicking on the region with mouse 15. Instead of clicking mouse 15 on the region to be deleted, it may naturally be set so that the discretional region can remain by clicking on it.
(Step S37)
CPU 10 executes the region-adding process for adding the designated region by the moving of the mouse cursor to the original attention region.
When the operator deletes or adds a region different from the desired one by mistake, the drawing condition can be returned to the one before deleting or adding (undone) by pushing “return” button 24 in
Also, it is possible for the operator to return the drawn image to the condition that the drawn image was read in, through using mouse 15 by pushing “initialization” button 25.
Furthermore, when a plurality of drawn images are read in or newly created, it can be set so that the operator can display the respective images on drawn image display region 22 in a sequential order with the use of “image-forwarding” scroll bar 26 by operating mouse 15 and execute the region-deleting process or region-adding process to the respective images.
Also, the drawn images can be stored as diversified forms of images by the operator pushing the “save” button 27.
In the first embodiment, when the position of both starting-point 40 and ending-point 41 of the mouse cursor are on attention region 23 the region encompassed by curve 42 and the contour of attention region 23 is added to attention region 23, and in reverse, when the position of both starting-point 40 and ending-point 40 of the mouse cursor are outside of attention region 23 the region encompassed by curve 42 and the contour of attention region 23 is deleted from attention region 23. When only one of starting-point 40 or ending-point 40 of the mouse cursor is in attention region 23, no process is carried out.
In the above-mentioned first embodiment, while it is set to end the procedure in step S35 without executing either region-deleting process nor region-adding process when (Is,Ie)=(0,1) or (1,0), it may also be set to execute region-adding process even when (Is,Ie)=(0,1) or (1,0) according to a method shown in
On the other hand, as seen in curve 66 of
In place of obtaining the ratio between the entire length of the curve and the length of the curve passing through the outside of the region, by displaying the region encompassed with curve 66, line segment 6A and region 69 in a different color from the color of region 69, it may be set so that the region can be added by left-clicking mouse 26 when the operator determines that the region should be added and when it is determined that the region should not be added mouse 26 can be right-clicked not to add the region. While the case of adding the region is illustrated in
While the binary image wherein the pixel value “0” is given to the background region and the pixel value “1” is given to the drawn region with regard to the region-deleting or region-adding process, any number can be used for the respective pixel values as long as they are different numbers. Also, while an example that one closed region is deleted or added in relation to one drawn region is described, it can be set so that a plurality of regions can be added or deleted at once in relation to one drawn region.
While the case with only one original region is described in the above-mentioned embodiment, the region-deleting process can be implemented at once in relation to a plurality of regions having different pixel values.
While a case with only one drawn image is described in the above-mentioned embodiment, the case that there is, for example, a group of medical tomograms 101 obtained by a medical tomograph such as X-ray CT or MR as shown in
(Step S110)
An operator uses mouse 15 to push “read in” button 21 from the display screen shown in
(Step S111)
Out of the group of inputted medical tomograms, one is displayed on image display region 22, and the extracted organ region is displayed on a medical tomogram, for example, by color-coding the region or in translucent colors as shown in region 120 of
(Step 112)
The operator uses scroll bar 26 for forwarding the images with mouse 15 or keyboard 17 to select and display an image slice for implementing the region-adding process or region-deleting process.
(Step S113)
The operator plots a curve on image display region 22 for adding or deleting the region with the use of mouse 15. This curve should be plotted in the manner shown in curve 130 or curve 131 in
(Step S114)
The operator plots a region-adding curve or region-deleting curve with respect to the discretional number of images out of a plurality of inputted extraction regions of the medical tomograms. If the plotting of the curve is not finished the process will returned to step S112 and the image for plotting the curve will be selected, and if curve-plotting with respect to the discretional number of images is completed step S115 is to proceed. The curve plotted in relation to the discretional number of images here is to use for the batch region-adding/deletion process that will be described in step S118.
(Step S115)
The operator pushes “batch addition/deletion” button 28 using mouse 15.
(Step S116)
A pattern diagram of the region-adding curve or region-deleting curve plotted in step S113 are shown in FIG. 14. Here, the case of applying curve plotting in step S113 to 3 pieces of image 140, 141 and 142 out of a group of image tomograms 101 will be described as an example. Regions 143-147 are binarized organ regions. Curves 148, 149 and 14A are the plotted curves. CPU 10 searches for the pixel value of both ends (starting-point and ending-point) of curves 148, 149 and 14A and judges whether the respective curves are region-adding curve or region-deleting curve. In the case that there are both region-adding curves and region-deleting curves as seen in curves 150, 151 and 152 of
(Step S117)
CPU 10 measures the number of images on which the region-adding curve or region-deleting curve is plotted. In the case of
(Step S118)
CPU 10 executes the batch region-adding process if the plotted curve is the region-adding curve, and executes the batch region-deleting process if the plotted curve is the region-deleting curve. The batch adding/deleting process is carried out in the following manner.
Curved surface 14B to include all of the plotted curves (curves 148, 149 and 14A in case of
(Step S119)
CPU 10 displays in translucence the new regions obtained by the region-deleting process or region-adding process to image display region 22 superimposing over medical tomograms.
(Step S11A)
Cases where both region-deleting curve and region-adding curve exist, either of them exists, or only one exists are notified to the operator by display of an error massage or the sound indicating of an error since batch region-adding process or batch region-deleting process cannot be executed.
While two-dimensional images have been taken as examples so far, the same method can be used for the region-deleting process of three-dimensional images.
In accordance with the image-editing/display method and device, image drawing or correction such as deletion or addition can be carried out by simple operation.
While the examples which used curves to explain the new regions are described in the respective above-mentioned embodiments, the graphics such as straight line, quadrangle, circle or arc that are in the graphic plotting software may be used instead. Because there is an essential need that the above-mentioned curve must be set along the contour, the operationality for resetting a new attention region will further be improved if the above-mentioned respective graphics are set to be selectable in a menu format.
In accordance with the image-editing device and method of the present invention, it is possible to carry out corrections such as deletion or addition of the drawing area of the desired images with simple operation in relation to the images displayed on the screen by operating an input device such as a mouse.
Number | Date | Country | Kind |
---|---|---|---|
2004-131881 | Apr 2004 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2005/007956 | 4/27/2005 | WO | 00 | 10/17/2006 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2005/104041 | 11/3/2005 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5570404 | Liang et al. | Oct 1996 | A |
5923793 | Ikebata | Jul 1999 | A |
6459442 | Edwards et al. | Oct 2002 | B1 |
20040061889 | Wood et al. | Apr 2004 | A1 |
Number | Date | Country |
---|---|---|
06-111000 | Apr 1994 | JP |
07-168951 | Jul 1995 | JP |
07-182519 | Jul 1995 | JP |
Number | Date | Country | |
---|---|---|---|
20070273934 A1 | Nov 2007 | US |