标签: matlab histogram block divide lbph-algorithm
我正在使用LBP进行“手持式手势的机器检测”。我刚刚使用this Code将RGB图像转换为LBP图像。我的任务的下一步是将LBP图像分成3x3并显示每个块的直方图以检测手势位置,如下图所示:
Images along with their histogram
答案 0 :(得分:0)
试试mat2cell。假设您的矩阵是NXN方阵:
NXN
matSize = size(inputMatrix,1); subMatrix = mat2cell(inputMatrix,3*ones(1,matSize/3),3*ones(1,matSize/3));