MATLAB Answers


problem to adding pixel values?

Asked by preet
on 23 Feb 2013

when i am adding the pixel value of red , green , blue component separately of colored image it always give 255 maximum .whats the problem??



No products are associated with this question.

1 Answer

Answer by Walter Roberson
on 23 Feb 2013
 Accepted answer

Try this at the command line:

uint8(255) + uint8(2) 

And then this

double(uint8(255)) + double(uint8(2))


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today