Hello!
I just wanted to know how that how significant and important is it to use memory alignment in the code and hence I referred to chatgpt . I even referred this page for understanding the memory alignment concept. but modern CPUs and compilers are designed to handle unaligned data efficiently so why is it so…like will it make a very large difference?
Secondly, When I tested bounding rect in c++
uint8_t img[2][5] = {
{0, 0, 0, 0, 0},
{1, 1, 1, 0, 0}
};
Mat matImg(2, 5, CV_8U, img);
Rect r = boundingRect(matImg);
cout << r << endl;
the output was
[1 x 1 from (0, 1)]
Am I going wrong somewhere?
Thanks