MATLAB: How to divide image into overlapping patch and how to feature from image using sift and mlbp plzretag plz help for this question Best Answer For overlapping patches, you can use blockproc() with BorderSize option. Related SolutionsMATLAB: Dividing RGB image into overlaping blocks Change your@(block_struct)kmeans(block_struct.data,4)to@(block_struct)kmeans(double(block_struct.data),4) MATLAB: Patch extraction from an image if you want a patch of (size, size) :% Get the size of the image[rows, columns, numberOfColorChannels] = size(yourImage);% Determine starting and ending rows and columns.row1 = floor(rows/2 - size/2);col1 = floor(columns/2- size/2);% Extract sub-image using imcrop():subImage = imcrop(yourImage, [col1, row1, size, size]);you may also refer to this link for more informationhttps://stackoverflow.com/questions/27733477/how-do-i-efficiently-extract-image-patches-at-specified-locations Related Question
Best Answer