Ask Your Question

winne's profile - activity

2017-08-05 21:31:59 -0600 received badge  Taxonomist
2015-01-12 02:51:47 -0600 received badge  Notable Question (source)
2015-01-12 02:51:47 -0600 received badge  Popular Question (source)
2012-11-12 20:53:58 -0600 commented answer vs2010+opencv2.2 why can not follow in the openCV function codes?

my system is win7,2.4 version seemed not support it

2012-11-11 18:47:57 -0600 commented answer vs2010+opencv2.2 why can not follow in the openCV function codes?

Is me add this item then tick it,then do everything again,it is be ok? It seemed not work,CMake inform me CMake Warning: The variable, 'BUILD_WITH_DEBUG_INFO', specified manually, was not used during the generation. as your said the 2.4version is below de 2.8.1 ,why not compatiable ?

2012-11-08 01:46:20 -0600 commented answer vs2010+opencv2.2 why can not follow in the openCV function codes?

Why I CMake haven't BUILD_WITH_DEBUG_INFO flags to choose,It is CMake 2.8.1,only have BUILD_ EMAMPLES,BUILD_LATEX_DOCS,BUILD_NEW_PYTHON_SUPPORT;BUILD_PACKAGE;BUILD_SHARED_LIBS;BUILD_TESTS,I tick the BUILD_NEW_PYTHON_SUPPORT;BUILD_SHARED_LIBS;BUILD_TESTS.Is there the key ?

2012-11-07 21:57:47 -0600 asked a question vs2010+opencv2.2 why can not follow in the openCV function codes?

using cmakes then vs2010 complied the openCV2.2,get the bin and lib files,set the envirment variables bin\debug and bin\release. Using it is nomorl,but can not use step F11,follow in the openCV fuction ,why?

2012-09-06 03:04:15 -0600 received badge  Scholar (source)
2012-09-06 02:59:20 -0600 commented answer cvSetData( pImgEmbed, data, m_width ) doesn't work! Anybody Help!

Thank you very much! You are very helpful! I am so careless! Those codes are I pick up from my program.But I don't notes the line ,so I very silly, to create pImgEmbed imageheader before give m_width and m_height value.Then I check the codes again and again ,just found out pImgEmbed->widthstep is 0.

2012-09-05 03:36:20 -0600 received badge  Editor (source)
2012-09-05 03:34:30 -0600 asked a question cvSetData( pImgEmbed, data, m_width ) doesn't work! Anybody Help!
IplImage* gray;
BYTE* data;
int m_width;
int m_height;

IplImage * pImgEmbed = NULL;

char*filename=argc==2?argv[1]:(char*)"14.bmp";
gray=cvLoadImage(filename,0);
data=(uchar *)gray->imageData;
          m_width=gray->width;
          m_height=gray->height;

pImgEmbed=cvCreateImageHeader(cvSize(m_width, m_height), IPL_DEPTH_8U, 1);

cvSetData( pImgEmbed, data, m_width );

Now ,I think pImgEmbed is a IplImage image ,but I can't use

cvNamedWindow("window");
cvShowImage("window", pImgEmbed);

to show it,Why?