资源简介

用Opencv做的可以把你想要隐藏的信息暗藏在图片里面,绝不是用cmd命令那种把图片和文本文件copy在一起然后在用记事本打开就可以了的。这是基于图片像素点的信息隐显,需要原图片和加密的图片一起通过本程序才能读取信息。

资源截图

代码片段和文件信息

#include
#include“highgui.h“
#include
#include“cv.h“
#include
using namespace std;
using namespace cv;
void readInformation(IplImage * imgSrc);
void roatedImage(IplImage *imgSrc){
CvScalar t1t2;
IplImage *imgCopy=cvCreateImage(cvSize(imgSrc->heightimgSrc->width)
imgSrc->depthimgSrc->nChannels);
for(int i=0;iheight;i++)
for(int j=0;jwidth;j++){
t1=cvGet2D(imgSrcij);
cvSet2D(imgCopyjit1);
}
cvSaveImage(“D:\\Opencv\\testSave.jpg“imgCopy);
}
int addInformation(IplImage *imgSrc){
CvScalar t1t2;
IplImage *imgCopy=cvCreateImage(cvSize(imgSrc->widthimgSrc->height)
imgSrc->depthimgSrc->nChannels);
string str=““;
cout<<“请输入你想要加入的文本:“< getline(cinstr);
int length=0;
for(int i=0;i

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件       33506  2014-02-17 18:47  NUPT.jpg
     文件      302467  2014-05-21 14:08  NUPT.png
     目录           0  2014-05-21 14:20  pictureInformation\
     目录           0  2014-05-21 14:11  pictureInformation\Debug\
     文件      118784  2014-05-21 14:06  pictureInformation\Debug\pictureInformation.exe
     文件      546520  2014-05-21 14:06  pictureInformation\Debug\pictureInformation.ilk
     文件     1633280  2014-05-21 14:06  pictureInformation\Debug\pictureInformation.pdb
     目录           0  2014-05-21 14:11  pictureInformation\pictureInformation\
     目录           0  2014-05-21 14:11  pictureInformation\pictureInformation\Debug\
     文件       13542  2014-05-21 14:04  pictureInformation\pictureInformation\Debug\CL.read.1.tlog
     文件         488  2014-05-21 14:04  pictureInformation\pictureInformation\Debug\CL.write.1.tlog
     文件         730  2014-05-21 14:04  pictureInformation\pictureInformation\Debug\cl.command.1.tlog
     文件           2  2014-05-21 14:06  pictureInformation\pictureInformation\Debug\link-cvtres.read.1.tlog
     文件           2  2014-05-21 14:06  pictureInformation\pictureInformation\Debug\link-cvtres.write.1.tlog
     文件           2  2014-05-21 14:06  pictureInformation\pictureInformation\Debug\link-rc.read.1.tlog
     文件           2  2014-05-21 14:06  pictureInformation\pictureInformation\Debug\link-rc.write.1.tlog
     文件        1796  2014-05-21 14:06  pictureInformation\pictureInformation\Debug\link.command.1.tlog
     文件        4048  2014-05-21 14:06  pictureInformation\pictureInformation\Debug\link.read.1.tlog
     文件         586  2014-05-21 14:06  pictureInformation\pictureInformation\Debug\link.write.1.tlog
     文件          85  2014-05-21 14:06  pictureInformation\pictureInformation\Debug\pictureInformation.lastbuildstate
     文件        1452  2014-05-21 14:06  pictureInformation\pictureInformation\Debug\pictureInformation.log
     文件      472579  2014-05-21 14:04  pictureInformation\pictureInformation\Debug\pictureInformation.obj
     文件      633856  2014-05-21 14:04  pictureInformation\pictureInformation\Debug\vc110.idb
     文件     1216512  2014-05-21 14:04  pictureInformation\pictureInformation\Debug\vc110.pdb
     文件        4812  2014-05-21 14:04  pictureInformation\pictureInformation\pictureInformation.cpp
     文件        4625  2014-05-21 14:06  pictureInformation\pictureInformation\pictureInformation.vcxproj
     文件         956  2014-05-21 14:04  pictureInformation\pictureInformation\pictureInformation.vcxproj.filters
     文件         164  2014-05-21 13:58  pictureInformation\pictureInformation\pictureInformation.vcxproj.user
     文件         921  2014-05-21 13:58  pictureInformation\pictureInformation.sln
     文件       19456  2014-05-21 14:10  pictureInformation\pictureInformation.v11.suo
     文件          60  2014-05-21 14:23  readme.txt
............此处省略0个文件信息

评论

共有 条评论