Pseudo random sequence matrix from an image
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
How to obtain pseudo random sequence matrix from a Y frame of image which is already converted to YCbCr?
Thanks
0 件のコメント
回答 (1 件)
Ameer Hamza
2020 年 12 月 3 日
編集済み: Ameer Hamza
2020 年 12 月 3 日
As the documentation specifies, the Y matrix has values in the range [16 235]/255 for the floating-point datatype. You can do something like this
lims = [16 235]/255;
Y_new = rand(size(T))*diff(lims)+lims(1)
If your matrix is uint8, then use this
lims = [16 235]
Y_new = randi(lims, size(Y))
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!