Color-balance demo with GPU computing

version (8.17 MB) by Kye Taylor
Use GPU in MATLAB to perform white-balance operation to input image.


Updated Thu, 01 Sep 2016 15:23:34 +0000

View License

This demo shows how to identify bottlenecks in code that is run on a CPU using the MATLAB Profiler.
The computations forming the bottleneck in this example are then executed on the system's GPU using the gpuArray() command and the interface to CUDA kernels.

Code to compare the calculations from the CPU and from the GPU is also provided.

Cite As

Kye Taylor (2022). Color-balance demo with GPU computing (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: MATLAB for CUDA Programmers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!