c++ - Convex hull & Heap corruption with openCV -



c++ - Convex hull & Heap corruption with openCV -

i working on intel perceptual photographic camera opencv. can images camera, converting them cv::mat types, applying skin , depth filter. want calculate convex hull "convexhull" function opencv, creates heap corruption.

here interesting part of code :

mat skin = curr.getskin() vector<point> points; for(int i=0; i<skin.rows; i++) { for(int j=0; j<skin.cols; j++) { if ((int) skin.at<unsigned char>(i,j) > 0 ) { point pt ; pt.x = j ; pt.y = ; points.push_back(pt); } } } mat img(skin.rows, skin.cols, cv_8uc3); vector<int> hull; convexhull(mat(points), hull, true);

where skin matrix filled 255 , 0 values.

nb : within loop. suggestion ?

ps : had same problem using pcl : tried calculate normals, heap corruption appeared.

for heap corruption issue seek next if using newer vs vs 2010: go project properties in vs201?. create sure configuration set "all configurations". then, under "configuration properties->general->platform toolset" take "visual studio 2010 (v100)". open cv uses v100 if using ide not, there compatibility issue.

c++ opencv heap-corruption perceptual-sdk

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -