image dividing, padding, regions
Ältere Kommentare anzeigen
How to divide an image up into say 10x10 regions and account for padding (an integer number of regions does not fit in the image)
I have tried complicated convolution methods, and now want to try a more simplified approach. The aim is to then locally threshold each image for SNR calculations

This was my attempt:
n=10; %regions in each dimension
[x,y]=size(ROI)
nx=floor(x/n)
ny=floor(y/n)
xGrid=1:(nx+1):10*nx
yGrid=1:(ny+1):10*ny
[X,Y]=meshgrid(xGrid,yGrid)
mesh(X,Y)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!