Color-balance demo with GPU computing
Version 1.0.0.1 (8.17 MB) by
Kye Taylor
Use GPU in MATLAB to perform white-balance operation to input image.
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 (2026). Color-balance demo with GPU computing (https://in.mathworks.com/matlabcentral/fileexchange/41089-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 LinuxCategories
Find more on GPU Computing in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: MATLAB for CUDA Programmers
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
