Reduced complexity and blur technique for an electronic lighting system

Information

  • Patent Grant
  • 8077998
  • Patent Number
    8,077,998
  • Date Filed
    Tuesday, January 4, 2005
    20 years ago
  • Date Issued
    Tuesday, December 13, 2011
    13 years ago
Abstract
Digital blurring of an image is carried out by blurring using a linear or piecewise continuous blurring function. The blurring function blurs a rectangular portion of an image so that the blurring can be embodied by vertical blurring followed by halls on pull blow. Blurring is done by getting on portion of the line of pixels, adding and dividing by the number of pixels. All the columns are blurred, followed by all of the rows being blurred. The columns and rows can be blurred at the same time to maximize the number of cache hits.
Description
BACKGROUND

Electronically controlled stage lights may use a computer to control the output of a digitally, pixel level controllable, lighting projector. For example, a processor may produce a digital output that controls a digital micromirror based processing device, such as a DLP projector.


An image is used as the control for the projector. Different lighting effects may be carried out on the image which is used to drive the projector to produce the lighting output. Many of the image operations which were previously carried out by physical components, such as lenses, cut gobos, and the like may be effected by a digital electronic technique which simulates the effect of those physical components. Other effects are described in U.S. Pat. Nos. 5,828,485; 6,057,958, and others, and may include image rotation, image movement, or other image manipulation operations.


One such effect is a blur effect which has been traditionally carried out by a Gaussian type lens which blurs the image. The traditional thinking is that a digital version of the Gaussian blur would involve taking the original image pixel by pixel, and calculating a blurred value for each pixel in the blurred image based on the values of the pixels that surround the equivalent pixel in the source image.


Conventional Gaussian blurring would take the area of a blur window used in a calculation specified as a circle containing the source pixel, centered on the destination pixel, as shown in FIG. 1. Each of the source pixels would then be weighted by a value related to the radial distance from the pixel to the center of the circle, according to a Gaussian weighting. Pixels closest to the circle's center will have a greater weighting than pixels nearest the edge. A conventional Gaussian weighting is shown in FIG. 2. The weighting of the Gaussian would therefore weigh various pixels by different amounts.


SUMMARY

The present inventor recognized that the calculation load for such a blur would be overwhelming. For example, for large degree of blur, one might desire a circle of 32 pixel radius. This would involve a sequence of 3216 loads, multiplies and additions to calculate the value of each single pixel. Therefore, for a 720×480 pixel video screen (the size of the conventional DLP unit), this would require over 1.1 billion operations just to blur a single frame. This would become even more aggravated in a color, RGB image, which would require each color component to be blurred individually, tripling the above value. This has led those of ordinary skill in the art to conclude that it was impossible to digitally blur such an image.


The present system teaches optimizations and simplifications which may be used to allow blurring the image in a way that avoids the enormous calculation load described above.


According to a first aspect, a rectangular blur window is used to simplify the operation of blurring into two orthogonal dimensions of blur.


Another aspect simplifies the Gaussian into either a simple single-weighted curve, or to a piecewise continuous curve which simplifies the calculations and enables certain ones of the calculations to be stored within accumulators so that only a few new values need to be calculated for each blur neighborhood.





BRIEF DESCRIPTION OF THE DRAWINGS

These and other aspects, will now be described in detail with reference to the accompanying drawings, wherein:



FIG. 1 shows a conventional blur window;



FIG. 2 shows a conventional weighting of a blur curve;



FIG. 3 shows an exemplary hardware layout of the present system;



FIG. 4 shows a flowchart of operation of the hardware;



FIGS. 5 and 6 show an illustration of adding the different values while the window is moved.





DETAILED DESCRIPTION

An exemplary hardware layout embodying the present system is shown in FIG. 3. A control device 300 includes a user interface 305 which allows entry of commands to effect the output image signals, and image processor 310, responsive to the signals from the user interface 305, including a special blur module 315, and a memory 320 which stores prestored image features such as shapes and videos. The blur module 315 can include dedicated hardware to carry out the blur function described herein. Alternatively, the blur module 315 may include code that is written to execute on the processor device 310.


