1. Field of the Invention
The present invention relates to an image processing apparatus and method for arranging a plurality of ornament pieces in a target area displayed on an image display device based on a cursor operation. The invention also relates to a computer readable recording medium on which is recorded a program for causing a computer to perform the image processing method.
2. Description of the Related Art
Recently, it has been practiced for pleasure to decorate photo images with various types of graphic ornaments, such as flower, heart shape, and the like, and a method in which a photo image to be decorated is display on a display device and a desired ornament piece is arranged at a position directly specified by the user by clicking a cursor or the like is known.
As shown in
Further, U.S. Patent Application Publication No. 20040125423 (Patent Document 2) proposes a method for automatically arranging an ornament piece (glasses, false whiskers, or the like) on a person's face area of a photo image by enlarging or reducing the ornament piece according to the size of the face area and positioning the ornament piece so as to match with the image of the face area.
The method in which an ornament piece is arranged at a position specified directly by the user, however, requires a position specifying operation each time an ornament piece is arranged. Therefore, the method has a problem that it requires more time for a larger number of ornament pieces to be arranged. Further, where the user is not accustomed to the positioning for arranging an ornament piece, it is often the case that the arrangement results in unnatural.
Further, the method described in Patent Document 1 in which ornament pieces are arranged automatically at random positions may eliminate the time and effort of the user, but may not reflect user's intention in the arrangement of ornament pieces.
Still further, the method described in Patent Document 2 in which the appropriate arrangement position of an ornament piece is uniquely determined has a problem that the variation of decorative effects provided by the ornament piece is limited.
In view of the circumstances described above, it is an object of the present invention to provide an image processing method and apparatus capable of arranging a plurality of ornament pieces in a manner that reflects user's intention by a simple cursor operation. It is a further object of the present invention to provide a computer readable recording medium on which is recorded a program for causing a computer to perform the image processing method.
An image processing apparatus of the present invention is an apparatus, including:
an extension width determination unit for determining a extension width based on a depression time of the cursor at a reference position on the image display unit where a releasing operation of the cursor was performed, the depression time being a time during which the cursor had been kept depressed until the releasing operation was performed; and
an ornament piece arrangement unit for arranging the plurality of ornament pieces at positions radially extended away from the reference position with the extension width determined by the extension width determination unit.
In the apparatus described above, the extension width determination unit may be a unit that determines the extension width such that the longer the depression time the greater the extension width.
Further, the ornament piece arrangement unit may be a unit that arranges the plurality of ornament pieces along an arrangement line having a predetermined shape and being extended away from the reference position with the extension width determined by the extension width determination unit.
Here, the predetermined shape may be any of circular shape, ellipsoidal shape, polygonal shape, star shape, and heart shape.
The apparatus described above may further include a setting unit for setting at least one of the number, size, and color of ornament pieces to be arranged by the ornament piece arrangement unit.
The setting unit may be a unit that performs the setting based on a depression time of the cursor on a selection button used to select the type of the ornament pieces to be arranged displayed on the image display unit.
Further, the apparatus described above may be an apparatus configured such that the depressing operation of the cursor on the selection button and the releasing operation of the cursor at the reference position are performed in one continuous action.
Still further, in the apparatus described above, the target area may be an area in which a photo image is present, the apparatus may further include a detection unit for detecting an area representing a main subject in the photo image, and the ornament arrangement unit may be a unit that arranges the ornament pieces in the area detected by the detection unit and the other area in different arrangement forms.
An image processing method of the present invention is a method for arranging a plurality of ornament pieces in a target area displayed on a display unit based on an operation of a cursor, the method including the steps of:
determining an extension width based on a depression time of the cursor at a reference position on the image display unit where a releasing operation of the cursor was performed, the depression time being a time during which the cursor had been kept depressed until the releasing operation was performed; and
arranging the plurality of ornament pieces at positions radially extended away from the reference position with the extension width determined by the extension width determination unit.
A computer readable recording medium of the present invention is a medium on which is recorded a program for causing a computer to perform the method described above.
In the image processing method, apparatus, and program, the reference position is not limited to a position in the target area and maybe any position on the display unit. It is necessary, however, that at least some of the positions radially extended away from the reference position with the extension width determined based on the depression time of the cursor at the reference position are present in the target area for arranging the ornament pieces in the target area.
The term “target area” as used herein broadly refers to an area where ornament pieces are intended to be arranged, and includes an area where contents, such as various types of images, graphics, character strings, or the like are present, as well as an area where no contents are present.
The term “cursor” as used herein refers to an operation position on a screen and not necessarily limited to a dingbat displayed on the screen. Accordingly, the term “operation of a cursor” as used herein refers to riot only the operation of the dingbat on the screen for operating the cursor using an input device for specifying an input position or coordinates on the display screen, such as mouse, infrared or wireless remote control pointing device, or the like, but also a touch panel operation with a finger in which nothing appears on the screen.
Here, for example, when the input device for operating the cursor is a mouse, the terms “depressing operation of the cursor, keeping the cursor depressed, moving the cursor while depressed (dragging operation), and releasing operation of the cursor” as used herein refer to the depressing operation of the mouse button, keeping the mouse button depressed, moving the cursor with the mouse button being depressed, and releasing operation of the cursor respectively. If it is a touch panel, the touching operation to the touch panel with a finger, keeping the finger touched to the panel, moving the touched finger on the panel surface, and releasing operation of the finger from the panel.
Further, the term “depressing operation of the cursor and the releasing operation of the cursor are performed in one continuous action” as used herein refers to that the cursor is kept depressed between the two operations.
According to the image processing method, apparatus, and program of the present invention, when arranging a plurality of ornament pieces in a target area displayed on a display unit based on an operation of a cursor, a extension width is determined based on a depression time of the cursor at a reference position on the image display unit where a releasing operation of the cursor was performed, the depression time being a time during which the cursor had been kept depressed until the releasing operation was performed, and the plurality of ornament pieces are arranged at positions radially extended away from the reference position with the extension width determined by the extension width determination unit. This allows the plurality of ornament pieces to be arranged in a manner that reflects user's intention by a simple cursor operation.
Further, when at least one of the number, size, and color of ornament pieces to be arranged is set based on the duration of keeping the cursor depressed on a selection button used to select the type of the ornament pieces displayed on the image display unit, the user may set the number of ornament pieces to be arranged or the like by an intuitive operation of the cursor.
Still further, when a depressing operation of a cursor on a selection button and a releasing operation of the cursor at a reference position are performed in one continuous action, ornament pieces may be arranged with a less number of operations.
Further, where the target area is an area in which a photo image is present, an area representing a main subject in the photo image is detected, and ornament pieces are arranged in the detected area and the other area in different arrangement forms, then, for example, many ornament pieces may be arranged in an area other than a face area, i.e., the main subject area, of a portrait image, whereby the face image may be emphasized.
Hereinafter, an exemplary embodiment of the present invention will be described with reference to the accompanying drawings.
User input unit 20 includes a mouse, a touch panel, a remote control pointing device, or the like for specifying an input position or coordinates on a display screen of image display unit 40. The user may cause the computer to perform image processing to be described later by operating a cursor on a display screen using user input unit 20.
Display screen 60 shown in
The configuration of the image processing unit described above is realized by executing an image processing program, read in an auxiliary storage device, on the image processing workstation. Here, the image processing program is stored in information recording medium, such as CD-ROM or the like, or distributed through a network, such as the Internet, and installed on the computer.
Ornament piece selection unit 31 is a unit for selecting, when, for example, a cursor is depressed on one of selection buttons 71, 72, 73 displayed on image processing area 61 shown in
Intensity setting unit 32 is a unit for setting the number, size, color, and the like of ornament pieces using predetermined default values or in response to user input. For example, the number of ornament pieces is determined according to the number of depressing operations of cursor on a selection button, duration of operation maintained during the cursor is depressed, depression force when the cursor is depressed using a pressure sensitive touch panel.
As shown in
When arranging ornament pieces of various sizes and colors, the variety of the ornament pieces to be arranged may be controlled by setting the number of colors, number of sizes, and the like.
Further, an arrangement may be adopted in which a setting value of each of a plurality of setting items is predefined for a plurality of stages and a setting value set corresponding to the stage selected according to user input is used. For example, the definition is made such that the number of ornament pieces is set to five in stage 1, in which two of them in red, the rest of three in white, and two of them in large size, another two of them in medium size, and the rest of one in small size, and the number of ornament pieces is set to seven in stage 2, in which two of them in red, three others in white, and the rest of two in blue, and three of them in large size, two others in medium size, and the rest of two in small size.
Extension width determination unit 34 determines the extension width “d” of an arrangement line “E” used for arranging ornament pieces in ornament piece arrangement unit 36 to be described later based on a depression time of cursor Cs at a reference position “P” on display screen 60 where a releasing operation of cursor Cs was performed, which is a time during which cursor Cs had been kept depressed until the releasing operation was performed.
More specifically, for example, the extension width “d” of the arrangement line “E” from the reference position “P” is determined such that the longer the elapsed time from the start of depressing operation of cursor Cs to the releasing operation of cursor Cs, the greater the extension width. Where the arrangement line is a circle, the extension width “d” may be the radius of the circle, and if the arrangement line is an ellipsoid, the extension width “d” may be the radius in a long axis direction.
Here, the arrangement line may have various shapes, such as circular shape, ellipsoidal shape, polygonal shape, star shape, hear shape, S-shape, and the like. Further, the arrangement line is not limited to closed shapes.
Extension width determination unit 34 is not limited to a unit that determines the extension width “d” of the arrangement line “E” such that the longer the depression time of cursor Cs at a reference position “P” where a releasing operation of cursor Cs was performed, which is a time during which cursor Cs had been kept depressed until the releasing operation was performed, the greater the extension width “d”. It may be a unit that determines the extension width “d” such that the extension width “d” is gradually reduced from a predetermined reference value as the depression time of cursor Cs is increased.
Support line display control unit 35 is a unit for displaying at least either one of an arrangement line “E” and a segment “D” representing the extension width “d” of the arrangement line “E” from a reference position “P” determined at each time point where cursor Cs is released at the reference position “P” during the time from the start of depressing operation of cursor Cs to the releasing operation of cursor Cs at the reference position “P”, as shown in
Ornament piece arrangement unit 36 is a unit for arranging ornament pieces along the arrangement line “E” having an extension width “d” from the reference position “P” determined by extension width determination unit 34. For example, the ornament piece arrangement unit 36 sets equally spaced reference points on a circular arrangement line “E” with a radius of extension width “d” centered on a reference position, then with respect to each of the reference points, sets an equilateral triangle having a random size with its gravity point at the reference position, and arranges an ornament piece at each corner of the equilateral triangle, as shown in
Ornament piece arrangement unit 36 further has a function for arranging ornament pieces in a main subject area and the other area detected by a conventional object detection method in detection unit 37 in different arrangement forms. For example, where the face area in the portrait image shown in
Further, by treating the detected main subject area as a different layer from that of the other area, for example, the ornament pieces may be arranged at the back of the main subject (here, the entirety of the portrait area) and in front of the other area, as shown in
In the arrangement of ornament pieces described above, the number of reference points and type of polygonal shape (triangular shape, rectangular shape, combination thereof, and the like) may be determined based on the number of ornament pieces set by intensity setting unit 32, and the spacing between the reference points may be determined according to the size of the photo image.
The size of the polygonal shape set at each reference point may be random. Alternatively, the size may be preset so as to be gradually increased or decreased along the arrangement line.
Further, each polygonal shape may be a shape that has the corresponding reference point at its rough center or at a position away from the center, or a shape rotated at an arbitral angle with respect to a predetermined reference axis having the reference point at its center position.
When arranging ornament pieces using the image processing workstation of the present invention configured in the manner described above, the user may arrange, for example, a desired number of ornament pieces in a desired area of a target image by a series of intuitive cursor depressing and releasing operations, that is, by depressing the cursor on a selection button corresponding to the desired type of ornament pieces to be arranged displayed on a display screen, keeping the cursor on the selection button while depressing the cursor until the number, size, and color are set, then moving the cursor to a position that can be the reference position of an arrangement line on which the ornament pieces are arranged while keep depressing the cursor when a desired setting is obtained, and referring to an auxiliary line displayed by auxiliary line display control unit 35 while still keep depressing the cursor at the reference position, and releasing the cursor at a time point when the auxiliary line becomes a desired arrangement line “E” (or the extension width “d” thereof).
In the example operation, the description has been made of a case in which a cursor depressing operation on a selection button for ornament piece selection and the like, and a cursor releasing operation for instructing the ornament piece arrangement are performed in one continuous action. Alternatively, an arrangement may be adopted in which after the cursor depressing operation is performed on a selection button for ornament piece selection, and the Like, the cursor is depressed again and released for arranging the ornament pieces.
The ornament piece is not limited to a graphical shape, such as flower, heart shape, or the like, and it may be, for example, a reduced ordinary image or an object image extracted from an image.
Number | Date | Country | Kind |
---|---|---|---|
2008-136592 | May 2008 | JP | national |