I have an image, and I want to get values of a parameter for each pixel of the image. The parameter is a function of the RGB values of the image. In order to evaluate the parameter, I need to perform basic arithmetic operations involving RGB values, but I am not able to to that as RGB values are scaled ones. e.g., if R=243, and I want to add 30 with it, the answer becomes 255 instead of 273, as that is the maximum permissible limit for the pixel intensity values. What I understand is that I cannot treat RGB values as general numeric entities. Any help regarding converting them into numerical values so that arithmetic operations can be performed is highly appreciated.
NOTE:-
class(X)
for your data X. Then take a look at this example, which shows that what you are observing has nothing to do with the fact that you data are RGB values:
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment