Filter löschen
Filter löschen

how to increase a pixel value

1 Ansicht (letzte 30 Tage)
Vishnu M S
Vishnu M S am 18 Jan. 2013
I have an M X N image named H. How can I increase the value of a particular pixel? Please help

Akzeptierte Antwort

Algorithms Analyst
Algorithms Analyst am 18 Jan. 2013
you need to find the location of that pixel and then need some operations. like
[Rows Cols NumberofColorChannels]=size(H) for i=1:Rows for j=1:Cols
%Now find the location e.g you want to change the vale at 3 row and 3col initially its 2 then u can
if i==3 && j==3 do it further
  2 Kommentare
Vishnu M S
Vishnu M S am 18 Jan. 2013
How can I increase the pixel value at a particular location?(say, I need to find the pixel at 5th row and 7th column and I need to increase that pixel value.)
Walter Roberson
Walter Roberson am 18 Jan. 2013
H(5,7) = H(5,7) + 1; %for example

Melden Sie sich an, um zu kommentieren.

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