What is pixel intensity?

12 ビュー (過去 30 日間)
Julia Dunn
Julia Dunn 2019 年 10 月 4 日
コメント済み: Julia Dunn 2019 年 11 月 13 日
I'm working on a homework assignment where I have to increase the pixel intensity of every 50th ro of an image by a factor of 10. I'm just confused on what intensity means/how to code for it: would I just say multiply the pixel value by 10 (and if so, how do I do that?) or do I say something like pixelintensity=pixelintensity*10? Mainly just unsure what variables/functions to use

採用された回答

Walter Roberson
Walter Roberson 2019 年 10 月 4 日
would I just say multiply the pixel value by 10
Yes.
Or do I say something like pixelintensity=pixelintensity*10?
You need to store the resulting value back into the array.
You can implement this task with two nested for loops with the inner one affecting one value at a time. Or, You can implement the task with one for loop that works on an entire row at a time. Or, you can implement the task with one assignment statement and no loops, using index vectors.
  1 件のコメント
Julia Dunn
Julia Dunn 2019 年 11 月 13 日
thanks very much!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by