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
Post a Comment