Skip to main content
Log in

Real-time dynamic tone-mapping operator on GPU

  • Special Issue
  • Published:
Journal of Real-Time Image Processing Aims and scope Submit manuscript

Abstract

This article presents the parallel implementation on a GPU of a real-time dynamic tone-mapping operator. The operator we describe in this article is generic and may be used by any application. However, the goal of our work is to integrate this operator into the graphic rendering process of a car driving simulator; thus, we studied its real-time implementation. The tone-mapping operator outputs a low dynamic range (LDR) image keeping as much as possible the contrast and luminance of the original input high dynamic range (HDR) image. It performs the mapping between the luminances of the original scene to the output device’s display values. We address the problem of mapping HDR images to standard displays. In this case, the tone mapping compresses the luminances ratio. Several tone-mapping operators can be found in the literature as well as some parallelizations. However, they use either static or adaptations of static operators. We have adapted the dynamic operator of Irawan and parallelized it on GPU. Algorithmic optimizations have been performed, and we have explored the different strategies of repartition of the computation among the CPU and the GPU. We have chosen to implement on the GPU the changes between the color spaces and the interpolation of the histogram which are the most time-consuming steps on the CPU (1–2 s per image 1,002 × 666). All of these optimizations lead to an increase of the processing rate and the number of HDR-quality images displayed to LDR per second. This operator has been implemented on a RISC processor Pentium 4 at 3.6 GHz and a GPU Nvidia 8800 GTX (728MB, 518GFLOPS). The execution speed has been multiplied by a factor of 15 compared to the naive implementation of the algorithm. The display rate reaches 30 images per second, which fulfills our goal for real-time video rate of 25 images per second.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

References

  1. Sivak, M., Schoettlen, B., Reed, M.P., Flannagan, M.J.: Influence of visibility out of the vehicle cabin on lane-change crashes. Accid. Ana. Prev. 38(5), 969–972 (2006)

    Google Scholar 

  2. Ferwerda, J.: Photographic tone reproduction for digital images. ACM transactions on graphics. In: Proceedings of SIGGRAPH 2002, vol. 21(3), pp. 267–276 (July 2002)

  3. Ward-Larsen, G.W., Rushmeier, H., Piatko, C.: A visibility matching tone reproduction operator for high dynamic range scenes. IEEE Trans. Vis. Comput. Graph. 3(4), 291–306 (1997)

    Google Scholar 

  4. Pattanaik, S.N., Tumblin, J., Yee, H., Greenberg D.P.: Time-dependent visual adaptation for fast realistic image display. In: Proceedings of the 27th Annual Conference on Computer Graphics and Interactive Techniques, pp. 47–54 (2000)

  5. Irawan, P., Ferwerda, J.A., Marschner, S.R.: Perceptually based tone mapping of high dynamic range image streams. In: Eurographics Symposium on Rendering, pp. 231–242, Konstanz, Germany, 29 June–1 July 2005

  6. Roch, B., Artusi, A., Michael, D., Chrysanthou Y., Chalmers, A.: Interactive local tone mapping operator with the support of graphics hardware. In: ACM Proceedings, SCCG Conference (2007)

  7. Goodnight, N., Wang, R., Woodley, C., Humphreys, G.: Interactive time-dependent tone mapping using programmable graphics hardware. In: Eurographics Symposium on Rendering (2003)

  8. Akil, M., Grandpierre, T., Perroton, L.: Dynamic tone-mapping operator: implementation case study on a RISC processor Pentium 4. In: ESIEE Internal Report (2009)

  9. Harris, M.J., Baxter, W.V., Scheuermann, T., Lastra A.: Simulation of cloud dynamics on graphics hardware. In: Proceedings of the ACM SIGGRAPH/EUROGRAPHICS Conference on Graphics hardware, pp. 92–101, Eurographics Association, San Diego, California (2003)

  10. Bolz, J., Farmer, I., Grinspun, E., Schröder, P.: Sparse matrix solvers on the gpu: conjugate gradients and multigrid. In: Proceedings of ACM SIGGRAPH, pp. 917–924, ACM, San Diego, California (2003)

  11. Krüger, J., Westermann, R.: Linear algebra operators for gpu implementation of numerical algorithms. In: ACM SIGGRAPH (2003)

  12. Geer, D.: Taking the graphics processor beyond graphics. Computer 38(9), 14–16 (2005)

    Article  Google Scholar 

  13. Mark, W., Glanville, R.S., Akeley, K., Kilgard, M.: Cg: a system for programming graphics hardware in a c-like language. In: International Conference on Computer Graphics and Interactive Techniques archive ACM SIGGRAPH, pp. 896–907, ACM, San Diego, California (2003)

  14. Microsoft.: DirectX9 SDK. http://www.microsoft.com/DirectX (2002)

  15. Buck, I., Foley, T., Horn, D., Sugerman, J., Fatahalian, K., Houston, M., Hanrahan, P.: Brook for gpus: stream computing on graphics hardware. In: ACM SIGGRAPH, pp. 777–786 (2004)

  16. Nvidia.: CUDA homepage. http://www.nvidia.com/object/cuda_home.html.

  17. Khronos Group.: OpenCL homepage. http://www.khronos.org/opencl/.

  18. Farrugia, J.P., Horain, P., Guehenneux, E., Alusse, Y.: Gpucv: a framework for image processing acceleration with graphics processors. In: IEEE International Conference on Multimedia and Expo (ICME 2006) (July 2006)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Laurent Perroton.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Akil, M., Grandpierre, T. & Perroton, L. Real-time dynamic tone-mapping operator on GPU. J Real-Time Image Proc 7, 165–172 (2012). https://doi.org/10.1007/s11554-011-0196-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11554-011-0196-7

Keywords

Navigation