1 | initial version |
The function that calls removeLitght, must past a {360,1} Step value -in this case. Use cvtColor -which is the video equivalent of converTo. In this case BGR->Gray made the videoCapture frame fit the size of the Mat imread image.
code:
Mat frame, myFrame; int img_index = 0; while (images.read(frame)) { // Preprocess image cvtColor(frame, myFrame, COLOR_BGR2GRAY); Mat pre = preprocessImage(myFrame); . . ....}
2 | No.2 Revision |
The function that calls removeLitght, must past a {360,1} Step value -in this case. Use cvtColor -which is the video equivalent of converTo. In this case BGR->Gray made the videoCapture frame fit the size of the Mat imread image.
code:
Mat frame, myFrame;
int img_index = 0;
while (images.read(frame)) {
// Preprocess image
cvtColor(frame, myFrame, COLOR_BGR2GRAY);
Mat pre = preprocessImage(myFrame);
.
.
3 | No.3 Revision |
The function that calls removeLitght, must past a {360,1} Step value -in this case.
Use cvtColor cvtColor
-which is the video equivalent of converTo. In this case BGR->Gray made the videoCapture videoCapture
frame fit the size of the Mat imread image.
code:
Mat frame, myFrame;
int img_index = 0;
while (images.read(frame)) {
// Preprocess image
cvtColor(frame, myFrame, COLOR_BGR2GRAY);
Mat pre = preprocessImage(myFrame);
.
.
....}