The control device 300 produces an output signal 325 which drives a DLP projector 330. The DLP projector 330 includes a DLP assembly 335 driven by a light source 340, and optics 345 which directs the light as shaped, processed and colored by the DLP. While the above shows the operation being carried out by a DLP, it should be understood that the operation can alternatively be carried out by any pixel level controllable light altering device. In addition, while FIG. 3 shows the controller 300 being physically separate from the projector 330, the controller 300 can be built into the projector 330, or parts of the controller 300 can be built into the projector 330.


The processing follows the flow shown in FIG. 4. Effectively, this process blurs the information within the window by blurring the image twice: first in the horizontal direction and then in the vertical direction. Two passes are used. Either a single row or column of pixels is being processed during a pass.


At any time during the process, FIG. 5 illustrates how the value of the destination or center pixels is represented by the sum of all pixels within the blur window, divided by a constant which is equal to the number of pixels in the blur window or width of the blur window. As the blur window steps across the image, the sum of all pixels inside the window changes. However, each single change only adds one single pixel and subtracts another single pixel. In FIG. 6, the pixel 600 is added, while the pixel 605 is subtracted.


The operation follows the flowchart shown in FIG. 4. At 400, the first blur column part, shown as 500 in FIG. 5, is obtained. The process may start at minus W pixels, where W is the width of the blur window, and end at N+W pixels, where N is the number of pixels in the row. This facilitates blurring edge pixels, using the outside (black) portions of the image for the blurring of the edges.


Each of the individual pixels within the area 505 is added to form the value SUM at 405. The center value, or the center pixel 505 is calculated as the value BLUR. BLUR is calculated as BLUR equals SUM/K at 410. The value of the pixel BLUR is stored as the new pixel value at 415.


At 420, this system tests to determine if the columns are completed. If not, then the next column part is obtained at 425. This includes loading and adding the next pixel, 600 in FIG. 6, and subtracting the oldest pixel, 605 in FIG. 6.


When all of the columns are done, shown as 420, then the next blur row part is obtained at 440, and the process continues to add the once-blurred values for each vertical part and divided by the value K. Again, the mathematics which is used is relatively simple, so the execution can be carried out extremely quickly.


Certain processors have difficulty in executing division, and in those processors, simplifications such as multiply and right shift can be used instead of division.


The above has described the blur window processing the entire image. Alternatively, simple extensions of the basic process can be carried out where the blur process operates only over portions of the image defined by preamble and post-amble code sections.


The process disclosed in FIG. 4 simplifies and allows the process of blurring to occur much more rapidly. According to another aspect, vertical and horizontal blurring may be carried out simultaneously using separate processing threads.


Even more rapid results may be obtained when reading and writing are carried out to cache lines within memory. During the horizontal portion of the operation, it is likely that each new pixel will be in the same cache line of memory, since the image scan lines tend to place horizontally adjacent pixels sequentially in memory. During the vertical or row processing portion, however, each new pixels will likely not be within the cache. This may reduce the performance of the blurring in the vertical direction.


According to another aspect of this system, a divided sum is stored for each whole or part column as a local copy. The blurred and divided sum is then used in place of each individual pixel within that column. This sum accumulates the values for the entire column. Since these sums are read and written many times during the blur process, but are not always in the same place, it becomes much more likely that cache hits will be obtained from these sums.


By improving the cache hits in this way, the technique may be limited by memory bandwidth instead of processing speed.


This system also requires that the sum register hold many pixel values with overflow and therefore requires that the sum register have more significant bits than the pixel itself. Assuming a pixel data and eight bits, a 16-bit sum register will hold 256 values without overflow. When blurring in a single pass, it may be necessary to use 32-bit sum registers.


Although only a few embodiments have been disclosed in detail above, other modifications are possible, and this disclosure is intended to cover all such modifications, and most particularly, any modification which might be predictable to a person having ordinary skill in the art. For example, while the above has described operating on a programmed processor, it is envisioned that this be done on a dedicated hardware card with registers and accumulators carrying out the blur much more quickly than is possible using a processor.


