mat - To convert a matix to vector in opencv -


i have written code creating matrix describes features in video.i use roi cropping feature in images , saved in matrix.the whole program inside loop.now how plot these matrix using imshow..

mat patch; for(unsigned int i=0;i<boundrect.size();i++) { point centre=point(boundrect[i].x+(boundrect[i].width)/2,boundrect[i].y+ (boundrect[i].height)/2); circle(output,centre,5,cv_rgb(0,255,0),-1); cv::rect myroi(centre.x-40,centre.y+40,centre.x+40,centre.y-40); patch=output(myroi); } 


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -