Ask Your Question

mmkhan's profile - activity

2016-06-05 03:39:52 -0600 commented question Problem with copying a block of data

Thank you. I apologize for improper naming convention (Src as Matrix name). The problem was resolved by using waitKey(). Thank you for your help.

2016-06-04 09:54:14 -0600 asked a question Problem with copying a block of data

I am trying to process an image frame in blocks of size 16 x 16. However, when I try to copy data in blocks I am only getting the data from the last block for each image. To verify if I am getting the data correctly I am displaying each block. Can anyone please point out my mistake. Thank you.

        for(int y=1; y<pels.y; y=y+block_size)
        {
            for(int x=1; x<pels.x; x=x+block_size)
            {
                difference_frame(Range(y,y+block_size-1),Range(x,x+block_size-1)).copyTo(Src);
                imshow("Block of Data",Src);
            }
        }