The above has described the noncontinuous blurring kernel as being simply a square function, with all values in the kernel of the blur receiving the same weight (here one). However, it may be possible to approximate the Gaussian curve using a piecewise continuous curve, in which the values towards the edge are weighted by a smaller value, e.g. one half, and values in the center are weighted by a higher value e.g. one. Similar simplifications to those given above are possible. If that piecewise continuous curve has two different weighting functions, then four pixels need to be processed each time the accumulators shift instead of two pixels being processed as in the first embodiment. Any non-continuous curve of this type can be used. Preferably, fewer than 20% of the values within the window are processed during each window shift.


All such modifications are intended to be encompassed within the following claims.


Also, only those claims which use the words “means for” are intended to be interpreted under 35 USC 112, sixth paragraph. Moreover, no limitations from the specification are intended to be read into any claims, unless those limitations are expressly included in the claims.

Claims
  • 1. A method, comprising: using a processor that is programmed for carrying out a blur on an image using a blurring kernel, where said processor is programmed for using said blurring kernel at different areas across an image from one edge to another edge; andusing values to blur edge pixels of the image based on areas that are not part of the image.
  • 2. A method as in claim 1, wherein said blurring kernel has a single weighting value for all values within the kernel.
  • 3. A method as in claim 1, wherein said blurring kernel has first and second weighting values for all values in the kernel.
  • 4. A method as in claim 1, wherein said blur is carried out on a rectangular portion of the image.
  • 5. A method as in claim 4, wherein said rectangular portion is a square portion.
  • 6. A method as in claim 4, wherein said carrying out a blur comprises first blurring in a first direction, and second blurring in a second orthogonal direction.
  • 7. A method as, in claim 6, wherein said first blurring and said second blurring are carried out serially, with said first blurring being carried out and then said second blurring being carried out.
  • 8. A method as in claim 6, wherein said first blurring and said second blurring are carried out substantially simultaneously.
  • 9. A method as in claim 7, wherein said first blurring, which is carried out first, is carried out in a vertical direction.
  • 10. A method, comprising: obtaining an image;using a processor that is programmed for digitally blurring the image using a rectangular blurring area to blur the image by using the program in the processor for moving a blurring kernel across the image where said blurring kernel blurs different areas of the image at different times by summing the image within the kernel at said different areas; andsaid processor-programmed for using a value other than from the image to blur edge areas of the image.
  • 11. A method as in claim 10, wherein said rectangular blurring area is carried out in two separate passes.
  • 12. A method as in claim 10, wherein said rectangular blurring area is blurred by using a vertical pass for vertical blurring and a horizontal pass for horizontal blurring.
  • 13. A method as in claim 10, wherein said digitally blurring comprises using a noncontinuous blurring kernel to blur pixels of the image.
  • 14. A method as in claim 13, wherein said noncontinuous blurring kernel is a blurring kernel which has a single weighting value for each value within the kernel.
  • 15. A method as in claim 13, wherein said noncontinuous blurring kernel is a blurring kernel which has two separate weighting values for different values within the kernel.
  • 16. A method as in claim 10, wherein said rectangular blurring area is blurred in two orthogonal directions which are calculated substantially simultaneously.
  • 17. A method as in claim 13 further comprising taking steps which improve a number of cache hits during said blurring.
  • 18. A method, comprising: obtaining an image; and using a processor which is programmed for digitally blurring the image using a rectangular blurring area to blur the image, said processor programmed for taking steps which improve a number of cache hits during said blurring, and wherein said taking steps comprises adjusting an order of pixel processing to improve a number of cache hits.
  • 19. A method, comprising: obtaining an image; and using a processor which is programmed for blurring the image by shifting a blurring window across the image, where said blurring window is programmed to change values of some, but not all, pixels within the window during each said shifting, said processor programmed for maintaining a sum of pixels in a cache memory, and using said sum for a subsequent shifting.
  • 20. A method as in claim 19, wherein said blurring comprises changing the values of only two pixels during each said shifting.
  • 21. A method as in claim 20, wherein said two pixels comprise edge pixels on both sides of the window.
  • 22. A method as in claim 19, wherein said blurring comprises changing the values of only four pixels during each shifting.
  • 23. A method as in claim 19, wherein said shifting comprises first shifting across the image in a first direction, and second shifting across the image in a second direction, substantially orthogonal to said first direction.
  • 24. A method as in claim 19, wherein said blurring comprises blurring a substantially rectangular area.
  • 25. A method as in claim 1, wherein said area that is not part of the image is a value indicative of black.
  • 26. A method as in claim 1, further comprising arranging pixels in cache memory in a way that improves a number of cache hits during said blur.
  • 27. A method as in claim 10, wherein said value other than from the image is a value indicative of black.
  • 28. A method as in claim 18, wherein said digitally blurring comprises moving a kernel across the image where said blurring kernel blurs different areas of the image at different times by summing the part of the image which in the kernel at said different areas.
  • 29. A method as in claim 18, wherein said blurring comprises using a value other than within the image at to blur edges of the image.
  • 30. A method as in claim 29, wherein said value is a value indicative of black.
