How i can read Red channel in 3 RGB Image

3 vues (au cours des 30 derniers jours)
Abduellah Elbakoush
Abduellah Elbakoush le 1 Jan 2022
Modifié(e) : DGM le 1 Jan 2022
I have RGB Image and I work in Image steganography
I want to read Juct Red channel ,I want to make the 2LSB in Red channel as Indicator
How I Can do that

Réponse acceptée

DGM
DGM le 1 Jan 2022
Modifié(e) : DGM le 1 Jan 2022
This is how you can get the red channel
% an RGB image
rgbpict = imread('peppers.png');
% just the red channel
R = rgbpict(:,:,1);
Or you can use imsplit if you also want the others
[R G B] = imsplit(rgbpict);
To get get specific bits, you can use bitget() or basic tools like mod() or rem().

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by