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

New to MATLAB?

problem to adding pixel values?

Asked by preet

preet

on 23 Feb 2013
Accepted Answer by Walter Roberson

Walter Roberson

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

preet

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson

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

Walter Roberson

Contact us