Skip to main content

GPU-Accelerated Histogram Generation on Smart-Phone and Webbrowser

  • Conference paper
  • First Online:
Security, Privacy, and Anonymity in Computation, Communication, and Storage (SpaCCS 2017)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 10658))

  • 2908 Accesses

Abstract

Histogram is a critical component of algorithms in image processing to count tonal percentage. The performance of generating histogram sequentially does not satisfy the demand of realtime applications on smart phone and webbrowser. This paper proposes a two-pixel voting scheme (2PVS) for histogram generation on GPU. Compared with previous methods, the scale of problem can be cut down by a half using 2PVS. Every two adjacent pixels are considered as one object to be voted into a bin of histogram, followed by a recursive texture reduction process. We implement this method with graphics interface, which is compatible with embedded device and webbrowser. Experiments show that our method runs 0.3 to 1.9 times faster than the baseline method on smartphone while 1.2 to 2.6 times faster on webbrowser.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Otsu, N.: A threshold selection method from gray-level histograms. Automatica 11(285–296), 23–27 (1975)

    Google Scholar 

  2. Kapur, J.N., Sahoo, P.K., Wong, A.K.: A new method for gray-level picture thresholding using the entropy of the histogram. Comput. Vis. Graph. Image Process. 29(3), 273–285 (1985)

    Article  Google Scholar 

  3. Sezgin, M., et al.: Survey over image thresholding techniques and quantitative performance evaluation. J. Electron. Imaging 13(1), 146–168 (2004)

    Article  Google Scholar 

  4. Shams, R., Sadeghi, P., Kennedy, R., Hartley, R.: Parallel computation of mutual information on the GPU with application to real-time registration of 3D medical images. Comput. Methods Programs Biomed. 99(2), 133–146 (2010)

    Article  Google Scholar 

  5. Sun, W., Lu, Y., Wu, F., Li, S.: Real-time screen image scaling and its GPU acceleration. In: 2009 16th IEEE International Conference on Image Processing (ICIP), pp. 3285–3288. IEEE (2009)

    Google Scholar 

  6. Messom, C., Barczak, A.: Stream processing of integral images for real-time object detection. In: 2008 Ninth International Conference on Parallel and Distributed Computing, Applications and Technologies, PDCAT 2008, pp. 405–412. IEEE (2008)

    Google Scholar 

  7. Zhao, H., Mao, X., Jin, X., Shen, J., Wei, F., Feng, J.: Real-time saliency-aware video abstraction. Vis. Comput. 25(11), 973–984 (2009)

    Article  Google Scholar 

  8. Zouaneb, I., Belarbi, M., Chouarfia, A.: Multi approach for real-time systems specification: case study of GPU parallel systems. Int. J. Big Data Intell. 3(2), 122–141 (2016)

    Article  Google Scholar 

  9. Jung, Y.H., Kim, J., Feng, D., Fulham, M.: Occlusion and slice-based volume rendering augmentation for PET-CT. IEEE J. Biomed. Health Inform. 21(4), 1005–1014 (2017)

    Article  Google Scholar 

  10. Gómez-Luna, J., González-Linares, J.M., Benavides, J.I., Guil, N.: An optimized approach to histogram computation on GPU. Mach. Vis. Appl. 24(5), 899–908 (2013)

    Article  Google Scholar 

  11. Podlozhnyuk, V.: Histogram calculation in CUDA. NVIDIA Corporation, White Paper (2007)

    Google Scholar 

  12. Shams, R., Barnes, N.: Speeding up mutual information computation using NVIDIA CUDA hardware. In: 9th Biennial Conference of the Australian Pattern Recognition Society on Digital Image Computing Techniques and Applications, pp. 555–560. IEEE (2007)

    Google Scholar 

  13. Eklund, A., Dufort, P., Forsberg, D., LaConte, S.M.: Medical image processing on the GPU-past, present and future. Med. Image Anal. 17(8), 1073–1094 (2013)

    Article  Google Scholar 

  14. NVIDIA: CUDA (2016). https://developer.nvidia.com/about-cuda

  15. Khronos: Open Computing Language (2016). https://www.khronos.org/opencl/

  16. Khronos: OpenGL ES (2016). https://www.khronos.org/opengles/

  17. Khronos: WebGL (2016). https://www.khronos.org/webgl/

  18. Fluck, O., Aharon, S., Cremers, D., Rousson, M.: GPU histogram computation. In: ACM SIGGRAPH 2006 Research Posters, p. 53. ACM (2006)

    Google Scholar 

  19. Scheuermann, T., Hensley, J.: Efficient histogram generation using scattering on GPUs. In: Proceedings of the 2007 Symposium on Interactive 3D Graphics and Games, pp. 33–37. ACM (2007)

    Google Scholar 

  20. Mr.doob: Three.js (2016). https://threejs.org/

Download references

Acknowledgement

This work is supported by NSFC (Project No.: 61502158) and HNSF (Project No.: 2017JJ3042) from PRC.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yi Xiao .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Jiang, H., Zhu, X., Xiao, Y., Luo, J., Zheng, Y. (2017). GPU-Accelerated Histogram Generation on Smart-Phone and Webbrowser. In: Wang, G., Atiquzzaman, M., Yan, Z., Choo, KK. (eds) Security, Privacy, and Anonymity in Computation, Communication, and Storage. SpaCCS 2017. Lecture Notes in Computer Science(), vol 10658. Springer, Cham. https://doi.org/10.1007/978-3-319-72395-2_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-72395-2_13

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-72394-5

  • Online ISBN: 978-3-319-72395-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics