I am not getting the correct value for rblush in this code. here, red is a matrix consisting of only the r of rcb values of an image. If the value of red_pixel is greater than 200, i want to add the pixel values in rblush but im getting the wrong val
I don't understand what you are trying to do. You need to explain more. What is rmean? What is blush (a counter)? What do you want to do with all the pixels >=200? Tell us exactly what you want done.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 件のコメント
David Hill (view profile)
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/486270-i-am-not-getting-the-correct-value-for-rblush-in-this-code-here-red-is-a-matrix-consisting-of-only#comment_758151
Aishwarya Jayachandran (view profile)
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/486270-i-am-not-getting-the-correct-value-for-rblush-in-this-code-here-red-is-a-matrix-consisting-of-only#comment_758162
サインイン to comment.