problem to adding pixel values?

1 Ansicht (letzte 30 Tage)
preet
preet am 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??

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 23 Feb. 2013
Try this at the command line:
uint8(255) + uint8(2)
And then this
double(uint8(255)) + double(uint8(2))

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by