1 | initial version |
huraahhhh.... I just figured it out :D
@Moster thanx alot.... your comment put me on the right track :)
Some how my camera was stoping after sending 24 frames, and the last 6 indexes in my array contained garbage data(I assume). So when the code tried to get the RGB value of 25th frame, it crashed.
The number of channels of last 6 Mats were also 1(it should be 4 as it s BGRA type) ,so checking this also hinted me towards right direction.
The Crashing problem is solved now and m moving ahead. Thanx alot again :)