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!