Filter löschen
Filter löschen

Pseudo random sequence matrix from an image

4 Ansichten (letzte 30 Tage)
marie lasz
marie lasz am 3 Dez. 2020
Kommentiert: marie lasz am 3 Dez. 2020
Hello,
How to obtain pseudo random sequence matrix from a Y frame of image which is already converted to YCbCr?
Thanks

Antworten (1)

Ameer Hamza
Ameer Hamza am 3 Dez. 2020
Bearbeitet: Ameer Hamza am 3 Dez. 2020
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))
  1 Kommentar
marie lasz
marie lasz am 3 Dez. 2020
Y--luminance of an image. and what is 16?i have to encode 1024 bits in these pseudo rand values

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by