WO1998046013A1 - Apparatus and methods for selectively feathering the matte image of a composite image - Google Patents

Apparatus and methods for selectively feathering the matte image of a composite image Download PDF

Info

Publication number
WO1998046013A1
WO1998046013A1 PCT/US1998/006258 US9806258W WO9846013A1 WO 1998046013 A1 WO1998046013 A1 WO 1998046013A1 US 9806258 W US9806258 W US 9806258W WO 9846013 A1 WO9846013 A1 WO 9846013A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
matte
matte image
box
feathering
Prior art date
Application number
PCT/US1998/006258
Other languages
French (fr)
Inventor
Robert Gonsalves
Chia-Sheng Chou
Original Assignee
Avid Technology, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US08/832,871 external-priority patent/US6137919A/en
Application filed by Avid Technology, Inc. filed Critical Avid Technology, Inc.
Priority to JP54284598A priority Critical patent/JP2001519064A/en
Priority to AU67889/98A priority patent/AU6788998A/en
Priority to EP98913302A priority patent/EP0972403A1/en
Priority to CA002285088A priority patent/CA2285088A1/en
Publication of WO1998046013A1 publication Critical patent/WO1998046013A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2622Signal amplitude transition in the zone between image portions, e.g. soft edges
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration by the use of local operators