Parent Case Info

This application claims priority from Provisional application No. 60/534,607, filed Jan. 5, 2004.

US Referenced Citations (55)
Number Name Date Kind
5414328 Hunt et al. May 1995 A
5502627 Hunt et al. Mar 1996 A
5588021 Hunt et al. Dec 1996 A
5769531 Hunt et al. Jun 1998 A
5788365 Hunt et al. Aug 1998 A
5812596 Hunt et al. Sep 1998 A
5828485 Hewlett Oct 1998 A
5862400 Reed et al. Jan 1999 A
5921659 Hunt et al. Jul 1999 A
5969485 Hunt Oct 1999 A
5983280 Hunt Nov 1999 A
6029122 Hunt Feb 2000 A
6057958 Hunt May 2000 A
6175771 Hunt et al. Jan 2001 B1
6256136 Hunt Jul 2001 B1
6466357 Hunt Oct 2002 B2
6538797 Hunt Mar 2003 B1
6549326 Hunt et al. Apr 2003 B2
6597132 Hunt et al. Jul 2003 B2
6801353 Hunt et al. Oct 2004 B2
6891656 Hunt May 2005 B2
6894443 Hunt et al. May 2005 B2
6934071 Hunt Aug 2005 B2
7057797 Hunt Jun 2006 B2
7161562 Hunt Jan 2007 B1
7230752 Hewlett et al. Jun 2007 B2
7270444 Hunt et al. Sep 2007 B2
20010050800 Hunt Dec 2001 A1
20020070689 Hunt et al. Jun 2002 A1
20020109905 Hunt et al. Aug 2002 A1
20020141037 Hunt et al. Oct 2002 A1
20030107795 Hunt Jun 2003 A1
20040061926 Hunt Apr 2004 A1
20040125602 Hunt et al. Jul 2004 A1
20040141721 Hatalsky Jul 2004 A1
20040160198 Hewlett et al. Aug 2004 A1
20050041229 Meisburger Feb 2005 A1
20050057543 Hunt et al. Mar 2005 A1
20050083487 Hunt et al. Apr 2005 A1
20050086589 Hunt Apr 2005 A1
20050094635 Hunt May 2005 A1
20050169514 Prince Aug 2005 A1
20050190985 Hunt Sep 2005 A1
20050200318 Hunt et al. Sep 2005 A1
20050200625 Hunt Sep 2005 A1
20050206328 Hunt Sep 2005 A1
20050207163 Hunt Sep 2005 A1
20050213335 Hunt Sep 2005 A1
20060158461 Reese et al. Jul 2006 A1
20060187532 Hewlett et al. Aug 2006 A1
20060227297 Hunt Oct 2006 A1
20070165905 Hunt Jul 2007 A1
20070168851 Hunt Jul 2007 A1
20070168862 Hunt Jul 2007 A1
20070211171 Hunt et al. Sep 2007 A1
Related Publications (1)
Number Date Country
20050190985 A1 Sep 2005 US
Provisional Applications (1)
Number Date Country
60534607 Jan 2004 US