I divided a 256x256 image into 32 blocks,now i need to compute the LBP features of each block and concatenate histograms in form of a feature vector. So i need code which picks up a block at a time and computes LBP and corresponding histogram of that block.