Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
基于Matlab的图像隐写_Matlab_Image Processing_Modulus_Steganography - Fatal编程技术网

基于Matlab的图像隐写

基于Matlab的图像隐写,matlab,image-processing,modulus,steganography,Matlab,Image Processing,Modulus,Steganography,我有一个关于使用matlab进行隐写术的项目。该项目是使用一个键将文本隐藏到RGB图像中。用于确定其他通道的通道指示器的键。输入键的代码为: % input key key = input('Please input key between 1 - 100 :\n'); if key < 1 || key > 100 msgbox('invalid key'); end key = uint8(key); 然后,为了确定通道指示器,键模3,如果键模3=1,则通

我有一个关于使用matlab进行隐写术的项目。该项目是使用一个键将文本隐藏到RGB图像中。用于确定其他通道的通道指示器的键。输入键的代码为:

% input key
key = input('Please input key between 1 - 100 :\n');
if key < 1 || key > 100
   msgbox('invalid key');
end       

key = uint8(key);

然后,为了确定通道指示器,键模3,如果键模3=1,则通道指示器为红色,如果键模3=2,则通道指示器为绿色,如果键模3=0,则通道指示器为蓝色。我是matlab的新手,请帮帮我。谢谢。

密钥应该是一个简单的选择,还是解码器需要知道从哪个通道提取的密码?是的,解码器必须知道检索消息的密钥。这是一个糟糕的机制。1模3=4模1。通常,密码用于解密提取的消息,因为它在嵌入之前已加密,或者用于以随机像素(而不是以可预测的顺序)存储信息。在这种情况下,密码将是randomiser函数的种子。密钥用于确定指示器,而不是存储数据。数据将存储在除指示器之外的两个通道中的一个通道中。那么代码就是按照您所说的做的-问题是什么?