AU748977B2 - Altering the shape of an artwork - Google Patents

Altering the shape of an artwork Download PDF

Info

Publication number
AU748977B2
AU748977B2 AU32580/00A AU3258000A AU748977B2 AU 748977 B2 AU748977 B2 AU 748977B2 AU 32580/00 A AU32580/00 A AU 32580/00A AU 3258000 A AU3258000 A AU 3258000A AU 748977 B2 AU748977 B2 AU 748977B2
Authority
AU
Australia
Prior art keywords
artwork
node
alteration
nodes
rule
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.)
Ceased
Application number
AU32580/00A
Other versions
AU3258000A (en
Inventor
Oliver Bock
Lincoln David Stone
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 Information Systems Research Australia Pty Ltd
Original Assignee
Canon Information Systems Research Australia Pty 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
Priority claimed from AUPQ0277A external-priority patent/AUPQ027799A0/en
Application filed by Canon Information Systems Research Australia Pty Ltd filed Critical Canon Information Systems Research Australia Pty Ltd
Priority to AU32580/00A priority Critical patent/AU748977B2/en
Publication of AU3258000A publication Critical patent/AU3258000A/en
Application granted granted Critical
Publication of AU748977B2 publication Critical patent/AU748977B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Description

S&FRef: 503089
AUSTRALIA
PATENTS ACT 1990 COMPLETE SPECIFICATION FOR A STANDARD PATENT
ORIGINAL
C C
C
Name and Address of Applicant Actual Inventor(s): Address for Service: Invention Title: Canon Information Systems Research Australia Pty Ltd 1 Thomas Holt Drive North Ryde NSW 2113 Australia Lincoln David Stone, Oliver Bock Spruson Ferguson St Martins Tower 31 Market Street Sydney NSW 2000 Altering the Shape of an Artwork
C
CC
ASSOCIATED PROVISIONAL APPLICATION DETAILS [33] Country [31] Applic. No(s) AU PQ0277 [32] Application Date 10 May 1999 The following statement is a full description of this invention, including the best method of performing it known to me/us:- 5815c -1- ALTERING THE SHAPE OF AN ARTWORK Field of Invention The present invention relates to a method and apparatus for altering a shape of a multi-dimensional artwork. The invention also relates to a computer program for altering a shape of a multi-dimensional artwork. The present invention also relates to a method and apparatus for constructing an artwork. The invention also relates to a computer program for constructing an artwork. The invention further relates to an artwork produced by the method of constructing an artwork.
Background of Invention Electronic photo-albums have become increasingly popular in recent times. These electronic photo-albums typically take the form of a collection of images stored using a non-volatile memory device, from which a user can retrieve the image for displaying on a oooo display device. Usually, the images are gathered in digital form, and may, for example, be 15 scanned by an electronic scanner, down-loaded from the Internet or produced by a digital S" camera. A collection of these images can be stored electronically to create an electronic S"photo-album, analogous to the traditional family photo-album, which uses photographic prints.
Presently, electronic photo-albums take the form of a collection of images, a user of 20 the album being able to associate a caption or brief description with each image. For 0example, a user can collect a series of family photographs of a wedding, whether from a 0 digital video or still camera, and associate a caption such as a date and a brief description of the event with each image. If desired, an electronic photo-album can be reproduced from the memory device by a high quality output device, such as a high-resolution colour printer, to produce an album substantially similar to a conventional photo-album.
-2- An example of such a photo-album software application is Frameit Version manufactured by DogByte Development, 612 Moulton Avenue, Suite 7, Los Angeles, California, This software application has the ability to provide frames or borders for electronic photographs. These frames have predefined proportions and a slot into which the electronic photograph is fitted. However these predefined proportions of the frame are fixed and the photograph must be expanded, shrunk or cropped to fit into the slot. There is a need for a more flexible method in which images may be framed or bordered.
Summary of Invention It is an object of the present invention to ameliorate one or more disadvantages of the prior art.
According to one aspect of the invention, there is provided a method of altering a shape of a multi-dimensional artwork, wherein the artwork is defined by a tree structure •go• having leaf nodes comprising objects and parent nodes comprising graphical operators, S: 15 and wherein each node has fields adapted for storing values indicative of one or more associated alteration rules applicable to that node or its sub-tree, the method comprising the following steps: selecting a target area for fitting the artwork; traversing one or more of the said nodes; and applying, for each one of the traversed nodes, one or more said 0 alteration rules associated thereto to each point within the object comprising the traversed S: 20 node to re-position said each point in one or more directions with respect to the target area, wherein at least one said object has at least one said alteration rule which is different from at least one said alteration rule of another said object, whereby altering the shape of the artwork in one or more directions.
According to another aspect of the invention, there is provided a method of altering 2 the shape of an artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and wherein nodes comprising objects and parent nodes comprising graphical operators, and wherein -3each node has fields adapted for storing values indicative of horizontal and vertical alteration rules applicable to that node or its sub-tree and a field for storing a value indicative of whether or not a mapping restriction is applicable to that node and its subtree if any, the method comprising the following steps:selecting a target area for fitting the artwork; traversing one or more of the said nodes; applying, for each of the traversed nodes that has a value indicating a mapping restriction, an affine transformation to the sub-tree of that node; applying, for each one of the traversed nodes that is a leaf node and has a value indicating no mapping restriction, a said horizontal alteration rule to each point within the object comprising the leaf node to horizontally re-position said each point with respect to the target area; applying, for each one of the traversed nodes that is a leaf node and has a value indicating no mapping restriction, a said vertical alteration rule to each point within the object comprising the leaf node to vertically re-position said each point with respect to the target area; and wherein at least one said object has at least one -o said horizontal or vertical alteration rule which is different from at least one said S. 15 horizontal or vertical alteration rule respectively of another said object, whereby altering the shape of the artwork.
According to still another aspect of the invention, there is provided a method of constructing an artwork, wherein the artwork is defined by a tree structure having leaf ooo nodes comprising objects and parent nodes comprising graphical operators, and, the 20 method comprises the following steps: attaching one or more fields to each node for designating horizontal and vertical alteration rules applicable to that node or its sub-tree; o and adding values to said one or more fields indicative of a said horizontal and vertical alteration, wherein the artwork is adapted to be altered to fit a selected target area in accordance with said alteration rules.
SAccording to still another aspect of the invention, there is provided apparatus for altering a shape of a multi-dimensional artwork, wherein the artwork is defined by a tree -4structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and wherein each node has fields adapted for storing values indicative of one or more associated alteration rules applicable to that node or its sub-tree, the apparatus comprising: means for selecting a target area for fitting the artwork; means for traversing one or more of the said nodes; and means for applying, for each one of the traversed nodes, one or more said alteration rules associated thereto to each point within the object comprising the traversed node to re-position said each point in one or more directions with respect to the target area, wherein at least one said object has at least one said alteration rule which is different from at least one said alteration rule of another said object, whereby altering the shape of the artwork in one or more directions.
According to still another aspect of the invention, there is provided apparatus for altering the shape of an artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and o* o wherein each node has fields adapted for storing values indicative of horizontal and S 15 vertical alteration rules applicable to that node or its sub-tree and a field for storing a value indicative of whether or not a mapping restriction is applicable to that node and its S• sub-tree if any, the apparatus comprising: means for selecting a target area for fitting the artwork; means for traversing one or more of the said nodes; means for applying, for each 0090 of the traversed nodes that has a value indicating a mapping restriction, an affine 0 20 transformation to the sub-tree of that node; means for applying, for each one of the *090 •traversed nodes that is a leaf node and has a value indicating no mapping restriction, a said horizontal alteration rule to each point within the object comprising the leaf node to horizontally re-position said each point with respect to the target area; means for applying, for each one of the traversed nodes that is a leaf node and has a value indicating no mapping restriction, a said vertical alteration rule to each point within the object comprising the leaf node to vertically re-position said each point with respect to the target area; and wherein at least one said object has at least one said horizontal or vertical alteration rule which is different from at least one said horizontal or vertical alteration rule respectively of another said object, whereby altering the shape of the artwork.
According to still another aspect of the invention, there is provided apparatus for constructing an artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and the apparatus comprises: means for attaching one or more fields to each node for designating horizontal and vertical alteration rules applicable to that node or its sub-tree; and means for adding values to said one or more fields indicative of a said horizontal and vertical alteration, wherein the artwork is adapted to be altered to fit a selected target area in accordance with said alteration rules.
According to still another aspect of the invention, there is provided a computer program for altering a shape of a multi-dimensional artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes oooo 15 comprising graphical operators, and wherein each node has fields adapted for storing values indicative of one or more associated alteration rules applicable to that node or its o* sub-tree, the computer program comprising: means for selecting a target area for fitting the artwork; means for traversing one or more of the said nodes; and means for applying, for each one of the traversed nodes, one or more said alteration rules associated thereto to oo 20 each point within the object comprising the traversed node to re-position said each point in one or more directions with respect to the target area, wherein at least one said object S•has at least one said alteration rule which is different from at least one said alteration rule of another said object, whereby altering the shape of the artwork in one or more directions.
According to still another aspect of the invention, there is provided a computer 9 .J program for altering the shape of an artwork, wherein the artwork is defined by a tree 0.
-6structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and wherein each node has fields adapted for storing values indicative of horizontal and vertical alteration rules applicable to that node or its sub-tree and a field for storing a value indicative of whether or not a mapping restriction is applicable to that node and its sub-tree if any, the computer program comprising: means for selecting a target area for fitting the artwork; means for traversing one or more of the said nodes; means for applying, for each of the traversed nodes that has a value indicating a mapping restriction, an affine transformation to the sub-tree of that node; means for applying, for each one of the traversed nodes that is a leaf node and has a value indicating no mapping restriction, a said horizontal alteration rule to each point within the object comprising the leaf node to horizontally re-position said each point with respect to the target area; means for applying, for each one of the traversed nodes that is a leaf node and has a value indicating no mapping restriction, a said vertical alteration rule to each point within the object comprising the leaf node to vertically re-position said each point with respect to the 15 target area; and wherein at least one said object has at least one said horizontal or vertical alteration rule which is different from at least one said horizontal or vertical :alteration rule respectively of another said object, whereby altering the shape of the artwork.
o•* o •coo According to still another aspect of the invention, there is provided a computer program for constructing an artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and the computer program comprises: means for attaching one or more fields to each node for designating horizontal and vertical alteration rules applicable to that node or its sub-tree; and means for adding values to said one or more fields indicative of a said horizontal and vertical alteration, wherein the artwork is adapted to be altered to fit a selected target area in accordance with said alteration rules.
-8- Brief Description of the Drawings Embodiments of the invention are described with reference to the drawings, in which: Figs. 1A and 1B show an example of a simple artwork and an associated composition tree in accordance with the preferred embodiment; Fig. 2 shows an example of a source rectangle and a target rectangle in accordance with the preferred embodiment; Figs. 3A and 3B show a flow diagram of a method of altering the shape of an artwork in accordance with the preferred embodiment; S 10 Figs. 4A and 4B explains the operation of step 306 of Fig. 3A in more detail; Figs. 5A, 5B and 5C illustrate examples of mapping restricted nodes in accordance with the preferred embodiment; .Figs. 6A, 6B and 6C show examples of how points with different vertical S. coordinates would be moved during altering if a stretch rule is used, in accordance with 15 the preferred embodiment; Figs. 7A and 7B shows an example of how a preserve outer rule re-positions points when the target rectangle is larger than the source rectangle, in accordance with the preferred embodiment; Figs. 8A and 8B shows an example how the preserve outer rule re-positions points when the target rectangle is smaller than the source rectangle, in accordance with the preferred embodiment; Figs. 9A and 9B shows an example of the effect of the preserve inner rule when the target rectangle is larger than the source rectangle, in accordance with the preferred embodiment; 503089.doc CFP 13 1 AU Photorec03 I:ELEC\CISRA\PHOTREC\PHREC03\503089.doc 9- Figs. 10A and 10B shows an example of the effect of the preserve inner rule when the target rectangle is smaller than the source rectangle, in accordance with the preferred embodiment; Figs. I 1A and 1 1B shows an example of the effect of the preserve top rule when the target rectangle is larger than the source rectangle, in accordance with the preferred embodiment; Figs 12A and 12B shows an example of the effect of the preserve top rule when the target rectangle is smaller than the source rectangle, in accordance with the preferred embodiment; and 10 Fig. 13 is a block diagram of a general-purpose computer for implementing the preferred method.
Detailed Description S ,Where reference is made in any one or more of the accompanying drawings to steps and/or features, which have the same reference numerals, those steps and/or features have for the purposes of this description the same function(s) or operation(s), unless the contrary intention appears.
":"Overview of the Preferred Method The principles of the preferred method have general applicability to a method of altering the shape of an artwork, such as a border or frame. However for ease of explanation, the steps of the preferred method are described with reference to an electronic photo-album program. However it is not intended for the method to be limited to such an application. The method may also have application in many graphics computer processing applications.
The artwork of the preferred method itself is constructed from a number of components, which components have associated alteration rules. These alteration rules 503089.doc CFP 13 1 AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc indicate how the artwork is to be deformed when the artwork is altered in accordance with the preferred method.
The preferred method has the advantage of a flexible method of reshaping artwork such as frames and borders to fit images or regions of various shapes. More importantly, the preferred method enables a greater flexibility in altering the artwork:. For instance, the alteration rules may indicate that a frame component should be stretched, or that points defining the component's shape and position be preserved relative to the artwork's centre, its outside edges or a particular edge.
The inputs to the preferred method are the original artwork and a rectangular target region. The artwork is object based and is defined by a tree structure wherein preferably various nodes in the tree have one or more fields storing values. Preferably, the nodes have at least the following fields: source_rectangle; horizontal_rule; vertical_rule: and mappingrestriction. The source_rectangle field indicates whether or not the bounding box associated with that node is the source rectangle. The fields horizontal rule and 15 vertical rule store values which designate the type of alteration rules applicable at that .node and its sub-nodes. The field mapping_restriction indicates whether a mapping restriction is applicable to that node and its sub-nodes and the type of mapping restriction.
Any known object-based artwork software application, which can be adapted to attach •*one or more fields and associated values to the various nodes, is suitable for constructing o: 20 such an artwork. These alteration rules operate on the artwork in a manner, which will be described in the section herein entitled "Alteration Rules". In addition, further details concerning the source rectangle and mapping restriction are described below.
Before proceeding with a description of the embodiments, a brief discussion of the structure of the artwork, source and target rectangles is given.
SThe artwork is described by a tree structure wherein the artist marks various nodes in the tree with alteration rules and it contains a description of a rectangular region in -11which the artwork is considered to fit. This rectangle is the source rectangle. The input rectangle describes the region that the artwork is required to fit following the execution of the altering method. This is the target rectangle.
The artwork is object-based (rather than pixel-based). The preferred method uses artwork containing three fundamental object types images, text blocks and bezier spline illustrations and a number of ways of compositing objects together. The composition of the artwork objects forms a tree, the leaves of which are objects of the fundamental types, and their parent nodes are compositing operators.
Each of the fundamental object types has associated with it a number of points describing its position, shape and size. It is the positions of these points that change during the alteration of the artwork. In the preferred method, both images and text blocks are altered by moving their four corner points, while altering illustration objects involves moving their bezier spline control points. Further to this, text and illustration objects may contain extra points describing colour blend or other information, and these also are moved during alteration. Preferably, when the artwork is altered, the only changes that occur in the tree are to the positional and shape information in the leaf objects.
o• Figs. 1A and 1B show a simple example of such an artwork and an associated composition tree. The associated composition tree consists of the objects CIRCLE, SQUARE, RECTANGLE and ELLIPSE and the two composition graphical operators oooo 'CUTOUT' and 'OVER'. During the traversal of the tree, the artwork is composited in the o o• following fashion (CIRCLE CUTOUT ((SQUARE OVER (RECTANGLE OVER
ELLIPSE))).
Turning now to Fig. 2, there is shown a source rectangle 20 and the target rectangle 22.
The source rectangle 20 is the region in which the original artwork is considered to fit prior to the preferred altering method. This is a characteristic of the artwork. In the preferred method, any node in the artwork may be marked with a flag as defining the 12source rectangle in which case the bounding rectangle for that node is used as the source rectangle. This enables the artwork creator to define some artwork components to be outside the source region, which are not affected by the result of altering when some alteration rules are applied. Alternatively, the source rectangle can be the smallest rectangle that contains the entire artwork (that is, the bounding rectangle). A further alternative is to input the size of the source rectangle to the preferred method. The target rectangle provided to the preferred method is generally the region that the artwork is required to fit following alteration. A user preferably selects the size of the target o rectangle.
a 10 Figs. 3A and 3B show a flow diagram of the preferred method of altering the shape a.
of an artwork. The preferred method is proposed to interface with an electronic photoalbum software on a general purpose computer. The electronic photo-album software ••co does not form part of the invention and will not be described in any detail.
The preferred method commences at 300 where it is called by the electronic photoo 15 album application when a user selects or the application itself selects an artwork to be •altered and the size of the target rectangle.
*se.
In the next step 302, the selected artwork and size of the target rectangle are input and the processing continues at decision block 304. In the decision block 304, a check is made whether the artwork defines a frame that contains a photograph. If the decision block returns false then the method continues with step 308. On the other hand, if the decision block returns true (yes), the process continues to step 306 where the target rectangle is transformed.
The alteration rules as described in the section herein entitled "Alteration Rules" require the target rectangle to define the intended region for the entire artwork rather than just a photographic component. Consequently, when a target rectangle is selected for the photograph only, this target rectangle must be converted into a corresponding target 503089.doc UP 13 1 AU PhotorecW3 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc 13rectangle for the entire artwork. Thus, the target rectangle for the entire artwork is specified indirectly. This conversion is achieved in step 306 by determining the bounding rectangle of the photographic node of the original artwork and computing an affine transformation matrix, which transforms the positions of the photographic node's corer points in the source rectangle onto the corer points of the target photo. The step 306 then applies this affine transformation to the comers of the source rectangle to obtain the comers of the target rectangle.
Figs. 4A and 4B illustrate the operations of step 306 of Fig. 3A. Figs. 4A and 4B s "show how the target rectangle for the photograph is related to the target rectangle for the 10 artwork. The method step 306 retrieves the bounding rectangle for the node marked as the photo node, then works out an affine transformation matrix that transforms this bounding rectangle to the target rectangle for the photograph. In the examples shown in Figs. 4A 4B, the transformation would be a stretch in the y-direction followed by a rotation. Step 306 then applies this transformation to the corer points of the source rectangle to 15 compute the corer points of the target rectangle for the artwork.
The step 306 preferably utilises the following affine transformation matrix for the transformation (x yl) to (X 2
Y
2 x21 a b tx x, S= c d t, y, 0 1 0 1 1 Step 306 of the method firstly computes the matrix transforming the photographic image component of the source rectangle to the photographic image component of the target rectangle. The step 306 does this by substituting a corer of the photo of the source rectangle for (xi, yi) above and the corresponding point on the target rectangle for (x 2 Y2) to get two equations for the unknowns in the matrix. The method undertakes this substitution for three of the four comers of the photographic rectangles to obtain a set of 503089.doc CFP1310AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc 14six equations which can be solved for a, b, c, d, tx and ty. Step 306 of the preferred method then applies the computed transformation matrix to the corner points describing the source rectangle for the entire artwork to compute the rectangle intended as the target region for the entire artwork. After completion of step 306, the processing continues to step 308 of the preferred method.
In step 308, the method applies a scale factor to the source rectangle and to the entire source artwork so that the scaled source rectangle has the same surface area as the target rectangle. This is done so that the alteration rules of the preferred method achieve consistent results when used to fit artwork to target rectangles of the same aspect ratio but 10 different sizes. Where the surface area of the source rectangle prior to scaling is SA and the surface area of the target rectangle is TA, applying the following transformation to 9 points in the source rectangle and the source artwork achieves the correct scaling: [~]=[OAsA Y1 L IA I x The descriptions of the alteration rules that follow and the calculations for moving 15 points by each rule assume that both the source and target rectangles have no inherent rotation. That is, their sides are parallel to the x and y axes and the bottom edge of each rectangle is horizontal and lower than the top edge. However, the input rectangles may in some instances have a rotation. Steps 312, 316 and 350 of the preferred method compensate for any such rotation.
Thus after completion of step 308, the processing continues at decision block 310 where a check is made whether the source rectangle is rotated with respect to the horizontal. If the source rectangle is not rotated, the decision block 310 returns false (no) and the processing continues to decision block 314. On the other hand, if the source rectangle has a rotation, say of 0 degrees, then the decision block 310 returns true (yes) 503089.doc CFP 1310 OAU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc and the processing continues at step 312. In step 312, the source rectangle and the artwork are rotated by -0 degrees. Afterwards, the processing continues at decision block 314. In this way, any inherently rotated source rectangle is rotated to the horizontal before the alteration rules are applied.
In decision block 314, a check is made whether the target rectangle is rotated with respect to the horizontal If the decision block returns false then the processing continues at step 318. On the other hand, if the target rectangle has a rotation, say of a degrees, then the decision block 314 returns true (yes) and the processing continues at step 316. In step 316, the target rectangle is rotated by -a degrees. In this way, if the i" 10 target rectangle is inherently rotated by a degrees with respect to the horizontal, then the target rectangle is rotated by a degrees before the alteration rules are applied.
The afore mentioned rotation steps 312 and 316 can be achieved using the following transformation (where (xl, yl) are the initial point coordinates and (x 2 Y2) are the coordinates after rotation, and 0 is the angle by which to rotate): x2 rcos -sin0 8 X *Y2J L inO cosO Ly, After the completion of the rotation steps, the processing continues at step 318.
The preferred method traverses the artwork tree from its root node to each node.
The method during that traversal processes each traversed node in turn. The preferred method achieves this by retrieving the root node in step 318 and recursively retrieving the next nodes in steps 342 and 338. If a currently traversed node does not have a mapping restriction, the method will recursively traverse to that node's children 342 until a leaf node is reached. The preferred method will then process that leaf node in steps 344 and 346. After which, the preferred method obtains the next untraversed node, if any, in the recursion. If the currently traversed node has a mapping restriction, all the nodes in its 503089.doc CFP 1310AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc 16sub-tree are transformed at once by a single matrix 334 so the traversal does not need to recurse through that sub-tree 338. After the completion of steps 338 and 342, the method returns to decision block 320 for the processing of the current traversed node.
In decision block 320, a check is made whether the currently traversed node of the artwork tree is marked with a mapping restriction. If the decision block 320 returns false (no) the processing continues to decision block 340. On the other hand, if the decision block 320 returns true (yes) the processing continues at step 322.
In decision block 340, a check is made whether the currently traversed node of the artwork tree is a leaf node. If the decision block 340 returns false (no) then the 10 processing continues at step 342, where the next child node in the artwork tree is recursively retrieved. After completion of step 342, the method returns to decision block 320 for further processing. On the other hand, if the decision block 340 returns true (yes), *then the processing continues at step 344 where horizontal alteration rules are applied.
After completion of step 344, the processing continues at step 346 where vertical 15 alteration rules are applied. After completion of the vertical altering step 346, the processing continues at decision block 336. The operation of the vertical and horizontal altering steps 344 and 346 are described in the section herein entitled "Alteration Rules".
As mentioned previously, if the decision block 320 determines that the currently traversed node is marked with a mapping restriction, then the processing continues to step 322. In step 322, the corner points of the currently traversed node's bounding rectangle are retrieved and passed to step 324. In step 324, the horizontal alteration rules associated with the currently traversed node are applied to the comers of the bounding rectangle to determine new horizontal positions for those corners in the target rectangle. Similarly, in step 326 the vertical alteration rules associated with the currently traversed node are applied to the bounding rectangle to determine the new vertical positions for those corners in the target rectangle.
503089.doc CFP 13 1 AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHRECO3\503089.doc 17- After step 326, the processing continues at decision block 328, where a check is made whether the aspect ratio of the currently traversed node is to be maintained. If the decision block 328 returns false (no) the method continues at step 332. Otherwise, if the decision block 328 returns true (yes), the method continues at step 330, where the new positions of the corners of the bounding rectangle of the target rectangle are altered so that the aspect ratio is kept. After the completion of step 330, the method continues to step 332.
In step 332, an affine transformation matrix for the corners of the bounding rectangle is determined. This matrix is determined by using the previous and new positions of the corners of the bounding rectangle of the currently traversed node. This matrix may be determined in a similar manner as the matrix in step 306. After step 332, the processing continues at step 334. In step 334, each point of each child node of the currently traversed node is re-positioned into the target rectangle by applying the current transformation to each point.
15 Thus, when a node in the artwork tree is marked with a mapping restriction, all nodes in the sub-tree of that node undergo a single transformation in order to re-position them in the target rectangle. Furthermore, the mapping restriction can also require that the aspect ratio of the node should be maintained. This can be achieved by indicating in the mapping restriction field to each node the type of restriction, for example a mark indicating that there is a mapping restriction and that the aspect ratio is to be maintained.
The mapping restriction mark can also define whether the aspect ratio is to be maintained by either expanding the region to which the node's corner points are repositioned or by shrinking that region. That is, if re-positioning the corner points of the node onto the target rectangle causes the aspect ratio of the node to change, the target rectangle positions of those points are adjusted before the aforementioned transformation matrix is computed (step 332) in order to keep the same aspect ratio. For example, 503089.doc CFP 13 1 AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHR-EC03\503089.doc 18consider that the corners of a square node are re-positioned to become a rectangle whose width is twice its height. If the aspect ratio of the node is to be maintained by expanding its region in the target rectangle, the re-positioned points will be moved so the rectangle's height is doubled. If the aspect ratio was to be maintained by shrinking the region, the points will be moved so the rectangle's width is halved. The exact changes made to the repositioned corner points depend on the node's alteration rule for that dimension. If the rule is stretch, preserve outer or preserve inner, the centre-point of the target region is unchanged. If the rule is one of the other preservation rules (for example, preserve top) then the corresponding edge of the region is not moved (so the top edge of the altered 10 region does not change).
Figs. 5A, 5B, and 5C illustrate examples of a mapping restricted node. Fig shows a node, which consists of three shapes, before the node is passed to steps 322 to 334. The dotted line surrounding the three shapes in Fig. 5A shows the bounding rectangle of the node, whose corners are marked 1,2,3, and 4. Fig. 5B shows the same node after it has been transformed by step 334. In the latter example, the mapping restriction of the node indicates that the aspect ratio is not to be maintained. Fig. shows the same node after it has been transformed by step 334. However in this example, the mapping restriction of the node indicates that its aspect ratio is to be maintained. If the node's aspect ratio is to be maintained, either the height could be decreased or its width increased. Fig. 5C shows the effect of increasing the node's width to maintain the aspect ratio. This is achieved by moving points 1,2,3, and 4 to the positions shown before computing the affine transformation 332 that is applied 334 to the sub-tree.
After the completion of step 334, the method continues at decision block 336. In decision block 336, a check is made whether there are any more nodes to be traversed in the artwork tree. If the decision block 336 returns true (yes), the processing continues at step 338, where the next node in the recursion is retrieved. After step 338, the processing 503089.doc CFP 13 1 AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc 19returns to decision block 320. On the other hand, if the decision block 336 returns false namely there are no more nodes, the processing continues at decision block 348.
The decision block 348 checks whether the target rectangle, that was initially input, was rotated. If the decision block returns true (yes), the processing continues at step 350.
In step 350, the altered artwork is rotated by the same amount as the initial target rectangle but in the opposite direction. As such, a non-horizontal target rectangle may be initially input, rotated to the horizontal 316, then the artwork transformed into the target rectangle 318-338, and then the artwork is reverse rotated 350. After step 350, the processing continues at step 352. If the decision block 348, returns false the 10 processing also continues at step 352.
The method terminates at step 352 and returns the altered artwork to the electronic photo-album application. The altered artwork together with any associated photographs may then be output to a display monitor, or a disk storage, or printed on a printer as the user requests.
Alteration Rules An alteration rule describes how the preferred method changes the position of the points in objects that the rule concerns. Each object has separate rules for horizontal and vertical altering, so the horizontal and vertical coordinates of points in the object may be subjected to different rules. The altering therefore occurs independently in the two dimensions. These alteration rules may be attached to any node in a composition tree. As mentioned previously, the nodes have fields designating the type of alteration rules. If attached to a composition node rather than a leaf node, the attached alteration rule will be applicable to the sub-tree of that node except any sub-nodes (and the sub-trees of those nodes) with a different rule for altering in the same dimension. For example, the associated alteration rule of a leaf node in its x-direction may be the alteration rule attached to its parent node, whereas the associated alteration rule in its y-direction may be 503089.doc CFP 1310 OAU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc the alteration rule attached to its grandparent node. The preferred method thus applies to a node the relevant associated alteration rule. In a further embodiment, it may be desirable to apply one two-dimensional alteration rule instead of two independent one-dimensional alteration rules.
The way in which a point is moved by an alteration rule depends on its position relative to the source rectangle and how the aspect ratio of that rectangular region relates to the aspect ratio of the target rectangle. The alteration rules assume that the sides of both the source rectangle and the target rectangle are parallel to the horizontal and vertical axes.
10 When a point is being moved during altering, its horizontal and vertical coordinates are changed independently, according to the horizontal and vertical rules for the object containing the point. The discussion and example diagrams for each rule show the effect of that rule on the vertical positions of the points; the horizontal positions of the points are not changed in the examples but the principles are exactly the same as for vertical positions. The alteration rules are described in the following sections.
Mathematical Definitions for Examples: Sh height of source rectangle in mm Th height of target rectangle in mm Ys y-coordinate of points along the bottom edge of the source rectangle YT y-coordinate of points along the bottom edge of the target rectangle Note that in the examples, points at the top of a diagram have a greater y-coordinate than points at the bottom.
Stretch This rule effectively scales point positions relative to the source rectangle so that they have the same positions relative to the target rectangle. The Figs. 6A, 6B and 6C 503089.doc CFP 13 1 AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHRECO3\503089.doc -21show examples of how points with different vertical coordinates would be moved during altering if the stretch rule is used. Fig. 6A shows a source rectangle with the initial positions of points P1..P5. Fig. 6B shows a target rectangle, which has greater height than the source rectangle, and shows the positions of P1..P5 after altering. Fig. 6C shows another a target rectangle, which has lesser height than the source rectangle, showing the positions of P..P5 after altering.
The stretch rule in the vertical dimension can be implemented by applying the scale factor between the target and source rectangle heights to the y-coordinates of the points relative to the bottom of each rectangle. For example, considering the positions of 10 the points being moved relative to the bottom left comer of the rectangles, then points with y-coordinate yp in the source rectangle will be moved to have y-coordinate yT (yp ys) x Th Sh in the target rectangle.
Preserve Outer The preserve outer rule maintains the positions of points near the outer edges of the source rectangle (that is, near the top and bottom of the source rectangle for vertical altering). This effectively divides the source and target rectangles into bands, as shown in the figures.
Figs. 7A and 7B shows an example of how the preserve outer rule re-positions points when the target rectangle is larger than the source rectangle. Fig. 7A shows a source rectangle with initial points Fig. 7B shows a target rectangle with points after alteration. Points in the top half of the source rectangle (P1..P3) are repositioned, without being moved relative to one another, in the top Sh/2 mm of the target rectangle. Points in the bottom half of the source rectangle (P4..P6) are re-positioned, without being moved relative to one another, in the bottom Sh/2 mm of the target rectangle. No points in the source artwork are re-positioned to the middle band of the 503089.doc CFP 13 1 AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc -22target rectangle. Points above or below the source rectangle are re-positioned the same distance above or below the target rectangle.
Figs. 8A and 8B shows an example of how the preserve outer rule re-positions points when the target rectangle is smaller than the source rectangle. Fig. 8A shows a source rectangle with initial points Fig. 8B shows a target rectangle with points after alteration. Points in the top Th/2 mm of the source rectangle (P2 and P3) are re-positioned, without being moved relative to one another, in the top half of the target rectangle. Points in the bottom Th/2 mm of the source rectangle (P5 and P6) are repositioned, without being moved relative to one another, in the bottom half of the target 10 rectangle. Points in the middle band of the source rectangle (P1, P4 and P7) are repositioned onto the centre line of the target rectangle. Points above or below the source rectangle are re-positioned the same distance above or below the target rectangle.
Because the points in the bands of the artwork that are 'preserved' (that is, the top and bottom bands in this case) do not move relative to one another, the band is not 15 deformed by altering. Where the target rectangle is smaller than the source rectangle, artwork in the middle band of the source rectangle is 'folded' onto the centre line of the target rectangle.
Implementation of the preserve outer rule should compare the sizes of the source and target rectangle, since the bands into which the rectangles are effectively divided are dependent on which is larger. If the source and target rectangles are the same size then all points are simply translated by a constant amount. That is, points with y-coordinate yp in the source rectangle will be moved to have y-coordinate yp yT ys in the target rectangle.
Under the preserve outer rule, when the target rectangle is larger than the source rectangle, points with y-coordinate yp in the source rectangle: if yp ys Sh/2, will map to yT Th (ys Sh yp) in the target rectangle; 503089.doc CFP 13 1 AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089doc ifyp ys Sh/ 2 will map to y- yp ys.
Under the preserve outer rule, when the target rectangle is larger than the source rectangle, points with y-coordinate yp in the source rectangle: ifyp ys Sh Th/2, will map to yT Th (YS Sh yp) in the target rectangle; ifys Sh Th/2 yp ys Th 2 will map to yT Th /2; ifyp ys Th 2 ,will map to yr yp ys.
Preserve Inner The preserve inner rule maintains the positions of points around the middle of the artwork. Conceptually it is the opposite of preserve outer. It similarly has the effect of 10 dividing the source and target rectangles into bands, as shown in the Figs. 9A and 9B.
Figs. 9A and 9B shows an example of the effect of the preserve inner rule when the target rectangle is larger than the source rectangle. Fig. 9A shows a source rectangle with initial points Fig. 9B shows a target rectangle with points after alteration. In this case, the y-coordinates of the source artwork are re-positioned, without 15 moving relative to one another, so that the entire source rectangle region is re-positioned onto a band of height Sh centred in the target rectangle. Points above or below the source rectangle are repositioned the same distance above or below that band in the target rectangle. Therefore when the target rectangle is larger than the source rectangle, the preserve inner rule causes no deformation of the artwork (in the vertical direction in this case).
Figs. 10A and 10B shows an example of the effect of the preserve inner rule when the target rectangle is smaller than the source rectangle. Fig. 10A shows a source rectangle with initial points Fig. 10B shows a target rectangle with points after alteration. Points in the middle band of the source rectangle which is of height Th and is centred in the source rectangle, are re-positioned onto the target rectangle region without moving relative to one another. Points in the upper (P1 and P2) 503089.doc CFP 13 1 AU Photorec03 I:\ELEC\CLSRA\PHOTREC\PHREC03\503089.doc 24and lower (P6 and P7) bands of the source rectangle, which are of height (Sh Th)/2, are re-positioned onto the top and bottom edges of the target rectangle respectively. Points above and below the source rectangle are moved onto the top and bottom edges of the target rectangle respectively. That is, the artwork above and below the middle band of the source rectangle is folded onto the edges of the target rectangle.
Like the preserve outer rule, implementation of the preserve inner rule should compare the sizes of the source and target rectangles. As before, if the two rectangles are of the same size, points with y-coordinate yp in the source rectangle will be moved to yp YT ys in the target rectangle.
10 When the target rectangle is larger than the source rectangle, under the preserve
S
S. inner rule points with y-coordinate yp in the source rectangle will map to yT Th/2 yp (ys Sh in the target rectangle.
Under the preserve inner rule, when the target rectangle is smaller than the source rectangle, points with y-coordinate yp in the source rectangle: 15 ifyp ys Sh/2 Th/2, will map to YT Th in the target rectangle; ifys Sh/2 Th/2 yp ys Sh/2 Th/ 2 will map to yT Th/2 yp (ys Sh ifyp Ys Sh/2 Th/2, will map to yT.
Preserve Left, Preserve Right, Preserve Top, Preserve Bottom The other 'preservation' alteration rules, preserve left, preserve right, preserve top and preserve bottom, create bands in the artwork in the same manner as preserve outer and preserve inner. Figs. 11A and 11B shows an example of the preserve top rule being applied. The other preservation rules operate similarly.
Figs. 11A and 1 1B shows an example of the effect of the preserve top rule when the target rectangle is larger than the source rectangle. Fig. 11A shows a source rectangle with initial points Fig. 11B shows a target rectangle with points after alteration. In this case, the y-coordinates of the source artwork are re-positioned, without 503089.doc CFP 1310AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc moving relative to one another, so that the entire source rectangle region is re-positioned onto a band of height Sh at the top of the target rectangle. Points above and below the source rectangle are repositioned the same distance above or below that band in the target rectangle. Therefore when the target rectangle is larger than the source rectangle, the preserve top rule causes no deformation of the artwork (in the vertical direction in this case).
Figs 12A and 12B shows an example of the effect of the preserve top rule when the target rectangle is smaller than the source rectangle. Fig. 12A shows a source rectangle with initial points Fig. 12B shows a target rectangle with points after 10 alteration. Points in the top Th of the source rectangle are re-positioned, without moving relative to one another, onto the target rectangle. Points above the source rectangle are repositioned the same distance above the target rectangle. Points in the lower band of the source rectangle or below the source rectangle are re-positioned onto the bottom edge of the target rectangle.
S* 15 When the target rectangle is larger than the source rectangle, under the preserve top rule points with y-coordinate yp in the source rectangle will map to yT Th Sh yp Ys.
Under the preserve top rule, when the target rectangle is smaller than the source rectangle, points with y-coordinate yp in the source rectangle: if yp ys Sh Th, will map to yT Th Sh yp YS in the target rectangle; if yp s Sh Th, will map to yr in the target rectangle.
It would be apparent that modifications and/or changes can be made to the flow of the preferred method without departing from the scope and spirit of the invention. For instance, the transformation process 304-306, the scaling process 308, the source rotation process 310-312, and target rotation process 314-316 may be interchanged in any order with each other. Similarly, the horizontal altering step 344 and the vertical altering step 346 are independent and may be interchanged with one another. Furthermore, the flow of 503089.doc CFP1310AU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc 26the preferred method may be implemented either in parallel or sequentially. For instance, the source rotation process 310-312 and target rotation process 314-316 may be initialised at the same time. In addition, the manner in which all the nodes of the artwork tree are traversed is not essential aspect of the preferred method and many alternatives are possible.
Preferred Embodiment of Apparatus(s) The method of altering the shape of an artwork is preferably practiced using a conventional general-purpose computer, such as the one shown in Fig. 13 wherein the processes of Figs. 3A and 3B may be implemented as software executing on the 10 computer. In particular, the steps of method of altering the shape of an artwork are effected by instructions in the software that are carried out by the computer. The software may be divided into two separate parts; one part for carrying out the steps of the altering method; and another part to manage the user interface between the latter and the user.
.•go The software may be stored in a computer readable medium, including the storage "15 devices described below, for example. The software is loaded into the computer from the **computer readable medium, and then executed by the computer. A computer readable medium having such software or computer program recorded on it is a computer program product. The use of the computer program product in the computer preferably effects an advantageous apparatus for altering the shape of an artwork in accordance with the embodiments of the invention.
The computer system 1300 consists of the computer 1302, a video display 1316, and input devices 1318, 1320. In addition, the computer system 1300 can have any of a number of other output devices including line printers, laser printers, plotters, and other reproduction devices connected to the computer 1302. The computer system 1300 can be connected to one or more other computers via a communication interface 1308b using an appropriate communication channel 1330 such as a modem communications path, a 503089.doc CFP 13 1 AU Photorec03 :\ELEC\CISRA\PHOTREC\PHRECo3\503089.doc 27computer network, or the like. The computer network may include a local area network (LAN), a wide area network (WAN), an Intranet, and/or the Internet The computer 1302 itself consists of a central processing unit(s) (simply referred to as a processor hereinafter) 1304, a memory 1306 which may include random access memory (RAM) and read-only memory (ROM), input/output (O10) interfaces 1308a, 1308b 1308c, a video interface 1310, and one or more storage devices generally represented by a block 1312 in Fig. 13. The storage device(s) 1312 can consist of one or more of the following: a floppy disc, a hard disc drive, a magneto-optical disc drive, CDo ROM, magnetic tape or any other of a number of non-volatile storage devices well known 0* 10 to those skilled in the art. Each of the components 1304 to 1312 is typically connected to or more of the other devices via a bus 1314 that in turn can consist of data, address, and control buses.
"The video interface 1310 is connected to the video display 1316 and provides video signals from the computer 1302 for display on the video display 1316. User input to 15 operate the computer 1302 can be provided by one or more input devices 1308b. For example, an operator can use the keyboard 1318 and/or a pointing device such as the mouse 1320 to provide input to the computer 1302.
The system 1300 is simply provided for illustrative purposes and other configurations can be employed without departing from the scope and spirit of the invention. Exemplary computers on which the embodiment can be practiced include IBM-PC/ATs or compatibles, one of the Macintosh (TM) family of PCs, Sun Sparcstation or the like. The foregoing are merely exemplary of the types of computers with which the embodiments of the invention may be practiced. Typically, the processes of the embodiments, described hereinafter, are resident as software or a program recorded on a hard disk drive (generally depicted as block 1312 in Fig. 13) as the computer readable medium, and read and controlled using the processor 1304. Intermediate storage of the 503089.doc CFP 1310 OAU Photorec03 I:\ELEC\CISRA\PHOTREC\PHREC03\503089.doc 28program and pixel data and any data fetched from the network may be accomplished using the semiconductor memory 1306, possibly in concert with the hard disk drive 1312.
In some instances, the program may be supplied to the user encoded on a CD-ROM or a floppy disk (both generally depicted by block 1312), or alternatively could be read by the user from the network via a modem device connected to the computer, for example.
Still further, the software can also be loaded into the computer system 1300 from other computer readable medium including magnetic tape, a ROM or integrated circuit, a magneto-optical disk, a radio or infra-red transmission channel between the computer and o**9 another device, a computer readable card such as a PCMCIA card, and the Internet and ooa.
10 Intranets including email transmissions and information recorded on websites and the like. The foregoing is merely exemplary of relevant computer readable mediums. Other
S
computer readable mediums may be practiced without departing from the scope and spirit oo** of the invention.
5555 The altering method of Figs. 3A and 3B may alternatively be implemented in 15 dedicated hardware such as one or more integrated circuits performing the functions or sub functions of Figs. 3A and 3B. Such dedicated hardware may include graphic S t* processors, digital signal processors, or one or more microprocessors and associated memories.
The foregoing only describes a small number of embodiments of the present invention, however, modifications and/or changes can be made thereto without departing from the scope and spirit of the invention. The present embodiments are, therefore, to be considered in all respects to be illustrative and not restrictive.
In the context of this specification and accompanying aspects of invention, the word "comprising" means "including principally but not necessarily solely". Variations of the word comprising, such as "comprise" and "comprises" have correspondingly varied meanings.
503089.doc CFP 1310AU PhotorecW3 I:\ELEC\CISRA\PHOTREC\PHRECO3\503089.doc

Claims (26)

1. A method of altering a shape of a multi-dimensional artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and wherein each node has fields adapted for storing values indicative of one or more associated alteration rules applicable to that node or its sub-tree, the method comprising the following steps: selecting a target area for fitting the artwork; traversing one or more of the said nodes; and applying, for each one of the traversed nodes, one or more said alteration rules associated thereto to each point within the object comprising the traversed node to re- position said each point in one or more directions with respect to the target area, wherein at least one said object has at least one said alteration rule which is different from at least one said alteration rule of another said object, whereby altering the shape of the artwork oooo S6% 15 in one or more directions. o*
2. A method as claimed in claim 1, wherein said applying step comprises the sub-steps of: ~applying, for each one of the traversed nodes, a said alteration rule associated sees :%so, '0 20 thereto to each point within the object comprising the traversed node to re-position said •oo° each point in a first direction with respect to the target area; and :applying, for each one of the traversed nodes, a said alteration rule associated thereto to each point within the object comprising the traversed node to re-position said each point in a second direction with respect to the target area.
3. A method as claimed in claim 1, wherein said one or more directions comprise a horizontal direction.
4. A method as claimed in claim 1, wherein said one or more directions comprise a vertical direction. A method as claimed in claim 2, wherein said first direction is a horizontal direction and said second direction is a vertical direction. l0 6. A method as claimed in claim 1, wherein said artwork has associated therewith a source area.
7. A method as claimed in claim 6, wherein said source and target areas are each a right-angled parallelogram. oooo
8. A method as claimed in claim 7, wherein one of said alteration rules comprises a stretch rule, which is adapted to be implemented by applying a scale factor equivalent to the ratio between the target and source parallelogram heights to the y-coordinates of said points ofa said traversed object. ooo• o00*
9. A method as claimed in claim 7, wherein one of said alteration rules comprises a :stretch rule, which is adapted to be implemented by applying a scale factor equivalent to the ratio between the target and source parallelogram widths to the x-coordinates of said points of a said traversed object. -31- A method as claimed in claim 7, wherein one of said alteration rules comprises a preserve outer rule which during the re-positioning ensures that points near the outer edges of the source parallelogram are put near the outer edges of the target parallelogram.
11. A method as claimed in claim 7, wherein one of said alteration rules comprises a preserve inner rule which during the re-positioning ensures that points near the middle of the source parallelogram are put near the middle of the target parallelogram.
12. A method as claimed in claim 7, wherein one of said alteration rules comprises a preserve left rule which during the re-positioning ensures that points near the left of the source parallelogram are put near the left of the target parallelogram.
13. A method as claimed in claim 7, wherein one of said alteration rules comprises a preserve right rule which during the re-positioning ensures that points near the right of the o• oo• 15 source parallelogram are put near the right of the target parallelogram.
14. A method as claimed in claim 7, wherein one of said alteration rules comprises a preserve top rule which during the re-positioning ensures that points near the top of the source parallelogram are put near the top of the target parallelogram. 4* 2
15. A method as claimed in claim 7, wherein one of said alteration rules comprises a oooo preserve bottom rule which during the re-positioning ensures that points near the bottom of the source parallelogram are put near the bottom of the target parallelogram. N 5 16. A method as claimed in claim 6, wherein the method, prior to traversal step and after said selection step, further comprises the step of: s Al -32- scaling the artwork so that the source area is equal to the target area.
17. A method as claimed in claim 7, wherein the method, prior to the traversal step and after the selection step, further comprises the steps of: rotating the artwork and associated source parallelogram to the horizontal in the event an axis of the parallelogram is not parallel to the horizontal.
18. A method as claimed in claim 7, wherein the method, prior to the traversal step and after the selection step, further comprises the step of: rotating the target parallelogram from a non-horizontal orientation to a horizontal orientation.
19. A method as claimed in claim 1, wherein the artwork comprises an image component and the method, prior to the traversal step and after the selection step, further 15 comprises the step of: transforming the target parallelogram given by a user for the image to a target S•parallelogram for the entire artwork.
20. A method of altering the shape of an artwork, wherein the artwork is defined by a V0' 9 20 tree structure having leaf nodes comprising objects and parent nodes comprising graphical 0•°0 operators, and wherein each node has fields adapted for storing values indicative of :horizontal and vertical alteration rules applicable to that node or its sub-tree and a field for storing a value indicative of whether or not a mapping restriction is applicable to that node and its sub-tree if any, the method comprising the following steps: Sselecting a target area for fitting the artwork; 0 traversing one or more of the said nodes; I r- -33 applying, for each of the traversed nodes that has a value indicating a mapping restriction, an affine transformation to the sub-tree of that node; applying, for each one of the traversed nodes that is a leaf node and has a value indicating no mapping restriction, a said horizontal alteration rule to each point within the object comprising the leaf node to horizontally re-position said each point with respect to the target area; applying, for each one of the traversed nodes that is a leaf node and has a value indicating no mapping restriction, a said vertical alteration rule to each point within the object comprising the leaf node to vertically re-position said each point with respect to the target area; and wherein at least one said object has at least one said horizontal or vertical alteration rule which is different from at least one said horizontal or vertical alteration rule respectively of another said object, whereby altering the shape of the artwork.
21. A method as claimed in claim 20, wherein said step of applying an affine transformation comprises the steps of: obtaining a bounding box, for each of the traversed nodes that have a mapping restriction; 00 applying horizontal and vertical alteration rules, for each one of the obtained 20 bounding boxes, to the corners of the bounding box to re-position the corners; 0000 computing an affine transformation matrix from the corners and the re-positioned 0000 corners; and 0o applying the computed affine transformation matrix to the sub-tree of the traversed node. -34-
22. A method as claimed in claim 21, wherein said step of applying an affine transformation further comprises, after the application step and prior to the computing step, the following steps: further re-positioning the corners in order to maintain the aspect ratio of the image associated with the traversed node, in the event the traversed node has a field value indicating that the aspect ratio is to be maintained.
23. A method of adaptively altering, or adapting for later alteration, an artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and, the method comprises the following steps: attaching one or more fields to each node for designating horizontal and vertical alteration rules applicable to that node or its sub-tree; and 1adding values to said one or more fields indicative of a said horizontal and vertical 15 alteration, wherein the artwork is adapted to be altered to fit a selected target area in *o accordance with said alteration rules.
24. A method as claimed in claim 23, wherein the method ftirther comprises: 'attaching a field to each node for storing a value indicative of whether or not a 00 mapping restriction is applicable to that node and its sub-tree. 00 0 24. A method as claimed in claim 23, wherein the method further comprises: Sattaching a field to each node for storing a value indicative of whether the boundingot a box of that node is a source rectangle within which the artwork fits. 20 mapping restriction is applicable to that node and its sub-tree. o0 0@ 0 attaching a field to each node for storing a value indicative of whether the bounding box of that node is a source rectangle within which the artwork fits.
26. Apparatus for altering a shape of a multi-dimensional artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and wherein each node has fields adapted for storing values indicative of one or more associated alteration rules applicable to that node or its s sub-tree, the apparatus comprising: means for selecting a target area for fitting the artwork; means for traversing one or more of the said nodes; and means for applying, for each one of the traversed nodes, one or more said alteration rules associated thereto to each point within the object comprising the traversed node to re-position said each point in one or more directions with respect to the target area, wherein at least one said object has at least one said alteration rule which is different from at least one said alteration rule of another said object, whereby altering the shape of the artwork in one or more directions. 0 00 S 15 27. Apparatus for altering the shape of an artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and wherein each node has fields adapted for storing values indicative of horizontal and vertical alteration rules applicable to that node or its sub-tree and a field "for storing a value indicative of whether or not a mapping restriction is applicable to that 4 20 node and its sub-tree if any, the apparatus comprising: means for selecting a target area for fitting the artwork; means for traversing one or more of the said nodes; means for applying, for each of the traversed nodes that has a value indicating a mapping restriction, an affine transformation to the sub-tree of that node; 4means for applying, for each one of the traversed nodes that is a leaf node and has a Svalue indicating no mapping restriction, a said horizontal alteration rule to each point -36- within the object comprising the leaf node to horizontally re-position said each point with respect to the target area; means for applying, for each one of the traversed nodes that is a leaf node and has a value indicating no mapping restriction, a said vertical alteration rule to each point within the object comprising the leaf node to vertically re-position said each point with respect to the target area; and wherein at least one said object has at least one said horizontal or vertical alteration rule which is different from at least one said horizontal or vertical alteration rule respectively of another said object, whereby altering the shape of the artwork.
28. Apparatus for constructing an artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and the apparatus comprises: means for attaching one or more fields to each node for designating horizontal and fe 15 vertical alteration rules applicable to that node or its sub-tree; and o. means for adding values to said one or more fields indicative of a said horizontal 0* S S. 0° S°and vertical alteration, wherein the artwork is adapted to be altered to fit a selected target area in accordance with said alteration rules. 0° *500
29. A computer program for altering a shape of a multi-dimensional artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and wherein each node has fields adapted for storing values indicative of one or more associated alteration rules applicable to that node or its sub-tree, the computer program comprising: means for selecting a target area for fitting the artwork; .AN means for traversing one or more of the said nodes; and 9_ -37- means for applying, for each one of the traversed nodes, one or more said alteration rules associated thereto to each point within the object comprising the traversed node to re-position said each point in one or more directions with respect to the target area, wherein at least one said object has at least one said alteration rule which is different from at least one said alteration rule of another said object, whereby altering the shape of the artwork in one or more directions. A computer program for altering the shape of an artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and wherein each node has fields adapted for storing values indicative of horizontal and vertical alteration rules applicable to that node or its sub-tree and a field for storing a value indicative of whether or not a mapping restriction is applicable to that node and its sub-tree if any, the computer program comprising: means for selecting a target area for fitting the artwork; 15 means for traversing one or more of the said nodes; means for applying, for each of the traversed nodes that has a value indicating a S SO mapping restriction, an affine transformation to the sub-tree of that node; C means for applying, for each one of the traversed nodes that is a leaf node and has a .0 value indicating no mapping restriction, a said horizontal alteration rule to each point OOO• 20 within the object comprising the leaf node to horizontally re-position said each point with o respect to the target area; :means for applying, for each one of the traversed nodes that is a leaf node and has a O value indicating no mapping restriction, a said vertical alteration rule to each point within the object comprising the leaf node to vertically re-position said each point with respect to the target area; and ~L1A'k ;io \0\ ~1TEt -38- wherein at least one said object has at least one said horizontal or vertical alteration rule which is different from at least one said horizontal or vertical alteration rule respectively of another said object, whereby altering the shape of the artwork.
31. A computer program for constructing an artwork, wherein the artwork is defined by a tree structure having leaf nodes comprising objects and parent nodes comprising graphical operators, and the computer program comprises: means for attaching one or more fields to each node for designating horizontal and vertical alteration rules applicable to that node or its sub-tree; and means for adding values to said one or more fields indicative of a said horizontal and vertical alteration, wherein the artwork is adapted to be altered to fit a selected target area in accordance with said alteration rules.
32. An artwork produced by any one of the methods of constructing an artwork as claimed in claims 23, 24, or eeee
33. A method of altering an artwork, the method substantially as described herein with i reference to the accompanying drawings. 20 34. An apparatus for altering an artwork, the apparatus substantially as described herein with reference to the accompanying drawings. ee• ::eeee -39- A computer program for altering an artwork, the computer program substantially as described herein with reference to the accompanying drawings. DATED this nineteenth Day of March, 2002 Canon Information Systems Research Australia Pty. Ltd. Patent Attorneys for the Applicant SPRUSON FERGUSON
AU32580/00A 1999-05-10 2000-05-08 Altering the shape of an artwork Ceased AU748977B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU32580/00A AU748977B2 (en) 1999-05-10 2000-05-08 Altering the shape of an artwork

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
AUPQ0277 1999-05-10
AUPQ0277A AUPQ027799A0 (en) 1999-05-10 1999-05-10 Altering the shape of an artwork
AU32580/00A AU748977B2 (en) 1999-05-10 2000-05-08 Altering the shape of an artwork

Publications (2)

Publication Number Publication Date
AU3258000A AU3258000A (en) 2000-11-16
AU748977B2 true AU748977B2 (en) 2002-06-13

Family

ID=25622163

Family Applications (1)

Application Number Title Priority Date Filing Date
AU32580/00A Ceased AU748977B2 (en) 1999-05-10 2000-05-08 Altering the shape of an artwork

Country Status (1)

Country Link
AU (1) AU748977B2 (en)

Also Published As

Publication number Publication date
AU3258000A (en) 2000-11-16

Similar Documents

Publication Publication Date Title
CA2369664C (en) Animation of three-dimensional characters along a path
US6529206B1 (en) Image processing apparatus and method, and medium therefor
US6434277B1 (en) Image processing apparatus and method, and medium therefor
US7425958B2 (en) Perspective editing tools for 2-D images
US7751652B2 (en) Digital image drop zones and transformation interaction
Zhang et al. A shape‐preserving approach to image resizing
US7477800B2 (en) Method for retargeting images
US6731285B2 (en) System and method for providing high performance image magnification in a web browser
US6934052B2 (en) Method for image layout using energy minimization
US8472753B2 (en) Method and system of adaptive reformatting of digital image
US7446784B2 (en) Displaying a plurality of images in a stack arrangement
US20120110491A1 (en) Method, system and computer product for distribution of data objects
KR101297177B1 (en) The method and system of adaptive reformatting of digital images
Parsania et al. A review: Image interpolation techniques for image scaling
US5917549A (en) Transforming images with different pixel aspect ratios
US8358876B1 (en) System and method for content aware in place translations in images
US7692652B2 (en) Selectively transforming overlapping illustration artwork
Kiess et al. Seam carving with improved edge preservation
US7453474B2 (en) Flexibly resizeable vector graphics
US6642923B1 (en) Altering the shape of an artwork
JP2000182039A (en) Image processing method, image processor and computer readable medium
AU748977B2 (en) Altering the shape of an artwork
US20010001857A1 (en) Method of linking display images
JPH06348837A (en) Dividing/reading/compressing/storage device and synthesizing/outputting device for character and graphic
JP2006260387A (en) Printing data editing device, and printing data editing program

Legal Events

Date Code Title Description
FGA Letters patent sealed or granted (standard patent)