java - openCV: reading submat while sliding over bigger Mat -
i want read fixed-size-submat bigger mat while sliding on bigger 1 pixel pixel (or maybe 5 pixel 5 pixel or somtheing that, hope idea).
is there predefined function in opencv, if 1 it?
(besides using java opencv 2.4.5..) have idea how write myself in java using mat.submat(a,b,c,d)
, thought underlying c++ dll implementation lot faster.
is want?
cv::mat i; // large mat cv::rect win; // sub mat win.width = 5; win.height = 5; for(size_t i=0;i<i.rows-5;++i) for(size_t j=0;j<i.cols-5;++j) { win.x = i; win.y = j; i(win) //<- submat }
`
Comments
Post a Comment