Definitions

  • the present invention relates generally to image editing systems, and more particularly, to techniques for feathering images such as for combining two images to produce a composite image.
  • Feathering is a special effect that blurs one or more portions of a video image. Feathering often is used when creating a composite video image from a foreground image and a background image. The graphics editor feathers the border between the images thereby blending the images together to create an effect that the two images are truly one image. For example, a composite image including a foreground image of two people walking and a background image of a desert scene, when feathered, provides an appearance of the two people walking in the desert.
  • the graphics editor generally manipulates a number of images to create a composite image, as illustrated in Fig. 1.
  • the graphics editor takes a foreground image 24 from a first image 20. and a background image 26 from a second image 28. and combines them using a matte image 32 to form a composite image 38.
  • the matte image is a gray scale image used to generate the composite image 38.
  • the light area of the matte image indicates that the area 24 of the first image 20 is to be used as the foreground image, and that the area 22 is to be ignored.
  • the dark area 36 of the matte image indicates that the area 26 of the second image 28 is to be the used as the background image.
  • the graphics editor modifies the matte image so that the graphics workstation generates a feathering effect between the foreground and background images 24 and 26.
  • the border area between the light and dark area of the matte image is filtered. If the matte image uses a gray scale that ranges between 0 and 255, the dark area for the background is 0, the light area for the foreground is 255. and the border area between the dark area and light area has values between 0 and 255 depending on the type of filtering applied to the matte image.
  • the degree of realism in the composite image 38 often depends on the type of filtering. When filtering is poor, the viewer may identify a border 36 between the foreground image and the background image so that the effect of interaction between objects in the two images is diminished or lost.
  • a box filter which is commonly implemented as a finite impulse response filter (FIR).
  • FIR finite impulse response filter
  • a graphics editor filters a matte image through a box filter
  • the graphics editor identifies a border area in the matte image, and applies the box filter to each pixel of the border area.
  • Fig. 2 illustrates a 3x1 box filter function.
  • a presently processed pixel value P a is set equal to an average of pixel values P a. ,, P a and P a+1 .
  • Each pixel value is equally weighted as indicated by the flat slope of the box filtering function.
  • Fig. 3 illustrates a 3x3 box filtering function.
  • the value of the center pixel is set to be the average of the values of the center pixel and the eight surrounding pixels, and the value of each pixel is equally weighted.
  • Gaussian filter Another type of filter is a Gaussian filter which is also commonly implemented as an FIR filter.
  • the Gaussian filter is defined by a Gaussian function, as illustrated in Fig. 4.
  • Gaussian filter weights each pixel according to its proximity to the pixel being processed, i.e., the center pixel.
  • Fig. 4 shows a 3x1 Gaussian filter that weights the pixel P a by more than the adjacent pixels P a _, and P a+1 .
  • a Gaussian filter may be implemented as a two-pass FIR filter: one pass for the horizontal direction, and one pass for the vertical direction.
  • Producing composite images using such filtering techniques has certain drawbacks.
  • using a conventional box filtered matte image to create a feathered composite image typically provides unsatisfactory results, i.e., the composite image does not provide a realistic appearance of interaction between objects in the foreground and background images of the composite image.
  • box filtering provides biased results when the width of the filter is defined by an even number of pixels.
  • a typical 4x1 box filter processes the present pixel, one pixel to the left of the present pixel, and two pixels to the right of the present pixel.
  • This unbalanced use of image data effectively shifts the results by half a pixel, and may be noticeable to the viewer.
  • portions of the video image may appear to jitter due to box filtering using an even width box filter.
  • a composite image generated from a Gaussian filtered matte image generally provides suitable results. That is, the composite image provides a realistic appearance that objects in the foreground image are disposed within the background image.
  • Gaussian filtering results in a substantial amount of processing time since each pixel value is multiplied by a weighted coefficient.
  • a 32x32 Gaussian filter operating on a 132 MHZ Power PC available from Apple Computer of Cupertino, California requires approximately 1.5 minutes to filter completely a typical matte image having a dimension of 720x486 pixels. Accordingly, Gaussian filtering is impractical for feathering image sequences of 100 images or even 1000 images as often desired in the movie and television industries.
  • processing time increases. In particular, each pixel increase in the width of a Gaussian filter adds one multiply operation per pass and one add operation per pass for each pixel to be processed.
  • Using a matte image that has been filtered as described above also results in a composite image which has equal amounts of feathering into the foreground image and feathering out into the background image.
  • a result creates artifacts in the image that are unacceptable. For example, if a picture of a yellow ball is being combined with an image of a grey sky background, feathering in of the grey sky into the yellow ball may produce undesirable results, such as a halo image around the ball (a halo effect is shown in image 38, Fig.
  • One way to avoid such an undesirable result is by changing an outline which circumscribes a processing area of the image and reprocessing the image which results in numerous additional calculations.
  • the outline does not carefully circumscribe the processing area, the resulting image may not be accurate.
  • the resulting image may include overlapping portions or pinched corners.
  • a filtered image also may be adjusted to control the amount of feathering in or out of an image by applying an edge biasing function to the filtered image to create the matte image used to composite the image.
  • a computer-implemented process for feathering a first image and a second image in a composite image uses an original matte image.
  • the matte image may be defined in any manner but is typically defined according to a first and second image.
  • a portion of the original matte image is box filtered horizontally and vertically to generate an intermediate matte image.
  • At least a portion of the intermediate matte image is box filtered horizontally and vertically to generate a processed matte image.
  • An edge biasing function is applied to the processed matte image.
  • a composite image including the first image and the second image is then generated using the box-filtered processed matte image as modified by the edge biasing function.
  • an apparatus feathers a first image and a second image in a composite image using a matte image.
  • the matte image may be defined according to either the first or second image or both, or according to some other image. At least a portion of the original matte image is box filtered horizontally and vertically to generate an intermediate matte image. At least a portion of the intermediate matte image is box-filtered horizontally and vertically to generate a processed matte image. An edge biasing function is applied to the processed matte image. A composite image including the first image and the second image is then generated based on the box-filtered processed matte image to which the edge biasing function has been applied.
  • the original matte image and the intermediate matte image are filtered using one dimensional (i.e., nxl and lxm) box filters.
  • a desired level of edge biasing is selected from a range of edge biasing values and the edge biasing function is generated according to the desired level of edge biasing.
  • defining a desired direction of edge biasing includes specifying a desired level of edge biasing representing proportionally more feathering in or feathering out or specifying equal feathering.
  • values in an edge biasing table are scaling factors representing the desired level of edge biasing.
  • a composite image is produced by the process of selectively feathering a matte image.
  • the matte image is produced by filtering a matte image to produce a feathered matte image.
  • An edge biasing function is applied to the feathered matte image and the resulting selectively feathered matte image is used to produce the composite image.
  • a method in another aspect, includes generating a matte image for use in feathering a composite image.
  • a filtered matte image is received and an edge biasing function is applied to the filtered matte image.
  • edge biasing involves adjusting contrast and brightness features of an edge of a matte image.
  • Fig. 1 is a block diagram of a process for generating a feathered composite image
  • Fig. 2 is a graph of a 3x1 box filter function
  • Fig. 3 is a graph of a 3x3 box filter function
  • Fig. 4 is a graph of a 3x1 Gaussian filter function
  • Fig. 5 is a block diagram of a compositing system for generating a composite image in one embodiment
  • Fig. 6 is a flow diagram of a method according to one embodiment
  • Fig. 7a is a graph of a horizontal filtering function according to one embodiment
  • Fig. 7b is a graph of a vertical filtering function according to one embodiment
  • Fig. 8a is a graph of the result of feathering in edge biasing
  • Fig. 8b is a graph of the result of equal edge biasing
  • Fig. 8c is a graph of the result of feathering out edge biasing.
  • One embodiment is directed to a system for selectively feathering two images in a composite image and will be described in connection with Fig. 5.
  • the operation of the modules of Fig. 5 will be described below in connection with Fig. 6.
  • the system shown in Fig. 5 may be implemented as described below.
  • One module of this system is a graphical user interface 52 which receives user input 50 and which outputs display data 54 to allow the user to input desired characteristics for the image composition.
  • a user may define feathering information 56.
  • the feathering information 56 includes information to determine what size and type filter to apply to the matte image 64 and may be generated from a number of sources other than the graphical user interface, including a data file.
  • Another module is filter 58 which receives feathering information 56 and applies a corresponding filter to matte image 64 to output a feathered matte image 70.
  • An edge biasing module 68 receives edge biasing data 66, which may be defined by user input 50 through the graphical user interface module 52. The edge biasing module 68 also receives the feathered matte image 70 which is output from the filter module 58. The edge biasing module 68 applies an edge biasing function according.to the edge biasing data 66, to the feathered matte image 70 and outputs a selectively feathered matte image 72.
  • Blender module 74 receives the selectively feathered matte image 72, along with image 60 and image 62 to produce a composite image 76.
  • the main unit typically includes a main unit connected to both an output device which displays information to a user and an input device which receives input from a user.
  • the main unit generally includes a processor connected to a memory system via an interconnection mechanism.
  • the input device and output device also are connected to the processor and memory system via the interconnection mechanism.
  • one or more output devices may be connected to the computer system.
  • Example output devices include a cathode ray tube (CRT) display, liquid crystal displays (LCD), printers, communication devices such as a modem, and audio output.
  • CTR cathode ray tube
  • LCD liquid crystal displays
  • Example input devices include a keyboard, keypad, track ball, mouse, pen and tablet, communication device, and data input devices such as sensors. It should be understood the system of Fig. 5 is not limited to the particular input or output devices used in combination with the computer system or to those described herein.
  • the computer system may be a general purpose computer system which is programmable using a high level computer programming language, such as "C".
  • the computer system may also be specially programmed, special purpose hardware for performing functions of one or more of the modules in Fig. 5.
  • the processor is typically a commercially available processor, of which the series x86 processors, available from Intel, and similar devices from AMD and Cyrix, the 680X0 series microprocessors available from Motorola, the PowerPC microprocessor from IBM and the Alpha-series processors from Digital Equipment Corporation, are examples. Many other processors are available.
  • Such a microprocessor executes a program called an operating system, of which WindowsNT, UNIX, DOS, VMS and OS8 are examples, which controls the execution of other computer programs and provides scheduling, debugging, input/output control, accounting, compilation, storage assignment, data management and memory management, and communication control and related services.
  • the processor and operating system define a computer platform for which application programs in high-level programming languages are written.
  • a memory system typically includes a computer readable and writeable nonvolatile recording medium, of which a magnetic disk, a flash memory and tape are examples.
  • the disk may be removable, known as a floppy disk, or permanent, known as a hard drive.
  • a disk has a number of tracks in which signals are stored, typically in binary form, i.e., a form interpreted as a sequence of one and zeros. Such signals may define an application program to be executed by the microprocessor, or information stored on the disk to be processed by the application program.
  • the processor causes data to be read from the nonvolatile recording medium into an integrated circuit memory element, which is typically a volatile, random access memory such as a dynamic random access memory (DRAM) or static memory (SRAM).
  • DRAM dynamic random access memory
  • SRAM static memory
  • the integrated circuit memory element allows for faster access to the information by the processor than does the disk.
  • the processor generally manipulates the data within the integrated circuit memory and then copies the data to the disk when processing is completed.
  • a variety of mechanisms are known for managing data movement between the disk and the integrated circuit memory element, and the invention is not limited thereto. It should also be understood that the system of Fig. 5 is not limited to a particular memory system.
  • Fig. 5 is not limited to a particular computer platform, particular processor, or particular high-level programming language. Additionally, the computer system may be a multiprocessor computer system or may include multiple computers connected over a computer network.
  • the compositing of two streams of video data may be performed by a computer program executed on general purpose circuits, or may be performed by special purpose hardware associated with the computer system, such as shown in U.S. patent 5,644,364 (Kurtze), which is incorporated by reference.
  • a matte image having different gray scale values to indicate areas for a foreground image and a background image is formed, for example, by using a graphics editor or other editing tool.
  • each image is defined as a bit-mapped picture, in which each pixel has a value.
  • the value of each pixel represents a value on a scale of zero (0) to one (1), with zero corresponding to a fully transparent color and one corresponding to a fully opaque color.
  • a processing area is defined by a bounding box and includes an area defined by the border between the foreground and background image which is between the light and dark area, i.e., where the gray scale values transition from 0 to 255.
  • the rectangular bounding box around the border area is extended in each direction by n pixels to form the processing area.
  • the processing area of the matte image is filtered.
  • the matte image is filtered first horizontally with tail canceling, defined below, and then vertically with tail canceling.
  • tail canceling also may be used.
  • each row of pixels in the processing area is filtered using an nxl horizontal box filter with tail canceling.
  • n is the size of the one dimensional box filter.
  • each column of pixels in the processing area is filtered using a lxm vertical box filter with tail canceling.
  • each row or horizontal line is processed one at a time.
  • a first pixel B a b in a horizontal line is calculated by computing an intermediate sum R ⁇ according to the following equation, wherein A a b is an input pixel of a source image:
  • the box filter uses the value of the edge pixel of the matte image.
  • the intermediate sum R ⁇ b may be stored in a memory or may be stored locally in a register of a processor.
  • the value of the first output pixel B a b which is the result of horizontal filtering is then set equal to the average pixel value using the following equation:
  • nxl box filter determines a new intermediate sum R a+l b .
  • the previously stored intermediate sum R ⁇ is used to determine the new intermediate sum R *+l ⁇ b .
  • the new intermediate sum R a+ i j is determined according to the following equation:
  • Ra+l,b Ra,b " A..-(n-l)l2,b + A a+ (( n- i)/ )+ ⁇ ?b (Eq. 3)
  • the process is then repeated for a next horizontal line beginning with a determination of an initial intermediate value R,, ⁇ , using a calculation similar to that shown in Eq. (1). However, each subsequent determination of an intermediate value uses a calculation similar to that shown in Eq. (3).
  • the horizontal filtering step is finished when each pixel in the processing area has been filtered.
  • the processing area is vertically filtered with tail canceling using a lxm vertical box filter in a manner similar to that described above for horizontal filtering.
  • each column of the processing area is processed one at a time.
  • the value of the first pixel C a b is determined by generating an intermediate sum S a b according to the following equation:
  • a new intermediate sum S a b+1 is determined according to the following equation:
  • the result obtained by box filtering the processing area through an nxl horizontal box filter and a lxm vertical box filter is mathematically equivalent to the result obtained by box filtering the processing area through an nxm box filter.
  • the end result is a ramped effect along the border area between the light and dark area where the pixels along the border increase in value linearly.
  • step 86 the processing area is box filtered again horizontally with tail canceling and vertically with tail canceling using the same nxl and lxm box filters, respectively to produce pixel values P ab .
  • the end result is that the pixels along the border area between the dark and light areas increase in value parabolically.
  • the second pass through the filters allows for a more natural blending on the border between the dark and light areas.
  • a similar mathematical effect would be achieved if the processing area were processed through a triangle filter with twice the width of the box filter. Such a triangular filter generally requires more processing time because it involves more weight coefficient calculations.
  • the result of the filtering steps described above is a filtered matte image which is used to create feathering of two images in a composite image. Feathering removes high frequencies in the matte image and smooths the image by blurring the edges. However, it may be desirable to selectively feather an image by specifying a direction of the feathering.
  • the direction of feathering means the amount of feathering which is to occur inside or outside an object in an image. The amount may include the proportional amount of feathering into the object in the image as compared to feathering outside the object or the proportional amount of feathering on the border, also referred to as the edge, between the background and foreground images.
  • edges biasing refers to further modifying pixel values on the edge after feathering or blurring of the edge, by changing the contrast and brightness of the matte image.
  • the matte image is adjusted by changing values of the pixels in the matte image and will be described further below.
  • this selectable feathering generally may be represented by a mathematical function.
  • This function may be implemented in many ways, such as by direct calculation or by defining and using a look up table. This function may be generated based on user input as described below and may be used in a post-processing step which is performed on a feathered matte image after filtering of the matte image has been completed.
  • a look up table includes 256 scaling values based on a selected amount of edge biasing as applied to the edge biasing function.
  • the number of values in the table is related to the dynamic range of the system used for generating the composite image. As stated above, an 8-bit system uses pixel values from 0-255, while a 10-bit system uses values from 0-1023.
  • the edge biasing corresponds to a desired level of feathering in or feathering out, or to a ratio of the proportional amount of feathering in to feathering out along the edge of the foreground and background images.
  • a user may select an amount of edge biasing by moving a slider included in a graphical user interface.
  • a selectable range of edge biasing may include, for example values from -100 to 100. As a user selects smaller values, such as values closer to the edge biasing value -100, the amount of feathering in increases, and therefore, a proportional amount of feathering out decreases. This results in less of the foreground image being seen in the resulting composite image as more of the background image is feathered into the foreground. When a user selects larger edge biasing values, such as values closer to 100, the amount of feathering out increases, and therefore, a proportional amount of feathering in decreases.
  • the range of the selectable edge biasing values may be defined with any numbering scheme which allows a user to identify one end of the range as resulting in more feathering out and one end of the range resulting in more feathering in as applied to the composite image.
  • edge biasing value E ⁇ If edge biasing value E ⁇ 0, then:
  • the selected edge biasing is applied to the filtered pixel values (P ab ) in step 88, using the corresponding edge biasing function.
  • the value for each pixel in the processing area of the matte image is applied to the look up table in step 88 according to the following equation:
  • a pixel P' a b is the value of a pixel in the resulting composite image which has been scaled according to the selected desired edge biasing after the filtering process.
  • Pixel P a b is determined through the above filtering steps and is applied to the look up table to generate the value P' a b representing the effect of the specified edge biasing.
  • the resulting values of P' a b are shown after taking into account filtered pixel value P a b and a look up table with 256 values representing a user selected edge biasing value of -100. As discussed above, this results in an image with a greater amount of feathering in characteristics as compared to feathering out.
  • the look up table when an input to the look up table is a value of 0 for P a b which is edge biased for feathering in, the result is an output value of P' ab of 0.
  • the output value P' ab 0 and when
  • Fig. 8b shows an example result of a user selecting an edge biasing value of 0, which in this example indicates the user desires equal amounts of feathering in and out.
  • an input to the look up table is a value of 0 for P ⁇ b
  • an edge biasing value of 0 the result is an output value of P' a b of 0.
  • the input value of P a b 128, then the value of
  • Fig. 8c shows an example result of a user selecting an edge biasing value of 100, which in this example indicates the user desires an image with greater feathering out characteristics as compared to feathering in.
  • the input to the look up table is a value of 0 for P a b
  • the output value of P' a b 0.
  • the graphics editor may wish to incorporate additional special effects such as color change effects or opacity effects.
  • the graphics editor may incorporate such effects by combining the box filtered matte image area with other matte images using multiplication or minimization operations.
  • a feathered composite image is generated using the selectively feathered matte image according to conventional methods.
  • Fig. 7a illustrates how a 5x1 horizontal box filter calculates a pixel B a b .
  • the 5x1 horizontal box filter sets the value of the pixel B a b to be the average of A a b , its two neighbors to the left A a . 2 b and A a _, b and its two neighbors to the right A a+l b and A a+2 b .
  • Each pixel value is equally weighted.
  • the 5x1 box filter proceeds horizontally to process an adjacent pixel.
  • the value is determined using an intermediate value calculated using a tail canceling operation.
  • Fig. 7b illustrates a 1x5 vertical box filter for calculating a pixel C b in a similar manner.
  • 1x5 vertical box filter with tail canceling is equivalent to filtering the processing area through a 5x5 box filter.
  • processing time is reduced by the tail canceling process so that the majority of pixel value determinations only include one subtract operation, one add operation, and one divide operation for each pass.
  • Composite images generated using the process shown in Fig. 6 are generally of substantially higher quality than those that are processed only once by a box filter. In particular, results of the process of Fig. 6 are difficult to distinguish from composite images generated using a Gaussian filter.
  • the time to box filter the processing area using the process shown in Fig. 6 is substantially less than that by either a conventional box filter or a Gaussian filter.
  • processing area is vertically filtered with tail canceling before being horizontally filtered with tail canceling.
  • the end result after box filtering the processing area first vertically, then horizontally, is equivalent to filtering the processing area first horizontally, then vertically.
  • the box filter may have an even filter width without biasing the image in a particular direction.
  • the first pass through the box filter should bias each pixel in one direction, e.g., to the left.
  • the second pass through the box filter should bias each pixel in the opposite direction, e.g., to the right. The end result is that there is no overall biasing.
  • the filter widths of the horizontal box filter and the vertical box filter may be extended without significantly decreasing performance.
  • only the initial pixel value calculation is affected, i.e., the calculation includes one additional add operation. Other additional operations are not required to extend filter width per pass.
  • the filter width of the one dimensional horizontal box filter and the filter width of the one dimensional vertical box filter do not need to be the same. Different feathering effects are possible by using different filter widths for the horizontal and vertical box filters, and by using different filter widths for the box filters when processing the matte image for the first time, and subsequently processing the matte image for the second time.

Abstract

A mechanism and process for feathering a first image (24) and a second image (22) in a composite image (38) include defining an original matte image (32). A portion of the original matte image is box filtered horizontally and vertically to generate an intermediate matte image. At least a portion of the intermediate matte image is box filtered horizontally and vertically to generate a processed matte image. An edge biasing function is applied to the processed matte image. Edge biasing includes further modifying pixel values on an edge by changing the contrast and brightness of the matte image. A composite image including the first image and the second image is then generated after applying the edge biasing function to the box-filtered processed matte image.

Description

APPARATUS AND METHODS FOR SELECTIVELY FEATHERING THE MATTE IMAGE OF A COMPOSITE IMAGE
Field of The Invention The present invention relates generally to image editing systems, and more particularly, to techniques for feathering images such as for combining two images to produce a composite image.
Background of The Invention Producers of motion video programs use a variety of special effects to produce a final product. A graphics editor performs the task of adding special effects to motion video segments using a graphics workstation.
Feathering is a special effect that blurs one or more portions of a video image. Feathering often is used when creating a composite video image from a foreground image and a background image. The graphics editor feathers the border between the images thereby blending the images together to create an effect that the two images are truly one image. For example, a composite image including a foreground image of two people walking and a background image of a desert scene, when feathered, provides an appearance of the two people walking in the desert.
The graphics editor generally manipulates a number of images to create a composite image, as illustrated in Fig. 1. Typically, the graphics editor takes a foreground image 24 from a first image 20. and a background image 26 from a second image 28. and combines them using a matte image 32 to form a composite image 38. The matte image is a gray scale image used to generate the composite image 38. In particular, the light area of the matte image indicates that the area 24 of the first image 20 is to be used as the foreground image, and that the area 22 is to be ignored. Similarly, the dark area 36 of the matte image indicates that the area 26 of the second image 28 is to be the used as the background image.
Before generating the composite image 38, the graphics editor modifies the matte image so that the graphics workstation generates a feathering effect between the foreground and background images 24 and 26. In particular, the border area between the light and dark area of the matte image is filtered. If the matte image uses a gray scale that ranges between 0 and 255, the dark area for the background is 0, the light area for the foreground is 255. and the border area between the dark area and light area has values between 0 and 255 depending on the type of filtering applied to the matte image. The degree of realism in the composite image 38 often depends on the type of filtering. When filtering is poor, the viewer may identify a border 36 between the foreground image and the background image so that the effect of interaction between objects in the two images is diminished or lost.
One conventional filter is a box filter which is commonly implemented as a finite impulse response filter (FIR). When a graphics editor filters a matte image through a box filter, the graphics editor identifies a border area in the matte image, and applies the box filter to each pixel of the border area. Fig. 2 illustrates a 3x1 box filter function. According to this box filtering function, a presently processed pixel value Pa is set equal to an average of pixel values Pa.,, Pa and Pa+1. Each pixel value is equally weighted as indicated by the flat slope of the box filtering function.
Filtering may be applied in two dimensions. Fig. 3 illustrates a 3x3 box filtering function. Here, the value of the center pixel is set to be the average of the values of the center pixel and the eight surrounding pixels, and the value of each pixel is equally weighted.
Another type of filter is a Gaussian filter which is also commonly implemented as an FIR filter. The Gaussian filter is defined by a Gaussian function, as illustrated in Fig. 4. The
Gaussian filter weights each pixel according to its proximity to the pixel being processed, i.e., the center pixel. Fig. 4 shows a 3x1 Gaussian filter that weights the pixel Pa by more than the adjacent pixels Pa_, and Pa+1. A Gaussian filter may be implemented as a two-pass FIR filter: one pass for the horizontal direction, and one pass for the vertical direction. Producing composite images using such filtering techniques has certain drawbacks. In particular, using a conventional box filtered matte image to create a feathered composite image typically provides unsatisfactory results, i.e., the composite image does not provide a realistic appearance of interaction between objects in the foreground and background images of the composite image. Also, box filtering provides biased results when the width of the filter is defined by an even number of pixels. For example, a typical 4x1 box filter processes the present pixel, one pixel to the left of the present pixel, and two pixels to the right of the present pixel. This unbalanced use of image data effectively shifts the results by half a pixel, and may be noticeable to the viewer. In particular, when playing a sequence of images, portions of the video image may appear to jitter due to box filtering using an even width box filter. A composite image generated from a Gaussian filtered matte image generally provides suitable results. That is, the composite image provides a realistic appearance that objects in the foreground image are disposed within the background image. However, Gaussian filtering results in a substantial amount of processing time since each pixel value is multiplied by a weighted coefficient. For example, a 32x32 Gaussian filter operating on a 132 MHZ Power PC available from Apple Computer of Cupertino, California, requires approximately 1.5 minutes to filter completely a typical matte image having a dimension of 720x486 pixels. Accordingly, Gaussian filtering is impractical for feathering image sequences of 100 images or even 1000 images as often desired in the movie and television industries. Furthermore, as the width of the Gaussian filter increases, processing time increases. In particular, each pixel increase in the width of a Gaussian filter adds one multiply operation per pass and one add operation per pass for each pixel to be processed. Using a matte image that has been filtered as described above also results in a composite image which has equal amounts of feathering into the foreground image and feathering out into the background image. However, in some cases, such a result creates artifacts in the image that are unacceptable. For example, if a picture of a yellow ball is being combined with an image of a grey sky background, feathering in of the grey sky into the yellow ball may produce undesirable results, such as a halo image around the ball (a halo effect is shown in image 38, Fig.
1).
One way to avoid such an undesirable result is by changing an outline which circumscribes a processing area of the image and reprocessing the image which results in numerous additional calculations. In addition, if the outline does not carefully circumscribe the processing area, the resulting image may not be accurate. For example, the resulting image may include overlapping portions or pinched corners.
Summary of the Invention
The drawbacks of other filters may be overcome by box filtering a matte image horizontally with tail canceling, and vertically with tail canceling. A filtered image also may be adjusted to control the amount of feathering in or out of an image by applying an edge biasing function to the filtered image to create the matte image used to composite the image.
Accordingly, in one aspect a computer-implemented process for feathering a first image and a second image in a composite image uses an original matte image. The matte image may be defined in any manner but is typically defined according to a first and second image. A portion of the original matte image is box filtered horizontally and vertically to generate an intermediate matte image. At least a portion of the intermediate matte image is box filtered horizontally and vertically to generate a processed matte image. An edge biasing function is applied to the processed matte image. A composite image including the first image and the second image is then generated using the box-filtered processed matte image as modified by the edge biasing function. In another aspect, an apparatus feathers a first image and a second image in a composite image using a matte image. The matte image may be defined according to either the first or second image or both, or according to some other image. At least a portion of the original matte image is box filtered horizontally and vertically to generate an intermediate matte image. At least a portion of the intermediate matte image is box-filtered horizontally and vertically to generate a processed matte image. An edge biasing function is applied to the processed matte image. A composite image including the first image and the second image is then generated based on the box-filtered processed matte image to which the edge biasing function has been applied.
In another aspect, the original matte image and the intermediate matte image are filtered using one dimensional (i.e., nxl and lxm) box filters.
In another aspect, a desired level of edge biasing is selected from a range of edge biasing values and the edge biasing function is generated according to the desired level of edge biasing. In another aspect, defining a desired direction of edge biasing includes specifying a desired level of edge biasing representing proportionally more feathering in or feathering out or specifying equal feathering. In another aspect, values in an edge biasing table are scaling factors representing the desired level of edge biasing.
In another aspect, a composite image is produced by the process of selectively feathering a matte image. The matte image is produced by filtering a matte image to produce a feathered matte image. An edge biasing function is applied to the feathered matte image and the resulting selectively feathered matte image is used to produce the composite image.
In another aspect, a method includes generating a matte image for use in feathering a composite image. A filtered matte image is received and an edge biasing function is applied to the filtered matte image.
In another aspect, edge biasing involves adjusting contrast and brightness features of an edge of a matte image. Brief Description of the Drawing
In the drawing,
Fig. 1 is a block diagram of a process for generating a feathered composite image;
Fig. 2 is a graph of a 3x1 box filter function; Fig. 3 is a graph of a 3x3 box filter function;
Fig. 4 is a graph of a 3x1 Gaussian filter function;
Fig. 5 is a block diagram of a compositing system for generating a composite image in one embodiment;
Fig. 6 is a flow diagram of a method according to one embodiment; Fig. 7a is a graph of a horizontal filtering function according to one embodiment;
Fig. 7b is a graph of a vertical filtering function according to one embodiment;
Fig. 8a is a graph of the result of feathering in edge biasing;
Fig. 8b is a graph of the result of equal edge biasing; and
Fig. 8c is a graph of the result of feathering out edge biasing.
Detailed Description
The present invention will be more completely understood through the following detailed description which should be read in conjunction with the attached drawing.
One embodiment is directed to a system for selectively feathering two images in a composite image and will be described in connection with Fig. 5. The operation of the modules of Fig. 5 will be described below in connection with Fig. 6. The system shown in Fig. 5 may be implemented as described below. One module of this system is a graphical user interface 52 which receives user input 50 and which outputs display data 54 to allow the user to input desired characteristics for the image composition. Through user input 50 to the graphical user interface module 52, a user may define feathering information 56. The feathering information 56 includes information to determine what size and type filter to apply to the matte image 64 and may be generated from a number of sources other than the graphical user interface, including a data file.
Another module is filter 58 which receives feathering information 56 and applies a corresponding filter to matte image 64 to output a feathered matte image 70. An edge biasing module 68 receives edge biasing data 66, which may be defined by user input 50 through the graphical user interface module 52. The edge biasing module 68 also receives the feathered matte image 70 which is output from the filter module 58. The edge biasing module 68 applies an edge biasing function according.to the edge biasing data 66, to the feathered matte image 70 and outputs a selectively feathered matte image 72. Blender module 74 receives the selectively feathered matte image 72, along with image 60 and image 62 to produce a composite image 76. An example computer system to implement the system shown in Fig. 5 typically includes a main unit connected to both an output device which displays information to a user and an input device which receives input from a user. The main unit generally includes a processor connected to a memory system via an interconnection mechanism. The input device and output device also are connected to the processor and memory system via the interconnection mechanism. It should be understood that one or more output devices may be connected to the computer system. Example output devices include a cathode ray tube (CRT) display, liquid crystal displays (LCD), printers, communication devices such as a modem, and audio output. It should also be understood that one or more input devices may be connected to the computer system. Example input devices include a keyboard, keypad, track ball, mouse, pen and tablet, communication device, and data input devices such as sensors. It should be understood the system of Fig. 5 is not limited to the particular input or output devices used in combination with the computer system or to those described herein.
The computer system may be a general purpose computer system which is programmable using a high level computer programming language, such as "C". The computer system may also be specially programmed, special purpose hardware for performing functions of one or more of the modules in Fig. 5. In a general purpose computer system, the processor is typically a commercially available processor, of which the series x86 processors, available from Intel, and similar devices from AMD and Cyrix, the 680X0 series microprocessors available from Motorola, the PowerPC microprocessor from IBM and the Alpha-series processors from Digital Equipment Corporation, are examples. Many other processors are available. Such a microprocessor executes a program called an operating system, of which WindowsNT, UNIX, DOS, VMS and OS8 are examples, which controls the execution of other computer programs and provides scheduling, debugging, input/output control, accounting, compilation, storage assignment, data management and memory management, and communication control and related services. The processor and operating system define a computer platform for which application programs in high-level programming languages are written.
A memory system typically includes a computer readable and writeable nonvolatile recording medium, of which a magnetic disk, a flash memory and tape are examples. The disk may be removable, known as a floppy disk, or permanent, known as a hard drive. A disk has a number of tracks in which signals are stored, typically in binary form, i.e., a form interpreted as a sequence of one and zeros. Such signals may define an application program to be executed by the microprocessor, or information stored on the disk to be processed by the application program. Typically, in operation, the processor causes data to be read from the nonvolatile recording medium into an integrated circuit memory element, which is typically a volatile, random access memory such as a dynamic random access memory (DRAM) or static memory (SRAM). The integrated circuit memory element allows for faster access to the information by the processor than does the disk. The processor generally manipulates the data within the integrated circuit memory and then copies the data to the disk when processing is completed. A variety of mechanisms are known for managing data movement between the disk and the integrated circuit memory element, and the invention is not limited thereto. It should also be understood that the system of Fig. 5 is not limited to a particular memory system.
It should be understood the system of Fig. 5 is not limited to a particular computer platform, particular processor, or particular high-level programming language. Additionally, the computer system may be a multiprocessor computer system or may include multiple computers connected over a computer network.
The compositing of two streams of video data, may be performed by a computer program executed on general purpose circuits, or may be performed by special purpose hardware associated with the computer system, such as shown in U.S. patent 5,644,364 (Kurtze), which is incorporated by reference.
The process of selectively feathering an image is shown in Fig. 6. In step 81, a matte image having different gray scale values to indicate areas for a foreground image and a background image is formed, for example, by using a graphics editor or other editing tool. In general, each image is defined as a bit-mapped picture, in which each pixel has a value. The value of each pixel represents a value on a scale of zero (0) to one (1), with zero corresponding to a fully transparent color and one corresponding to a fully opaque color. In an 8-bit system the gray scale ranges from 0-255, and the matte image uses 0 to indicate the area of the background image (indicated by the dark region in the matte image 32), and 255 to indicate the area of the foreground image (indicated by the light region 30). In step 82, a processing area is defined by a bounding box and includes an area defined by the border between the foreground and background image which is between the light and dark area, i.e., where the gray scale values transition from 0 to 255. The rectangular bounding box around the border area is extended in each direction by n pixels to form the processing area.
In step 84, the processing area of the matte image is filtered. In one embodiment, the matte image is filtered first horizontally with tail canceling, defined below, and then vertically with tail canceling. Other kinds of filtering also may be used. In particular, each row of pixels in the processing area is filtered using an nxl horizontal box filter with tail canceling. Value n is the size of the one dimensional box filter. After each row of pixels in the processing area has been filtered horizontally, each column of pixels in the processing area is filtered using a lxm vertical box filter with tail canceling. When filtering in the horizontal direction using an nxl box filter, each row or horizontal line is processed one at a time. In particular, a first pixel Ba b in a horizontal line is calculated by computing an intermediate sum R^ according to the following equation, wherein Aa b is an input pixel of a source image:
R^t, = Aa.(n.1)/2 b + ... + Aa.l b + Aa,b + Aa+l b + ... + Aa+(n.1)/2 b (Eq. 1)
For pixel locations beyond the matte image edge, the box filter uses the value of the edge pixel of the matte image. The intermediate sum R^ b may be stored in a memory or may be stored locally in a register of a processor. The value of the first output pixel Ba b which is the result of horizontal filtering is then set equal to the average pixel value using the following equation:
Figure imgf000010_0001
Next, a value for a next pixel Ba+l b is determined. The nxl box filter determines a new intermediate sum Ra+l b. Rather than recalculating the intermediate sum Rει+ b using Eq. (1), the previously stored intermediate sum R^ is used to determine the new intermediate sum R*+l<b. In particular, the new intermediate sum Ra+ij, is determined according to the following equation:
Ra+l,b = Ra,b " A..-(n-l)l2,b + Aa+((n-i)/ )+ι?b (Eq. 3)
In Eq. (3), the value of the pixel that is no longer covered by the nxl box filter is subtracted, and adds the value of the new pixel covered by the nxl box filter. This kind of filtering is called "tail canceling" because the value of the pixel that is no longer covered by the box filter is dropped from the filter. This new intermediate sum Ra+ljb is stored in memory and used to determine the value for pixel Ba+1 b by dividing Ba+1 b by n. The tail canceling process is repeated when determining a new intermediate value (e.g., Ra+2ιb) and a new value for pixel (e.g., Ba+2 b) until the end of the horizontal line is reached. The process is then repeated for a next horizontal line beginning with a determination of an initial intermediate value R,,^, using a calculation similar to that shown in Eq. (1). However, each subsequent determination of an intermediate value uses a calculation similar to that shown in Eq. (3). The horizontal filtering step is finished when each pixel in the processing area has been filtered. Next, the processing area is vertically filtered with tail canceling using a lxm vertical box filter in a manner similar to that described above for horizontal filtering. In particular, each column of the processing area is processed one at a time. The value of the first pixel Ca b is determined by generating an intermediate sum Sa b according to the following equation:
Sa,b = Ba,b-(n-l)/2,b + - + Baιb., + Ba,b + Ba,b+1 + •" + Ba,b+(n-l)/2 (Eq. 4)
Then, the value of the pixel Ca b is determined using the following equation:
C,b = S n (Eq. 5)
After the value of the pixel Ca b has been determined, the vertical filter proceeds to process a new pixel Ca b+1 in the vertical direction. In particular, a new intermediate sum Sa b+1 is determined according to the following equation:
Sa b+1 = Sa b - Ba b.(n.I)/2 + Ba b+((n.1) 2)+1 (Eq. 6)
The subtracted pixel value corresponds to the pixel that is no longer covered by the vertical box filter after it is moved to process the next pixel C^b+1. Furthermore, the added pixel value corresponds to the pixel that is newly covered by the vertical box filter after it is moved to process the next pixel Ca b+1. Then, the value of the pixel Ca b+1 is determined using the following equation: Ca>b+ι = Sa>b+1/n . (Eq. 7)
The result obtained by box filtering the processing area through an nxl horizontal box filter and a lxm vertical box filter is mathematically equivalent to the result obtained by box filtering the processing area through an nxm box filter. The end result is a ramped effect along the border area between the light and dark area where the pixels along the border increase in value linearly.
In step 86, the processing area is box filtered again horizontally with tail canceling and vertically with tail canceling using the same nxl and lxm box filters, respectively to produce pixel values Pab. The end result is that the pixels along the border area between the dark and light areas increase in value parabolically. The second pass through the filters allows for a more natural blending on the border between the dark and light areas. A similar mathematical effect would be achieved if the processing area were processed through a triangle filter with twice the width of the box filter. Such a triangular filter generally requires more processing time because it involves more weight coefficient calculations.
The result of the filtering steps described above is a filtered matte image which is used to create feathering of two images in a composite image. Feathering removes high frequencies in the matte image and smooths the image by blurring the edges. However, it may be desirable to selectively feather an image by specifying a direction of the feathering. The direction of feathering means the amount of feathering which is to occur inside or outside an object in an image. The amount may include the proportional amount of feathering into the object in the image as compared to feathering outside the object or the proportional amount of feathering on the border, also referred to as the edge, between the background and foreground images. Therefore, the process as described above in steps 81-86 may be expanded further to include edge biasing which includes a step of defining a direction of feathering. Edge biasing refers to further modifying pixel values on the edge after feathering or blurring of the edge, by changing the contrast and brightness of the matte image. The matte image is adjusted by changing values of the pixels in the matte image and will be described further below.
In step 87, this selectable feathering generally may be represented by a mathematical function. This function may be implemented in many ways, such as by direct calculation or by defining and using a look up table. This function may be generated based on user input as described below and may be used in a post-processing step which is performed on a feathered matte image after filtering of the matte image has been completed.
In one embodiment a look up table includes 256 scaling values based on a selected amount of edge biasing as applied to the edge biasing function. The number of values in the table is related to the dynamic range of the system used for generating the composite image. As stated above, an 8-bit system uses pixel values from 0-255, while a 10-bit system uses values from 0-1023. The edge biasing corresponds to a desired level of feathering in or feathering out, or to a ratio of the proportional amount of feathering in to feathering out along the edge of the foreground and background images.
In one embodiment a user may select an amount of edge biasing by moving a slider included in a graphical user interface. A selectable range of edge biasing may include, for example values from -100 to 100. As a user selects smaller values, such as values closer to the edge biasing value -100, the amount of feathering in increases, and therefore, a proportional amount of feathering out decreases. This results in less of the foreground image being seen in the resulting composite image as more of the background image is feathered into the foreground. When a user selects larger edge biasing values, such as values closer to 100, the amount of feathering out increases, and therefore, a proportional amount of feathering in decreases. This results in less of the background image being seen in the resulting image as more of the foreground image is feathered out to the background. An edge biasing value chosen in the center of the range of selectable values, such as 0 in this example, results in equal amounts of feathering in and out. The range of the selectable edge biasing values may be defined with any numbering scheme which allows a user to identify one end of the range as resulting in more feathering out and one end of the range resulting in more feathering in as applied to the composite image.
In one embodiment, there is a linear relationship between the user selected edge biasing values and the scaling values to be applied to the pixel values. The relationship may be defined as follows:
P'ab = bias (Pab, E) (Eq. 8)
The value E is the amount of edge biasing selected by a user. Edge biasing is applied to pixel Pab which is determined through the above filtering steps, based on the user input value E. P'ab is the value of a pixel in a resulting composite image which has been scaled according to the selected edge biasing. In one embodiment, this relationship may be expressed as follows: If edge biasing value E = 0, then: .
Figure imgf000014_0001
If edge biasing value E < 0, then:
P'ab = (1.0 + E/-100) * Pab+ 2.55 * E (Eq. 10)
If edge biasing value E > 0, then:
P'ab = (1.0 + E/100) * P.b (Eq. 11)
with limits such that if P'ab > 255, then P'ab = 255 and if P'ab < 0, then P'ab, = 0.
After the filtered values of the pixels in the matte image have been determined, as discussed above in steps 81-86, then the selected edge biasing is applied to the filtered pixel values (Pab ) in step 88, using the corresponding edge biasing function.
In one embodiment using a look up table, the value for each pixel in the processing area of the matte image is applied to the look up table in step 88 according to the following equation:
P'a.b = LUT [Pa,b] (Eq. 12)
Thus, a pixel P'a b is the value of a pixel in the resulting composite image which has been scaled according to the selected desired edge biasing after the filtering process. Pixel Pa b is determined through the above filtering steps and is applied to the look up table to generate the value P'a b representing the effect of the specified edge biasing. In this embodiment there is a linear relationship between the user selected edge biasing values and the scaling values for the look up table. Other linear and nonlinear relationships also may be defined.
For example, as shown in Fig 8a, the resulting values of P'a b are shown after taking into account filtered pixel value Pa b and a look up table with 256 values representing a user selected edge biasing value of -100. As discussed above, this results in an image with a greater amount of feathering in characteristics as compared to feathering out. As shown in Fig. 8a, when an input to the look up table is a value of 0 for Pa b which is edge biased for feathering in, the result is an output value of P'ab of 0. When the value of Pab= 128, then the output value P'ab = 0 and when
Pa,b = 255, then P'a>b = 255.
Fig. 8b shows an example result of a user selecting an edge biasing value of 0, which in this example indicates the user desires equal amounts of feathering in and out. As shown in Fig. 8b, when an input to the look up table is a value of 0 for P^b , with an edge biasing value of 0, the result is an output value of P'a b of 0. When the input value of Pa b = 128, then the value of
P'a b=128 and when the input value of Pa b=255 the resulting output value of P'a b = 255.
Fig. 8c shows an example result of a user selecting an edge biasing value of 100, which in this example indicates the user desires an image with greater feathering out characteristics as compared to feathering in. According to this selection, when the input to the look up table is a value of 0 for Pa b, the output value of P'a b=0. When the input value of P a b=128, then the value of P'a b=255 and when the input value of P a,b=255, the resulting output value of P'a b=255. Referring again to Fig. 6, in step 90, the graphics editor may wish to incorporate additional special effects such as color change effects or opacity effects. The graphics editor may incorporate such effects by combining the box filtered matte image area with other matte images using multiplication or minimization operations. In step 92, a feathered composite image is generated using the selectively feathered matte image according to conventional methods.
An example will now be explained with reference to Figs. 7a and 7b. Fig. 7a illustrates how a 5x1 horizontal box filter calculates a pixel Ba b. The 5x1 horizontal box filter sets the value of the pixel Ba b to be the average of Aa b, its two neighbors to the left Aa.2 b and Aa_, b and its two neighbors to the right Aa+l b and Aa+2 b. Each pixel value is equally weighted. Then, the 5x1 box filter proceeds horizontally to process an adjacent pixel. When processing the adjacent pixel, the value is determined using an intermediate value calculated using a tail canceling operation. In particular, as described above, the pixel value of the pixel that is no longer covered by the box filter is subtracted from the intermediate value, and adds the value of the newly covered pixel to the intermediate value. Fig. 7b illustrates a 1x5 vertical box filter for calculating a pixel C b in a similar manner.
Filtering the processing area through a 5x1 horizontal box filter with tail canceling and a
1x5 vertical box filter with tail canceling is equivalent to filtering the processing area through a 5x5 box filter. However, processing time is reduced by the tail canceling process so that the majority of pixel value determinations only include one subtract operation, one add operation, and one divide operation for each pass. Composite images generated using the process shown in Fig. 6 are generally of substantially higher quality than those that are processed only once by a box filter. In particular, results of the process of Fig. 6 are difficult to distinguish from composite images generated using a Gaussian filter. Furthermore, the time to box filter the processing area using the process shown in Fig. 6 is substantially less than that by either a conventional box filter or a Gaussian filter.
Modifications and enhancements may be made to the above-described embodiments, and are intended to be included within the scope of the invention. For example, the order of horizontally filtering and vertically filtering may be reversed. According to an embodiment, processing area is vertically filtered with tail canceling before being horizontally filtered with tail canceling. The end result after box filtering the processing area first vertically, then horizontally, is equivalent to filtering the processing area first horizontally, then vertically.
Additionally, the box filter may have an even filter width without biasing the image in a particular direction. In particular, when filtering the processing area, the first pass through the box filter should bias each pixel in one direction, e.g., to the left. The second pass through the box filter should bias each pixel in the opposite direction, e.g., to the right. The end result is that there is no overall biasing.
Also, it should be understood that the filter widths of the horizontal box filter and the vertical box filter may be extended without significantly decreasing performance. In particular, only the initial pixel value calculation is affected, i.e., the calculation includes one additional add operation. Other additional operations are not required to extend filter width per pass.
Additionally, it should be understood that the filter width of the one dimensional horizontal box filter and the filter width of the one dimensional vertical box filter do not need to be the same. Different feathering effects are possible by using different filter widths for the horizontal and vertical box filters, and by using different filter widths for the box filters when processing the matte image for the first time, and subsequently processing the matte image for the second time.
Furthermore, the embodiments are suitable for real time applications since processing time is substantially reduced. Accordingly, foreground and background images may be blended in real time. Having now described a few embodiments of the invention, it should be apparent to those skilled in the art that the foregoing is merely illustrative and not limiting, having been presented by way of example only. Numerous modifications and other embodiments are within the scope of one of ordinary skill in the art and are contemplated as falling within the scope of the invention as defined by the appended claims and equivalents thereto.

Claims

1. A method for feathering a first image and a second image in a composite image using an original matte image, comprising the steps of: box filtering at least a portion of the original matte image horizontally and vertically to generate an intermediate matte image; box filtering at least a portion of the intermediate matte image horizontally and vertically to generate a processed matte image; applying an edge biasing function to the processed matte image; and generating the composite image including the first image and the second image according to the box-filtered matte image as modified by the edge biasing function.
2. The method of claim 1 , wherein the step of applying an edge biasing function includes: selecting a desired direction of edge biasing; and generating edge biasing values according to the selected desired direction.
3. The method of claim 2, wherein the desired direction includes at least one of feathering in, feathering out or equal feathering.
4. The method of claim 2, wherein the edge biasing function changes contrast and brightness in the feathered matte image.
5. The method of claim 1, wherein each matte image includes a plurality of pixels, and wherein at least one of the steps of box filtering includes a step of tail canceling so that a value of a pixel of the tail canceled matte image is a result of a subtract operation.
6. The method of claim 1 , wherein the step of box filtering the original matte image includes a step of processing the original matte image through a first box filter having an even filter width that is biased in a first direction; and wherein the step of box filtering the intermediate matte image includes a step of processing the intermediate matte image through a second box filter having an even filter width that is biased in a second direction that is opposite the first direction.
7. The method of claim 1, wherein at least one of the steps of box filtering includes a step of processing a matte image through a one dimensional box filter.
8. The method of claim 1, wherein each matte image includes a plurality of rows of pixels, and wherein the method further comprises a step of: increasing a filter width of a box filter so that the box filter performs an extra add operation when calculating a value of an initial pixel of a row of pixels of a matte image, while maintaining the number of add operations when calculating values of other pixels in the row of pixels of the matte image.
9. The method of claim 1, wherein at least one of the steps of box filtering includes steps of: processing a matte image through a one dimensional vertical box filter having a first width; and processing the matte image through a one dimensional horizontal box filter having a second width that is different than the first width.
10. The method of claim 1, wherein each step of box filtering and the step of generating is performed in real time, and wherein the method further includes a step of: displaying the composite image on a display device in real time.
11. An apparatus for feathering a first image and a second image in a composite image, comprising: a general purpose computer including: a memory that stores a program; and a processor that, when executing the program, receives an original matte image, box filters at least a portion of the original matte image horizontally and vertically to generate an intermediate matte image, box filters at least a portion of the intermediate matte image horizontally and vertically to generate a processed matte image, receives an edge biasing function, applies the edge biasing function to the processed matte image, and generates a composite image including the first image and the second image based on the box-filtered processed matte image as modified by the edge biasing function.
12. The apparatus of claim 11, wherein each matte image includes a plurality of pixels, and wherein the processor, when box filtering a matte image, tail cancels the matte image so that a value of a pixel of the tail canceled matte image is a result of a subtract operation.
13. The apparatus of claim 11 , wherein the processor, when box filtering the original matte image, processes the original matte image through a first box filter having an even filter width that is biased in a first direction; and wherein the processor, when box filtering the intermediate matte image, processes the intermediate matte image through a second box filter having an even filter width that is biased in a second direction that is opposite the first direction.
14. The apparatus of claim 11, wherein the processor box filters at least one of the matte images using a one dimensional box filter.
15. The apparatus of claim 11, wherein each matte image includes a plurality of rows of pixels, and wherein the processor, when executing the program, increases a filter width of a box filter by performing an extra add operation when calculating a value of an initial pixel of a row of pixels of a matte image, while maintaining the number of add operations when calculating values of other pixels in the row of pixels of the matte image.
16. The apparatus of claim 11, wherein the processor, when box filtering a matte image, processes the matte image through a one dimensional vertical box filter having a first width, and processes the matte image through a one dimensional horizontal box filter having a second width that is different than the first width.
17. The apparatus of claim 11 , wherein the processor executes the program in real time, and wherein the general purpose computer further includes a display device that displays the composite image in real time.
18. A composite image produced by the process of selectively feathering a matte image produced by a process that includes the steps of: filtering the matte image to produce a feathered matte image; applying an edge biasing function to the feathered matte image; and using the resulting selectively feathered matte image to produce the composite image.
19. A composite image of claim 18, wherein the edge biasing function is generated according to a desired level of edge biasing, wherein the desired level of edge biasing includes at least one of feathering in, feathering out or equal feathering.
20. A composite image of claim 19, wherein the edge biasing function changes contrast and brightness in the feathered matte image.
21. A method for generating a matte image for use in feathering a composite image using an original matte image, including the steps of: receiving a filtered matte image; and applying an edge biasing function to the filtered matte image.
22. The method of claim 21 , wherein the filtered matte image is filtered in one pass horizontally then filtered in one pass vertically, with each pass performed twice.
23. The method of claim 21 , wherein the edge biasing function provides for at least one of feathering in, feathering out or equal feathering of the filtered matte image.
PCT/US1998/006258 1997-04-04 1998-03-30 Apparatus and methods for selectively feathering the matte image of a composite image WO1998046013A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP54284598A JP2001519064A (en) 1997-04-04 1998-03-30 Apparatus and method for selectively feathering a mat image in a composite image
AU67889/98A AU6788998A (en) 1997-04-04 1998-03-30 Apparatus and methods for selectively feathering the matte image of a composite image
EP98913302A EP0972403A1 (en) 1997-04-04 1998-03-30 Apparatus and methods for selectively feathering the matte image of a composite image
CA002285088A CA2285088A1 (en) 1997-04-04 1998-03-30 Apparatus and methods for selectively feathering the matte image of a composite image

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US08/832,871 1997-04-04
US08/832,871 US6137919A (en) 1997-04-04 1997-04-04 Apparatus and methods for feathering a composite image
US09/018,061 1998-02-03
US09/018,061 US6269195B1 (en) 1997-04-04 1998-02-03 Apparatus and methods for selectively feathering a composite image

Publications (1)

Publication Number Publication Date
WO1998046013A1 true WO1998046013A1 (en) 1998-10-15

Family

ID=26690690

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US1998/006258 WO1998046013A1 (en) 1997-04-04 1998-03-30 Apparatus and methods for selectively feathering the matte image of a composite image

Country Status (6)

Country Link
US (1) US6269195B1 (en)
EP (1) EP0972403A1 (en)
JP (1) JP2001519064A (en)
AU (1) AU6788998A (en)
CA (1) CA2285088A1 (en)
WO (1) WO1998046013A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6243143B1 (en) 1999-09-21 2001-06-05 Media 100 Inc. Effecting video transitions between video streams
US6362854B1 (en) 1999-11-16 2002-03-26 Media 100 Inc. Effecting video transitions between video streams with a border
US6473132B1 (en) 1999-09-09 2002-10-29 Media 100 Inc. Method and apparatus for effecting video transitions

Families Citing this family (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3584965B2 (en) * 1999-12-09 2004-11-04 日本電気株式会社 Optical line protection method
JP2002047694A (en) * 2000-07-31 2002-02-15 Komatsu Ltd Display device for construction machine
WO2002027659A2 (en) * 2000-09-26 2002-04-04 Advantage 3D Llc Method and system for generation, storage and distribution of omni-directional object views
US7103677B2 (en) * 2000-12-06 2006-09-05 Microsoft Corporation Methods and systems for efficiently processing compressed and uncompressed media content
US6912717B2 (en) * 2000-12-06 2005-06-28 Microsoft Corporation Methods and systems for implementing dynamic properties on objects that support only static properties
US6882891B2 (en) 2000-12-06 2005-04-19 Microsoft Corporation Methods and systems for mixing digital audio signals
US7447754B2 (en) 2000-12-06 2008-11-04 Microsoft Corporation Methods and systems for processing multi-media editing projects
US6774919B2 (en) * 2000-12-06 2004-08-10 Microsoft Corporation Interface and related methods for reducing source accesses in a development system
US7287226B2 (en) * 2000-12-06 2007-10-23 Microsoft Corporation Methods and systems for effecting video transitions represented by bitmaps
US6834390B2 (en) 2000-12-06 2004-12-21 Microsoft Corporation System and related interfaces supporting the processing of media content
US6961943B2 (en) * 2000-12-06 2005-11-01 Microsoft Corporation Multimedia processing system parsing multimedia content from a single source to minimize instances of source files
US6768499B2 (en) * 2000-12-06 2004-07-27 Microsoft Corporation Methods and systems for processing media content
US6954581B2 (en) 2000-12-06 2005-10-11 Microsoft Corporation Methods and systems for managing multiple inputs and methods and systems for processing media content
US6983466B2 (en) * 2000-12-06 2006-01-03 Microsoft Corporation Multimedia project processing systems and multimedia project processing matrix systems
US6959438B2 (en) * 2000-12-06 2005-10-25 Microsoft Corporation Interface and related methods for dynamically generating a filter graph in a development system
US7114161B2 (en) 2000-12-06 2006-09-26 Microsoft Corporation System and related methods for reducing memory requirements of a media processing system
US7114162B2 (en) * 2000-12-06 2006-09-26 Microsoft Corporation System and methods for generating and managing filter strings in a filter graph
JP2002300373A (en) * 2001-03-30 2002-10-11 Minolta Co Ltd Image processing method, image processing device, recording medium and program
US7103235B2 (en) * 2001-04-25 2006-09-05 Lockheed Martin Corporation Extended range image processing for electro-optical systems
US6973218B2 (en) * 2001-04-25 2005-12-06 Lockheed Martin Corporation Dynamic range compression
US6901173B2 (en) * 2001-04-25 2005-05-31 Lockheed Martin Corporation Scene-based non-uniformity correction for detector arrays
US6925210B2 (en) * 2001-07-09 2005-08-02 Michael Herf Method for blurring images in real-time
US7466870B2 (en) * 2003-01-16 2008-12-16 Acoustic Technology Llc Apparatus and method for creating effects in video
US20040175218A1 (en) * 2003-03-05 2004-09-09 Katzer Lawrence John Method and apparatus for printing on flat and non-flat objects
US7336851B1 (en) * 2003-08-07 2008-02-26 Bentley Systems, Inc. Interactive tool for removal of isolated objects on raster images
US7636489B2 (en) * 2004-04-16 2009-12-22 Apple Inc. Blur computation algorithm
US20060092274A1 (en) * 2004-11-04 2006-05-04 Rockwell Automation Technologies, Inc. Image sensor annotation method and apparatus
US8164645B2 (en) * 2006-10-02 2012-04-24 Konica Minolta Holdings, Inc. Image processing apparatus, method of controlling image processing apparatus, and program for controlling image processing apparatus
US7826683B2 (en) * 2006-10-13 2010-11-02 Adobe Systems Incorporated Directional feathering of image objects
US20080212895A1 (en) * 2007-01-09 2008-09-04 Lockheed Martin Corporation Image data processing techniques for highly undersampled images
US8520972B2 (en) * 2008-09-12 2013-08-27 Adobe Systems Incorporated Image decomposition
US8340458B2 (en) 2011-05-06 2012-12-25 Siemens Medical Solutions Usa, Inc. Systems and methods for processing image pixels in a nuclear medicine imaging system
US9753682B2 (en) * 2013-12-27 2017-09-05 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and computer-readable storage medium
US10846895B2 (en) * 2015-11-23 2020-11-24 Anantha Pradeep Image processing mechanism
US10122969B1 (en) 2017-12-07 2018-11-06 Microsoft Technology Licensing, Llc Video capture systems and methods
US10706556B2 (en) 2018-05-09 2020-07-07 Microsoft Technology Licensing, Llc Skeleton-based supplementation for foreground image segmentation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4698666A (en) * 1985-07-12 1987-10-06 The Grass Valley Group, Inc. Video key glow and border generator
EP0517035A2 (en) * 1991-06-06 1992-12-09 Eastman Kodak Company Method for merging images
US5241372A (en) * 1990-11-30 1993-08-31 Sony Corporation Video image processing apparatus including convolution filter means to process pixels of a video image by a set of parameter coefficients
US5557339A (en) * 1993-04-15 1996-09-17 Ultimatte Corporation Screen filtering boundary detection for noise filtering prior to image compositing

Family Cites Families (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4492978A (en) 1979-03-12 1985-01-08 Westinghouse Electric Corp. Transmission system for TV signals
US4367465A (en) 1980-04-04 1983-01-04 Hewlett-Packard Company Graphics light pen and method for raster scan CRT
US4488245A (en) 1982-04-06 1984-12-11 Loge/Interpretation Systems Inc. Method and means for color detection and modification
US4835532A (en) * 1982-07-30 1989-05-30 Honeywell Inc. Nonaliasing real-time spatial transform image processing system
US4571632A (en) 1983-08-26 1986-02-18 The United States Of America As Represented By The Secretary Of The Army Alternate line interpolation method and apparatus
US4827344A (en) 1985-02-28 1989-05-02 Intel Corporation Apparatus for inserting part of one video image into another video image
JPH0824336B2 (en) 1986-05-30 1996-03-06 株式会社東芝 Image information processing device
US4855934A (en) * 1986-10-03 1989-08-08 Evans & Sutherland Computer Corporation System for texturing computer graphics images
US5129013A (en) 1987-10-13 1992-07-07 At&T Bell Laboratories Graphics image editor
US4831447A (en) * 1987-11-16 1989-05-16 The Grass Valley Group, Inc. Method and apparatus for anti-aliasing an image boundary during video special effects
US5317678A (en) 1989-03-15 1994-05-31 Hitachi, Ltd. Method for changing color of displayed images by use of color components
US5218671A (en) 1989-05-31 1993-06-08 Computer Design, Inc. Image color correction system and method
KR920010811B1 (en) 1990-05-10 1992-12-17 주식회사 금성사 Tv teletext apparatus
US5022085A (en) * 1990-05-29 1991-06-04 Eastman Kodak Company Neighborhood-based merging of image data
JP2913797B2 (en) 1990-08-10 1999-06-28 ソニー株式会社 Image scaling processing method
US5140416A (en) 1990-09-18 1992-08-18 Texas Instruments Incorporated System and method for fusing video imagery from multiple sources in real time
US5347622A (en) * 1991-04-12 1994-09-13 Accom Inc. Digital image compositing system and method
US5146325A (en) 1991-04-29 1992-09-08 Rca Thomson Licensing Corporation Video signal decompression apparatus for independently compressed even and odd field data
FR2681967B1 (en) 1991-10-01 1994-11-25 Electronics For Imaging Inc METHOD AND APPARATUS FOR CHANGING THE COLORS OF AN IMAGE USING A COMPUTER.
US5325449A (en) 1992-05-15 1994-06-28 David Sarnoff Research Center, Inc. Method for fusing images and apparatus therefor
US5297557A (en) 1992-10-14 1994-03-29 Del Mar Avionics Stress test system with bidirectional filter
US5450134A (en) 1993-01-12 1995-09-12 Visual Automation Systems, Inc. Video facility management system for encoding and decoding video signals to facilitate identification of the video signals
US5557334A (en) 1993-01-12 1996-09-17 Visual Automation Systems, Inc. Apparatus for tracking the flow of video signals by incorporating patterns of machine readable signals which will appear at predetermined locations of a television picture
US5491516A (en) 1993-01-14 1996-02-13 Rca Thomson Licensing Corporation Field elimination apparatus for a video compression/decompression system
US5703659A (en) 1993-06-21 1997-12-30 Nec Corporation Method of reducing and magnifying picture size of a video composite signal
US5444835A (en) 1993-09-02 1995-08-22 Apple Computer, Inc. Apparatus and method for forming a composite image pixel through pixel blending
US5659639A (en) 1993-11-24 1997-08-19 Xerox Corporation Analyzing an image showing editing marks to obtain category of editing operation
US5625421A (en) 1994-01-14 1997-04-29 Yves C. Faroudja Suppression of sawtooth artifacts in an interlace-to-progressive converted signal
US5630037A (en) 1994-05-18 1997-05-13 Schindler Imaging, Inc. Method and apparatus for extracting and treating digital images for seamless compositing
US5510843A (en) 1994-09-30 1996-04-23 Cirrus Logic, Inc. Flicker reduction and size adjustment for video controller with interlaced video output
JP2869006B2 (en) 1994-10-13 1999-03-10 インターナショナル・ビジネス・マシーンズ・コーポレイション Video signal processing apparatus and video signal processing method
JP2856386B2 (en) 1994-10-26 1999-02-10 松下電器産業株式会社 Color adjustment device and method
US5581667A (en) * 1994-12-23 1996-12-03 Xerox Corporation Electronic trapping system for digitized text and images
GB2298101B (en) * 1995-02-20 1999-04-28 Sony Uk Ltd Frequency separation of image data
US5661525A (en) 1995-03-27 1997-08-26 Lucent Technologies Inc. Method and apparatus for converting an interlaced video frame sequence into a progressively-scanned sequence
US5703654A (en) 1995-06-30 1997-12-30 Nippon Steel Corporation Video signal encoder
US5532751A (en) 1995-07-31 1996-07-02 Lui; Sam Edge-based interlaced to progressive video conversion system
IL114839A0 (en) 1995-08-04 1997-02-18 Spiegel Ehud Apparatus and method for object tracking
US5875267A (en) * 1995-08-21 1999-02-23 Integrated Device Technology, Inc. Fast digital image sharpening method and structure
US5633687A (en) 1995-10-23 1997-05-27 C-Cube Microsystems Method and system for providing an interlaced image on an display

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4698666A (en) * 1985-07-12 1987-10-06 The Grass Valley Group, Inc. Video key glow and border generator
US5241372A (en) * 1990-11-30 1993-08-31 Sony Corporation Video image processing apparatus including convolution filter means to process pixels of a video image by a set of parameter coefficients
EP0517035A2 (en) * 1991-06-06 1992-12-09 Eastman Kodak Company Method for merging images
US5557339A (en) * 1993-04-15 1996-09-17 Ultimatte Corporation Screen filtering boundary detection for noise filtering prior to image compositing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6473132B1 (en) 1999-09-09 2002-10-29 Media 100 Inc. Method and apparatus for effecting video transitions
US6243143B1 (en) 1999-09-21 2001-06-05 Media 100 Inc. Effecting video transitions between video streams
US6362854B1 (en) 1999-11-16 2002-03-26 Media 100 Inc. Effecting video transitions between video streams with a border

Also Published As

Publication number Publication date
AU6788998A (en) 1998-10-30
JP2001519064A (en) 2001-10-16
US6269195B1 (en) 2001-07-31
CA2285088A1 (en) 1998-10-15
EP0972403A1 (en) 2000-01-19

Similar Documents

Publication Publication Date Title
US6269195B1 (en) Apparatus and methods for selectively feathering a composite image
JP3830555B2 (en) Method and apparatus for correcting original video
US7084875B2 (en) Processing scene objects
US7496224B2 (en) Method for rendering digital radiographic images for display based on independent control of fundamental image quality parameters
US7889939B2 (en) Technique for simulating film grain using frequency filtering
US7885454B1 (en) Recursive filters on GPUs
US7792383B2 (en) Apparatus and method for creating effects in video
US5710839A (en) Method and apparatus for obscuring features of an image
Mitsunaga et al. Autokey: Human assisted key extraction
US7577313B1 (en) Generating synthesized texture in differential space
US8594445B2 (en) Fast bilateral filtering using rectangular regions
US5995115A (en) Computer system process and user interface for providing intelligent scissors for image composition
Yee et al. Segmentation and adaptive assimilation for detail-preserving display of high-dynamic range images
US6137919A (en) Apparatus and methods for feathering a composite image
WO2014008329A1 (en) System and method to enhance and process a digital image
GB2312120A (en) Producing a transition region surrounding an image
EP0584941B1 (en) Methods and apparatus for generating graphic patterns
Schedl et al. Simulating Partial Occlusion in Post-Processing Depth-of-Field Methods
JPH07134769A (en) Anti-aliasing processing method for image synthesis
Bijwe et al. Exemplar-Based Image Inpainting for Region Filling & Object Removal
Lippman The graphic-photographic computer: aspects of interpolation
EP0453244A2 (en) Image processing apparatus
Liff et al. An Image Enhancement Algorithm Based Upon The Photographic Adjacency Effect
WO2000063843A1 (en) A method and apparatus for hierarchically combining regions
JPH05183810A (en) Digital vedio effect device

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AU CA CN DE GB JP

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT SE

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 67889/98

Country of ref document: AU

ENP Entry into the national phase

Ref document number: 2285088

Country of ref document: CA

Ref country code: CA

Ref document number: 2285088

Kind code of ref document: A

Format of ref document f/p: F

ENP Entry into the national phase

Ref country code: JP

Ref document number: 1998 542845

Kind code of ref document: A

Format of ref document f/p: F

WWE Wipo information: entry into national phase

Ref document number: 1998913302

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1998913302

Country of ref document: EP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

WWW Wipo information: withdrawn in national office

Ref document number: 1998913302

Country of ref document: EP