This code plots a selected part of a r-g-b image in 3D plot, using color of the corresponding pixels in image. The code waits for user to select an area in the image, processes the input and plots the result. In the result figure, each point and its color is corresponds with a pixel in image.
Alireza (2019). RGB Color Representation (https://www.mathworks.com/matlabcentral/fileexchange/52687-rgb-color-representation), MATLAB Central File Exchange. Retrieved .