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))


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!