Abstract
In this paper, we propose a multi-camera application capable of processing high resolution images and extracting features based on colors patterns over graphic processing units (GPU). The goal is to work in real time under the uncontrolled environment of a sport event like a football match. Since football players are composed for diverse and complex color patterns, a Gaussian Mixture Models (GMM) is applied as segmentation paradigm, in order to analyze sport live images and video. Optimization techniques have also been applied over the C++ implementation using profiling tools focused on high performance. Time consuming tasks were implemented over NVIDIA’s CUDA platform, and later restructured and enhanced, speeding up the whole process significantly. Our resulting code is around 4–11 times faster on a low cost GPU than a highly optimized C++ version on a central processing unit (CPU) over the same data. Real time has been obtained processing until 64 frames per second. An important conclusion derived from our study is the scalability of the application to the number of cores on the GPU.
Similar content being viewed by others
References
Bacon, D., Graham, S.L., Sharp, O.J.: Compiler transformations for high-performance computing. ACM Comput. Surv. 26, 45–420 (1993)
Bayer, B.E.: Bayer. United States Patent num. 3971065 (1975). http://patent.ipexl.com/US/3971065.html
Bilmes, J.: A gentle tutorial of the em algorithm and its application to parameter estimation for gaussian mixture and hidden markov models. Technical report (1998)
Buckley, K., Vaddiraju, A., Perry, R.: A new pruning/merging algorithm for mht multitarget tracking. In: Radar-2000 (2000)
Che, S., Boyer, M., Meng, J., Tarjan, D., Sheaffer, J.W., Skadron, K.: A performance study of general-purpose applications on graphics processors using cuda. J. Parallel Distributed Comput. 68(10), 1370–1380 (2008). ISSN 0743-7315. doi:10.1016/j.jpdc.2008.05.014. http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.143.4849
Chen, T.Q., Lu, Y.: Color image segmentation: an innovate approach. Pattern Recogn. 35, 395–405 (2001)
Cheng, H.D., Sun, Y.: A hierarchical approach to color image segmentation using homogeneity. IEEE Trans. Image Process. 9, 2071–2082 (2000)
NVIDIA Corp. CUDA 2.0 Programming Guide. NVIDIA, 2008. http://www.nvidia.es
Martínez del Rincón, J., Herrero-Jaraba, J.E., Gómez, J.R., Orrite-Uruńuela, C., Medrano, C., Montańés, M.A.: Multi-camera sport player tracking with bayesian estimation of measurements. Comput. Vision Image Understanding (2007)
Martínez del Rincón, J., Orrite Uruńuela, C.: Feature-based human tracking: from coarse to fine. PhD thesis. Zaragoza, University of Zaragoza, Zaragoza, Dic 2008. Presented: December 2008
Fung, J., Mann, S.: Using multiple graphics cards as a general purpose parallel computer: applications to computer vision. In: ICPR ’04: Proceedings of the Pattern Recognition, 17th International Conference on (ICPR’04), vol. 1, pp. 805–808, IEEE Computer Society, Washington, DC, USA (2004). ISBN 0-7695-2128-2. doi:10.1109/ICPR.2004.968
Funk, N.: A study of the kalman filter applied to visual tracking. Technical report, University of Alberta (2003)
Gad, A., Farooq, M., Serdula, J., Peters, D.: Multitarget tracking in a multisensor multiplatform environment. In: The Seventh International Conference on Information Fusion, pp. 206–213, Stockholm, Sweden (2004)
Garland, M., Le Grand, S., Nickolls, J., Anderson, J., Hardwick, J., Morton, S., Phillips, E., Zhang, Y., Volkov, V.: Parallel computing experiences with cuda. Micro, IEEE 28(4), 13–27 (2008). doi:10.1109/MM.2008.57
Gavrila, D., Philonim, V.: Real time object detection for smart vehicles. In: Proceedings of Seventh International Conference on Computer Vision, pp. 87–93 (1999)
Gómez, J.R., Herrero, J.E., Medrano, C., Orrite, C.: Multi-sensor system based on unscented kalman filter. In: Proceedings of Image Processing (VIIP), IASTED International Conference on Visualization, pp. 13–18 (2006)
Software development products Intel® Intel ® VTune Analyzer. Intel Corporation (2009)
Isard, M., Blake, A.: Condensation conditional density propagation for visual tracking. Int. J. Comput. Vision, 29(1), 5–28 (1998). ISSN 0920-5691. doi:10.1023/A:1008078328650
Kumar, N.S.L.P., Satoor, S., Buck, I.: Fast parallel expectation maximization for gaussian mixture models on gpus using cuda. In: 10th IEEE International Conference on High Performance Computing and Communications, pp. 103–109 (2009). doi:10.1109/HPCC.2009.45
Lu, P., Oki, H., Frey, C., Chamitoff, G., Chiao, L., Fincke, E., Foale, C., Magnus, S., McArthur, W., Tani, D., Whitson, P., Williams, J., Meyer, W., Sicker, R., Au, B., Christiansen, M., Schofield, A., Weitz, D.: Orders-of-magnitude performance increases in gpu-accelerated correlation of images from the international space station. J. Real-Time Image Process. (2009). doi:10.1007/s11554-009-0133-1
McLachlan, G.J., Krishnan, T.: The EM Algorithm and Extensions. 2 edn. Wiley Series in Probability and Statistics. Wiley, New York, March 2008. ISBN 0471201707. http://www.amazon.com/exec/obidos/redirect?tag=citeulike07-20&path=ASIN/0471201707
Nguyen, H.: GPU Gems 3. Addison-Wesley, Professional, Reading, August 2007. ISBN 0321515269
Owens, J.D., Houston, M., Luebke, D., Green, S., Stone, J.E., Phillips, J.C.: Gpu computing. In; Proceedings of the IEEE, vol. 96, no. 5, pp. 879–899 (2008). doi:10.1109/JPROC.2008.917757
Owens, J.D., Luebke, D., Govindaraju, N., Harris, M., Krüger, J., Lefohn, A.E., Purcell, T.J.: A survey of general-purpose computation on graphics hardware. Comput. Graphics Forum 26(1), 80–113, March 2007. ISSN 1467-8659. doi:10.1111/j.1467-8659.2007.01012.x
Pérez, P., Hue, C., Vermaak, J., Gangnet, M.: Color-based probabilistic tracking. In: ECCV ’02: Proceedings of the 7th European Conference on Computer Vision-Part I, pp. 661–675, Springer, London (2002). ISBN 3-540-43745-2
Pharr, M., Fernando, R.: GPU Gems 2: Programming Techniques for High-Performance Graphics and General-Purpose Computation. Addison-Wesley Professional, Reading, March 2005. ISBN 0321335597. http://www.amazon.com/exec/obidos/redirect?tag=citeulike07-20&path=ASIN/0321335597
Ryoo, S., Rodrigues, C.I., Baghsorkhi, S.S., Stone, S.S., Kirk, D.B., Hwu, W.W.: Optimization principles and application performance evaluation of a multithreaded gpu using cuda. In: PPoPP ’08: Proceedings of the 13th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, pp. 73–82. ACM, New York (2008). ISBN 978-1-59593-795-7. doi:10.1145/1345206.1345220
Schneider, S., Yeom, J., Rose, B., Linford, J.C., Sandu, A., Nikolopoulos, D.S.: A comparison of programming models for multiprocessors with explicitly managed memory hierarchies. SIGPLAN Not., 44(4), 131–140 (2009). ISSN 0362-1340. doi:10.1145/1594835.1504197
Sinha, S.N., Frahm, J., Pollefeys, M., Genc, Y.: Gpu-based video feature tracking and matching. Technical report, In: Workshop on Edge Computing Using New Commodity Architectures (2006)
Smith, A.R.: Color gamut transform pairs. In: SIGGRAPH ’78: Proceedings of the 5th Annual Conference on Computer Graphics and Interactive Techniques, pp. 12–19. ACM, New York (1978). doi:10.1145/800248.807361
Tuytelaars, T., Mikolajczyk. K.: Local invariant feature detectors: a survey. Found. Trends. Comput. Graph. Vis. 3(3):177–280 (2008). ISSN 1572-2740. doi:10.1561/0600000017
van der Laan, W.J.: Decuda and cudasm, the cubin utilities package. GIThub (2009)
Acknowledgments
This work was supported in part by grants TIN2010-21291-C02-01, TIN2007-66423 and TIN2007-60625 (Spanish Government and European ERDF), gaZ: T48 research group (Aragón Government and European ESF), Consolider CSD2007-00050 (Spanish Government), and HiPEAC-2 NoE (European FP7/ICT217068).
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Montañés Laborda, M.A., Torres Moreno, E.F., Martínez del Rincón, J. et al. Real-time GPU color-based segmentation of football players. J Real-Time Image Proc 7, 267–279 (2012). https://doi.org/10.1007/s11554-011-0194-9
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11554-011-0194-9