Clear Filters
Clear Filters

displaying RGB colours using SURF.

10 views (last 30 days)
Sian Allerton
Sian Allerton on 27 Dec 2020
Commented: Image Analyst on 29 Dec 2020
I am trying to display a rgb colour map on a gridded surface using surf.
I have grids of each rgb colour. How do I combine to give the surf(x,y,z,C)?
Image Analyst
Image Analyst on 29 Dec 2020
Sorry Ameer, you're absolutely right. Sometimes I work on too many problems too close together. I must have gotten confused.

Sign in to comment.

Answers (1)

Ameer Hamza
Ameer Hamza on 27 Dec 2020
You can use texture mapping to display an RGB image on a surface(). See here: For example
img = imread('pears.png');
z = peaks(100);
surf(z, ...


Community Treasure Hunt

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

Start Hunting!