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

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

0 Comments

preet

Products

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

0 Comments

Walter Roberson

Contact us