CA2285088A1 - 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
CA2285088A1
CA2285088A1 CA002285088A CA2285088A CA2285088A1 CA 2285088 A1 CA2285088 A1 CA 2285088A1 CA 002285088 A CA002285088 A CA 002285088A CA 2285088 A CA2285088 A CA 2285088A CA 2285088 A1 CA2285088 A1 CA 2285088A1
Authority
CA
Canada
Prior art keywords
image
matte
box
matte image
feathering
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.)
Abandoned
Application number
CA002285088A
Other languages
French (fr)
Inventor
Chia-Sheng Chou
Robert Gonsalves
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.)
Avid Technology Inc
Original Assignee
Individual
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 Individual filed Critical Individual
Publication of CA2285088A1 publication Critical patent/CA2285088A1/en
Abandoned legal-status Critical Current

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

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

WO 98/d6013 PCT/US98/06258 APPARATUS AND METHODS FOIL SELECTIVELY FEATHERING
THE MATTE IMAGE OF A COMPOSITE IMAGE
Field of The i nve ' 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.
Bac ground of T'he Invention 1 o 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 15 image. The graphics editor feathers the border bet,Neen 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 t;he two people walking in the desert.
The graphics editor generally manipulates a. number of images to create a composite 2o 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 :>econd 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 25 be ignored. Similarly, the dark area 36 of the mattf; 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 3o 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 berveen 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 ftmction. 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+,. Each pixel value is equally weighted as indicated by the flat slope of the box filtering ~ o 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+,. 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 fitter due to box filtering using an even width box f lter.
3o 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 Gaus:cian 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.
t o 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 sk:y 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 2o processing area. the resulting image may not be accurate. For example, the resulting image may include overlapping portions or pinched corners.
Summary of th.e 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 3o 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 fast 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 t0 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., nx 1 and 1 xm) 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 2o 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 3o 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;
to Fig. 7a is a graph of a horizontal filtering fimction 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 Descri 'o 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 2o 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 wil:h 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 di:;play data 54 to allow the user to input desired characteristics for the image composition. Througih 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 1:o 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 3o module 68 receives edge biasing data 66, which m;ay be defined by user input 50 through the graphical user interface module 52. The edge biassing 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 to 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 2o of the modules in Fig. S. 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, iJNIX, 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 _'7_ 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 vto 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 1o 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 pc;rformed by special purpose hardware 2o 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 indicai:e 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 _g_ 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 f ltered. 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 f ltered using a 1 xm vertical box filter with tail canceling.
t o When filtering in the horizontal direction using an nx 1 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 Ra,b according to the following equation.
wherein Aa,b is an input pixel of a source image:
~,b Aa-(n-12,6 + ... -I- Aa_Lb + Aa.b + Aa+1,b + ... ~i- Aa+(a-p;o.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 Ra,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 2o horizontal filtering is then set equal to the average pixel value using the following equation:
Ba.b - Ra.b~n (Eq. 2) Next, a value for a next pixel Ba+,,b is determined. The nxl box filter determines a new 25 intermediate sum Ra+,,b. Rather than recalculating the intermediate sum Ra+,.b using Eq. ( 1 ), the previously stored intermediate sum Ra,b is used to determine the new intermediate sum Ra+,,b. In particular, the new intermediate sum Ra+,.b is determined according to the following equation:
+I.b - ~,b - Aa-(n-1~2.b + Aa+((n-1~2~1,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 R8+,,b is stored in memory and used to determine the value for pixel B$+,,b by dividing Ba+,,b by n. The ti~il canceling process is repeated when determining a new intermediate value (e.g., R.a+z,b) and a new value for pixel (e.g., Ba,z,b) until the end of the horizontal line is reached. The process i.s then repeated for a next horizontal line beginning with a determination of an initial intermediate value Ra,b+, 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.
1o 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-lu2.b + ... + Bab_, ~'. Ba.b + Ba.b+~ + ... + Ba,,~(~_,)IZ (Eq.
4) Then, the value of the pixel Ca,b is determined using the following equation:
Ca.b - Sa.Hn (Eq- 5) After the value of the pixel Ce.b has been determined, the vertical filter proceeds to process a new pixel Ca.e,, in the vertical direction. In particular, a new intermediate sum Sa,b+, is determined according to the following equation:
Sa.nm - sa,b - Ba.b-(n-yz + 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,~,. Furthermore, the added pixel value corresponds to the pixel that is newly covered by the vertical box filter after it is moved to 3o process the next pixel Ca,b+,. Then, the value of the; pixel Ca,~, is determined using the following equation:

-I O-Ca.b+1 ' sa.b+l~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 nx 1 and 1 xm box filters, respectively to produce ~ 0 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 include 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 arnount of edge biasing by moving a slider 1 o 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.
~5 When a user selects larger edge biasing vallues, 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 2o 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 feather°.ing 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 25 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 Pan>
3o 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: _ P'ab = Peb (Eq. 9) 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:
to P' ~b = ( 1.0 + E/ 100) * Pab (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:
2o P'a,b = LUT [Pa.b] (Eq. 12) Thus, a pixel P'~.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 Pe_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,~ and a look up table with 256 values representing a user selected 3o 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'~b of 0. When the value of Pe,b= 128, then the output value P'ab = 0 and when P~,b = 255, then P'8,6 = 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 Pub, 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'ae 128 and when the input value of Pa,b 255 the resulting output value of P'$,e = 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 1o compared to feathering in. According to this selection, when the input to the look up table is a value of 0 for P~,b, the output value of P'~_6 0. When the input value of P
a.e 128, then the value of P'a;b=255 and when the input value of P e,b 255, the resulting output value of P'a,e 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 15 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 rei:erence to Figs. 7a and 7b. Fig. 7a illustrates how a 5x1 horizontal box filter calculates a pixel Eta.b. The 5x1 horizontal box filter sets the 2o value of the pixel Ba.b to be the average of Aa,b, its two neighbors to the left Aa_z.b and Aa_,_b and its two neighbors to the right Aa+,,b and Ae+,,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 25 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 1 x5 vertical box filter for calculating a pixel Cab. 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 30 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 t o 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 (23)

-16-
1. A method for feathering a first image and a second image in a composite frame, 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; and generating a composite image by blending the first image and the second image together according to the processed matte image.
2. 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 applying a box filter sequentially to pixels in an image and includes a step of tail canceling to compute a result of box filtering.
3. 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.
4. 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.
5. 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 in 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.
6. 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.
7. The method of claim 1, further comprising:
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.
8. The method of claim 7, 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.
9. The method of claim 8, wherein the desired direction includes at least one of feathering in, feathering out or equal feathering.
10. The method of claim 8, wherein the edge biasing function changes contrast and brightness in the feathered matte image.
11. An apparatus for feathering a first image and a second image in a composite frame, 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, and generates a composite image by blending the first image and the second image together according to the box-filtered processed matte image.
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 in 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 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.
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.
CA002285088A 1997-04-04 1998-03-30 Apparatus and methods for selectively feathering the matte image of a composite image Abandoned CA2285088A1 (en)

Applications Claiming Priority (5)

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
PCT/US1998/006258 WO1998046013A1 (en) 1997-04-04 1998-03-30 Apparatus and methods for selectively feathering the matte image of a composite image

Publications (1)

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

Family

ID=26690690

Family Applications (1)

Application Number Title Priority Date Filing Date
CA002285088A Abandoned CA2285088A1 (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)

Families Citing this family (39)

* 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
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

Family Cites Families (44)

* 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
US4698666A (en) 1985-07-12 1987-10-06 The Grass Valley Group, Inc. Video key glow and border generator
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
JP2956213B2 (en) 1990-11-30 1999-10-04 ソニー株式会社 Image processing device
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
US5185808A (en) * 1991-06-06 1993-02-09 Eastman Kodak Company Method for merging images
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
DE4492446B4 (en) 1993-04-15 2005-10-06 Ultimatte Corp., Chatsworth Screen filtering boundary detection for an image composition
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

Also Published As

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

Similar Documents

Publication Publication Date Title
US6269195B1 (en) Apparatus and methods for selectively feathering a composite image
EP1501049B1 (en) Method for rendering digital radiographic images for display based on independent control of fundamental image quality parameters
US7084875B2 (en) Processing scene objects
JP3830555B2 (en) Method and apparatus for correcting original video
US7382378B2 (en) Apparatus and methods for stenciling an image
US7792383B2 (en) Apparatus and method for creating effects in video
JP2001229377A (en) Method for adjusting contrast of digital image by adaptive recursive filter
US20060250415A1 (en) Anti-aliasing content using opacity blending
Boschetti et al. High dynamic range image tone mapping based on local histogram equalization
GB2518603A (en) Generating an output frame for inclusion in a video sequence
US7577313B1 (en) Generating synthesized texture in differential space
MXPA05012295A (en) Method and apparatus for representing image granularity by one or more parameters.
JPH0473189B2 (en)
US5801678A (en) Fast bi-linear interpolation pipeline
Yee et al. Segmentation and adaptive assimilation for detail-preserving display of high-dynamic range images
JPH02294170A (en) Iterative image bleeding effect equipment
AU6787298A (en) Computer system process and user interface for providing intelligent scissors for image composition
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
CN105224538B (en) The dithering process method and apparatus of image
JP2946160B2 (en) Video signal shadowing method
US6714210B1 (en) Continuous kernel image interpolation
EP0584941B1 (en) Methods and apparatus for generating graphic patterns
JPH07134769A (en) Anti-aliasing processing method for image synthesis

Legal Events

Date Code Title Description
FZDE Discontinued